index.less 8.9 KB

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