forum.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. // Forum View
  2. // -------------------------
  3. // Subforums list
  4. .forum-subforums-list {
  5. background-color: @categoryBackground;
  6. border: 1px solid @categoryBorder;
  7. border-radius: @borderRadiusSmall;
  8. .box-shadow(0px 0px 0px 3px @categoryShadow);
  9. margin-bottom: @baseLineHeight;
  10. table {
  11. margin: 0px;
  12. caption {
  13. background-color: @categoryHeader;
  14. border: 1px solid @categoryBorder;
  15. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  16. margin: -1px;
  17. padding: (@fontSizeSmall / 3) (@fontSizeSmall - 2px);
  18. color: @grayDark;
  19. font-size: @fontSizeSmall;
  20. font-weight: bold;
  21. text-align: left;
  22. small {
  23. margin-left: @baseFontSize / 2;
  24. color: @grayLight;
  25. font-size: @fontSizeSmall;
  26. }
  27. }
  28. td {
  29. padding: ((@fontSizeLarge / 2) + 6px) (@fontSizeSmall - 2px);
  30. }
  31. .forum-icon {
  32. padding-right: (@fontSizeSmall / 2) - 3px;
  33. width: 1%;
  34. .forum-icon-wrap {
  35. background-color: @itemOldColor;
  36. border: 1px solid darken(@itemOldColor, 10%);
  37. border-radius: @baseBorderRadius;
  38. padding: (@forumIconSize - 1px) @forumIconSize;
  39. &.forum-icon-new {
  40. background-color: @itemNewColor;
  41. border: 1px solid darken(@itemNewColor, 10%);
  42. }
  43. &.forum-icon-redirect {
  44. background-color: @itemMovedColor;
  45. border: 1px solid darken(@itemMovedColor, 10%);
  46. }
  47. }
  48. }
  49. .forum-main {
  50. h3 {
  51. float: left;
  52. margin: 0px;
  53. padding: 0px;
  54. font-size: @fontSizeLarge;
  55. font-weight: normal;
  56. line-height: @baseLineHeight;
  57. a:link, a:visited {
  58. color: @textColor;
  59. }
  60. }
  61. .forum-details {
  62. background-color: darken(@categoryBackground, 3%);
  63. border-bottom: 1px solid darken(@categoryBackground, 6%);
  64. border-radius: @baseBorderRadius;
  65. float: right;
  66. margin: -2px 0px;
  67. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) - 1px;
  68. padding: 2px 8px;
  69. width: 230px;
  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-meta-tooltip {
  84. .tooltip-inner {
  85. max-width: 400px;
  86. text-align: left;
  87. .forum-stats {
  88. color: @grayLight;
  89. font-size: @fontSizeMini;
  90. strong {
  91. color: @white;
  92. }
  93. span {
  94. margin-right: @baseFontSize;
  95. }
  96. }
  97. .forum-description {
  98. clear: both;
  99. margin: 0px;
  100. margin-bottom: @baseFontSize / 2;
  101. padding: 0px;
  102. color: @grayLighter;
  103. font-size: @baseFontSize;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. &.forum-subforums-important {
  110. caption {
  111. background-color: @red;
  112. border: 1px solid darken(@red, 10%);
  113. color: @white;
  114. text-shadow: 0px 1px 0px darken(@red, 25%);
  115. small {
  116. color: darken(@red, 40%);
  117. text-shadow: none;
  118. }
  119. }
  120. }
  121. &.forum-subforums-inverse {
  122. caption {
  123. background-color: @grayDark;
  124. border: 1px solid darken(@grayDark, 10%);
  125. color: @grayLighter;
  126. text-shadow: 0px 1px 0px darken(@black, 25%);
  127. small {
  128. color: lighten(@grayLight, 10%);
  129. text-shadow: none;
  130. }
  131. }
  132. }
  133. &.forum-subforums-info {
  134. caption {
  135. background-color: @bluePale;
  136. border: 1px solid darken(@bluePale, 10%);
  137. color: @white;
  138. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  139. small {
  140. color: darken(@bluePale, 25%);
  141. text-shadow: none;
  142. }
  143. }
  144. }
  145. }
  146. // Threads list
  147. .forum-threads-list {
  148. background-color: @categoryBackground;
  149. border: 1px solid @categoryBorder;
  150. border-radius: @borderRadiusSmall;
  151. .box-shadow(0px 0px 0px 3px @categoryShadow);
  152. margin-bottom: @baseLineHeight;
  153. table {
  154. margin: 0px;
  155. th {
  156. background-color: @bodyBackground;
  157. border-bottom: 1px solid @grayLighter;
  158. padding: @paddingSmall;
  159. color: @grayLight;
  160. font-size: @fontSizeSmall;
  161. }
  162. td {
  163. vertical-align: middle;
  164. &.threads-list-empty {
  165. padding: @paddingLarge;
  166. font-size: @fontSizeLarge;
  167. text-align: center;
  168. }
  169. .thread-icon {
  170. &:link, &:active, &:visited, &:hover {
  171. background-color: @itemOldColor;
  172. border: 1px solid darken(@itemOldColor, 15%);
  173. border-radius: @baseBorderRadius;
  174. margin-right: @baseFontSize / 2;
  175. padding: 3px 4px;
  176. &.thread-new {
  177. background-color: @itemNewColor;
  178. border: 1px solid darken(@itemNewColor, 15%);
  179. }
  180. }
  181. i {
  182. background-image: url("@{iconWhiteSpritePath}");
  183. }
  184. }
  185. .thread-name {
  186. color: @textColor;
  187. font-weight: bold;
  188. }
  189. .thread-details, .thread-last-reply {
  190. color: @grayLight;
  191. a:link, a:visited {
  192. color: @textColor;
  193. }
  194. }
  195. .thread-details {
  196. font-size: @fontSizeMini;
  197. }
  198. .thread-flags {
  199. float: right;
  200. margin: 0px;
  201. .opacity(80);
  202. padding: 0px;
  203. li {
  204. margin-left: 3px;
  205. float: left;
  206. }
  207. }
  208. .thread-rating {
  209. background-color: @grayLighter;
  210. border-radius: @baseBorderRadius;
  211. padding: 4px;
  212. color: @grayLight;
  213. font-size: @fontSizeLarge;
  214. font-weight: bold;
  215. text-align: center;
  216. &.thread-rating-negative, &.thread-rating-positive {
  217. color: @white;
  218. }
  219. &.thread-rating-negative {
  220. background-color: @red;
  221. }
  222. &.thread-rating-positive {
  223. background-color: @green;
  224. }
  225. }
  226. }
  227. th, td {
  228. &.check-cell {
  229. width: 1%;
  230. text-align: center;
  231. vertical-align: middle;
  232. .checkbox {
  233. margin: 0px;
  234. padding: 0px;
  235. input {
  236. margin: 0px;
  237. padding: 0px;
  238. position: relative;
  239. top: 3px;
  240. }
  241. }
  242. }
  243. }
  244. th.check-cell {
  245. input{
  246. right: 2px;
  247. }
  248. }
  249. }
  250. .threads-actions {
  251. background-color: @bodyBackground;
  252. border-top: 1px solid @categoryBorder;
  253. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  254. overflow: auto;
  255. padding: 4px;
  256. color: @grayLight;
  257. font-size: @fontSizeSmall;
  258. form {
  259. margin-bottom: 0px;
  260. }
  261. }
  262. }
  263. .forum-threads-extra {
  264. overflow: auto;
  265. &.extra-top {
  266. margin-bottom: @baseLineHeight;
  267. }
  268. .threads-signin-message {
  269. float: right;
  270. a:link, a:visited {
  271. color: @textColor;
  272. }
  273. }
  274. }