index.less 9.0 KB

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