index.less 5.1 KB

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