index.less 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. //
  2. // Board index page
  3. // --------------------------------------------------
  4. .index-sidebar {
  5. position: relative;
  6. bottom: 9px;
  7. }
  8. // Forums list
  9. // -------------------------
  10. .index-category {
  11. background-color: @categoryBackground;
  12. border: 1px solid @categoryBorder;
  13. border-radius: @borderRadiusSmall;
  14. .box-shadow(0px 0px 0px 3px @categoryShadow);
  15. margin-bottom: @baseLineHeight;
  16. table {
  17. margin: 0px;
  18. caption {
  19. background-color: @categoryHeader;
  20. border: 1px solid @categoryBorder;
  21. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  22. margin: -1px;
  23. padding: (@fontSizeSmall / 3) (@fontSizeSmall - 2px);
  24. color: @grayDark;
  25. font-size: @fontSizeSmall;
  26. font-weight: bold;
  27. text-align: left;
  28. small {
  29. margin-left: @baseFontSize / 2;
  30. color: @grayLight;
  31. font-size: @fontSizeSmall;
  32. }
  33. }
  34. td {
  35. padding: ((@fontSizeLarge / 2) + 6px) (@fontSizeSmall - 2px);
  36. padding-bottom: (@fontSizeLarge / 2) + 7px;
  37. }
  38. .forum-icon {
  39. padding-right: (@fontSizeSmall / 2) - 3px;
  40. width: 1%;
  41. .forum-icon-wrap {
  42. background-color: @itemOldColor;
  43. border: 1px solid darken(@itemOldColor, 10%);
  44. border-radius: @baseBorderRadius;
  45. padding: (@forumIconSize - 1px) @forumIconSize;
  46. &.forum-icon-new {
  47. background-color: @itemNewColor;
  48. border: 1px solid darken(@itemNewColor, 10%);
  49. }
  50. &.forum-icon-redirect {
  51. background-color: @itemMovedColor;
  52. border: 1px solid darken(@itemMovedColor, 10%);
  53. }
  54. }
  55. }
  56. .forum-main {
  57. h3 {
  58. float: left;
  59. margin: 0px;
  60. padding: 0px;
  61. font-size: @fontSizeLarge;
  62. font-weight: normal;
  63. line-height: @baseLineHeight;
  64. a:link, a:visited {
  65. color: @textColor;
  66. }
  67. }
  68. .dropdown {
  69. float: right;
  70. right: @baseFontSize;
  71. .dropdown-toggle {
  72. padding: 4px 8px;
  73. .opacity(60);
  74. color: @textColor;
  75. font-weight: bold;
  76. &:hover, &:active, &:focus {
  77. .opacity(100);
  78. text-decoration: none;
  79. }
  80. }
  81. &.open .dropdown-toggle {
  82. background-color: @categoryShadow;
  83. border-radius: @baseBorderRadius @baseBorderRadius 0px 0px;
  84. .opacity(100);
  85. padding-bottom: 6px;
  86. text-decoration: none;
  87. }
  88. .dropdown-menu {
  89. background: none;
  90. border: none;
  91. box-shadow: none;
  92. .dropdown-shadow{
  93. border-radius: @baseBorderRadius;
  94. .box-shadow(0px 0px 3px @grayLight);
  95. width: 256px;
  96. position: relative;
  97. right: 0px;
  98. top: -4px;
  99. ul {
  100. background-color: @bodyBackground;
  101. border-radius: @baseBorderRadius;
  102. margin: 0px;
  103. padding: 0px;
  104. li {
  105. margin: 0px;
  106. padding: 0px;
  107. list-style: none;
  108. a {
  109. border-bottom: 1px dotted @categoryBorder;
  110. display: block;
  111. .opacity(70);
  112. padding: 6px 8px;
  113. color: @textColor;
  114. text-decoration: none;
  115. &:hover, &:active {
  116. .opacity(100);
  117. }
  118. }
  119. &:last-child a {
  120. border-bottom: none;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. .forum-details {
  128. border-left: 1px dotted darken(@categoryBackground, 12%);
  129. float: right;
  130. margin: -10px 0px;
  131. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) - 6px;
  132. padding-left: @baseFontSize;
  133. height: 35px;
  134. width: 220px;
  135. .thread-name {
  136. a:link, a:active, a:visited, a:hover {
  137. margin-bottom: 1px;
  138. color: @textColor;
  139. font-size: @fontSizeSmall;
  140. font-weight: bold;
  141. }
  142. }
  143. .muted {
  144. font-size: @fontSizeMini;
  145. line-height: @fontSizeMini;
  146. .last-poster, a:link, a:active, a:visited, a:hover {
  147. color: @gray;
  148. }
  149. }
  150. em, .forum-clicks {
  151. position: relative;
  152. top: (35px - @baseLineHeight) / 2;
  153. color: @grayLight;
  154. strong {
  155. color: @textColor;
  156. font-weight: normal;
  157. }
  158. }
  159. }
  160. .forum-meta-tooltip {
  161. .tooltip-inner {
  162. max-width: 400px;
  163. text-align: left;
  164. .forum-stats {
  165. color: @grayLight;
  166. font-size: @fontSizeMini;
  167. strong {
  168. color: @white;
  169. }
  170. span {
  171. margin-right: @baseFontSize;
  172. }
  173. }
  174. .forum-description {
  175. clear: both;
  176. margin: 0px;
  177. margin-bottom: @baseFontSize / 2;
  178. padding: 0px;
  179. color: @grayLighter;
  180. font-size: @baseFontSize;
  181. }
  182. }
  183. }
  184. }
  185. }
  186. &.index-category-important {
  187. caption {
  188. background-color: @red;
  189. border: 1px solid darken(@red, 10%);
  190. color: @white;
  191. text-shadow: 0px 1px 0px darken(@red, 25%);
  192. small {
  193. color: darken(@red, 40%);
  194. text-shadow: none;
  195. }
  196. }
  197. }
  198. &.index-category-inverse {
  199. caption {
  200. background-color: @grayDark;
  201. border: 1px solid darken(@grayDark, 10%);
  202. color: @grayLighter;
  203. text-shadow: 0px 1px 0px darken(@black, 25%);
  204. small {
  205. color: lighten(@grayLight, 10%);
  206. text-shadow: none;
  207. }
  208. }
  209. }
  210. &.index-category-info {
  211. caption {
  212. background-color: @bluePale;
  213. border: 1px solid darken(@bluePale, 10%);
  214. color: @white;
  215. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  216. small {
  217. color: darken(@bluePale, 25%);
  218. text-shadow: none;
  219. }
  220. }
  221. }
  222. }
  223. .index-forums-read-all {
  224. margin: 0px;
  225. padding: 0px;
  226. .btn-link {
  227. margin: 0px;
  228. .opacity(50);
  229. padding: 0px;
  230. color: @textColor;
  231. font-weight: bold;
  232. &:active, &:hover {
  233. .opacity(90);
  234. }
  235. }
  236. }
  237. // Online list
  238. // -------------------------
  239. .index-ranks-list {
  240. h3 {
  241. margin: 0px;
  242. padding: 0px;
  243. color: @grayLight;
  244. font-size: @fontSizeLarge;
  245. font-weight: bold;
  246. }
  247. ul {
  248. background-color: @white;
  249. border: 1px solid darken(@bodyBackground, 10%);
  250. border-radius: @baseBorderRadius;
  251. margin: 0px;
  252. margin-bottom: @baseLineHeight;
  253. padding: 0px;
  254. li {
  255. border-bottom: 1px dotted darken(@bodyBackground, 10%);
  256. margin: 0px;
  257. padding: 6px 8px;
  258. font-weight: bold;
  259. img {
  260. background-color: @white;
  261. border-radius: @borderRadiusSmall;
  262. width: 28px;
  263. height: 28px;
  264. }
  265. a:link, a:active, a:visited, a:hover {
  266. position: relative;
  267. top: (@fontSizeLarge - @baseFontSize) / 2;
  268. margin: 0px 4px;
  269. color: @textColor;
  270. font-size: @fontSizeLarge;
  271. }
  272. .label {
  273. float: right;
  274. position: relative;
  275. top: (@fontSizeLarge - @baseFontSize) + 1px;
  276. }
  277. &:last-child {
  278. border-bottom: none;
  279. }
  280. }
  281. }
  282. }
  283. // Popular threads
  284. // -------------------------
  285. .index-popular-threads {
  286. h3 {
  287. margin: 0px;
  288. margin-bottom: (@baseLineHeight * -0.5);
  289. padding: 0px;
  290. color: @grayLight;
  291. font-size: @fontSizeLarge;
  292. font-weight: bold;
  293. }
  294. ul {
  295. margin: 0px;
  296. margin-bottom: @baseLineHeight;
  297. padding: 0px;
  298. li {
  299. border-bottom: 1px solid darken(@bodyBackground, 10%);
  300. padding: (@baseFontSize / 2) 0px;
  301. a:link, a:active, a:visited, a:hover {
  302. color: @textColor;
  303. font-weight: bold;
  304. }
  305. .muted {
  306. font-size: @fontSizeMini;
  307. a:link, a:active, a:visited, a:hover {
  308. color: @gray;
  309. }
  310. }
  311. }
  312. }
  313. }
  314. // Forum stats
  315. // -------------------------
  316. .index-stats {
  317. margin-bottom: @baseLineHeight;
  318. .opacity(60);
  319. overflow: auto;
  320. font-weight: bold;
  321. ul {
  322. li {
  323. float: left;
  324. padding: 0px;
  325. padding-right: @baseLineHeight;
  326. }
  327. }
  328. }