index.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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) + 3px) (@fontSizeSmall - 2px);
  36. }
  37. .forum-icon {
  38. padding-right: (@fontSizeSmall / 2) - 3px;
  39. width: 1%;
  40. .forum-icon-wrap {
  41. background-color: @itemOldColor;
  42. border: 1px solid darken(@itemOldColor, 10%);
  43. border-radius: @baseBorderRadius;
  44. padding: (@forumIconSize - 1px) @forumIconSize;
  45. &.forum-icon-new {
  46. background-color: @itemNewColor;
  47. border: 1px solid darken(@itemNewColor, 10%);
  48. }
  49. &.forum-icon-redirect {
  50. background-color: @itemMovedColor;
  51. border: 1px solid darken(@itemMovedColor, 10%);
  52. }
  53. }
  54. }
  55. .forum-main {
  56. h3 {
  57. float: left;
  58. margin: 0px;
  59. padding: 0px;
  60. font-size: @fontSizeLarge;
  61. font-weight: normal;
  62. line-height: @baseLineHeight;
  63. a:link, a:visited {
  64. color: @textColor;
  65. }
  66. }
  67. .forum-details {
  68. float: right;
  69. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) + 1px;
  70. color: @grayLight;
  71. font-size: @fontSizeSmall;
  72. strong, a {
  73. color: @gray;
  74. font-weight: normal
  75. }
  76. a:hover, a:active {
  77. color: @textColor;
  78. }
  79. strong.stat-increment {
  80. color: @green;
  81. }
  82. }
  83. .forum-description {
  84. clear: both;
  85. margin: 0px;
  86. margin-bottom: (@baseFontSize - @fontSizeSmall) * -1;
  87. padding: 0px;
  88. color: lighten(@textColor, 35%);
  89. font-size: @fontSizeSmall;
  90. }
  91. }
  92. }
  93. &.index-category-important {
  94. caption {
  95. background-color: @red;
  96. border: 1px solid darken(@red, 10%);
  97. color: @white;
  98. text-shadow: 0px 1px 0px darken(@red, 25%);
  99. small {
  100. color: darken(@red, 40%);
  101. text-shadow: none;
  102. }
  103. }
  104. }
  105. &.index-category-inverse {
  106. caption {
  107. background-color: @grayDark;
  108. border: 1px solid darken(@grayDark, 10%);
  109. color: @grayLighter;
  110. text-shadow: 0px 1px 0px darken(@black, 25%);
  111. small {
  112. color: lighten(@grayLight, 10%);
  113. text-shadow: none;
  114. }
  115. }
  116. }
  117. &.index-category-info {
  118. caption {
  119. background-color: @bluePale;
  120. border: 1px solid darken(@bluePale, 10%);
  121. color: @white;
  122. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  123. small {
  124. color: darken(@bluePale, 25%);
  125. text-shadow: none;
  126. }
  127. }
  128. }
  129. }
  130. .index-forums-read-all {
  131. margin: 0px;
  132. padding: 0px;
  133. .btn-link {
  134. margin: 0px;
  135. .opacity(50);
  136. padding: 0px;
  137. color: @textColor;
  138. font-weight: bold;
  139. &:active, &:hover {
  140. .opacity(90);
  141. }
  142. }
  143. }
  144. // Online list
  145. // -------------------------
  146. .index-ranks-list {
  147. h3 {
  148. margin: 0px;
  149. padding: 0px;
  150. color: @grayLight;
  151. font-size: @fontSizeLarge;
  152. font-weight: bold;
  153. }
  154. ul {
  155. background-color: @white;
  156. border: 1px solid darken(@bodyBackground, 10%);
  157. border-radius: @baseBorderRadius;
  158. margin: 0px;
  159. margin-bottom: @baseLineHeight;
  160. padding: 0px;
  161. li {
  162. border-bottom: 1px dotted darken(@bodyBackground, 10%);
  163. margin: 0px;
  164. padding: 6px 8px;
  165. font-weight: bold;
  166. img {
  167. background-color: @white;
  168. border-radius: @borderRadiusSmall;
  169. width: 28px;
  170. height: 28px;
  171. }
  172. a:link, a:active, a:visited, a:hover {
  173. position: relative;
  174. top: (@fontSizeLarge - @baseFontSize) / 2;
  175. margin: 0px 4px;
  176. color: @textColor;
  177. font-size: @fontSizeLarge;
  178. }
  179. .label {
  180. float: right;
  181. position: relative;
  182. top: (@fontSizeLarge - @baseFontSize) + 1px;
  183. }
  184. &:last-child {
  185. border-bottom: none;
  186. }
  187. }
  188. }
  189. }
  190. // Popular threads
  191. // -------------------------
  192. .index-popular-threads {
  193. h3 {
  194. margin: 0px;
  195. margin-bottom: (@baseLineHeight * -0.5);
  196. padding: 0px;
  197. color: @grayLight;
  198. font-size: @fontSizeLarge;
  199. font-weight: bold;
  200. }
  201. ul {
  202. margin: 0px;
  203. margin-bottom: @baseLineHeight;
  204. padding: 0px;
  205. li {
  206. border-bottom: 1px solid darken(@bodyBackground, 10%);
  207. padding: (@baseFontSize / 2) 0px;
  208. a:link, a:active, a:visited, a:hover {
  209. color: @textColor;
  210. font-weight: bold;
  211. }
  212. .muted {
  213. font-size: @fontSizeMini;
  214. a:link, a:active, a:visited, a:hover {
  215. color: @gray;
  216. }
  217. }
  218. }
  219. }
  220. }
  221. // Forum stats
  222. // -------------------------
  223. .index-stats {
  224. margin-bottom: @baseLineHeight;
  225. .opacity(60);
  226. overflow: auto;
  227. font-weight: bold;
  228. ul {
  229. li {
  230. float: left;
  231. padding: 0px;
  232. padding-right: @baseLineHeight;
  233. }
  234. }
  235. }