index.less 9.3 KB

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