forum.less 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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) + 3px) (@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. float: right;
  63. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) + 1px;
  64. color: @grayLight;
  65. font-size: @fontSizeSmall;
  66. strong, a {
  67. color: @gray;
  68. font-weight: normal
  69. }
  70. a:hover, a:active {
  71. color: @textColor;
  72. }
  73. strong.stat-increment {
  74. color: @green;
  75. }
  76. }
  77. .forum-description {
  78. clear: both;
  79. margin: 0px;
  80. margin-bottom: (@baseFontSize - @fontSizeSmall) * -1;
  81. padding: 0px;
  82. color: lighten(@textColor, 35%);
  83. font-size: @fontSizeSmall;
  84. }
  85. }
  86. }
  87. &.forum-subforums-important {
  88. caption {
  89. background-color: @red;
  90. border: 1px solid darken(@red, 10%);
  91. color: @white;
  92. text-shadow: 0px 1px 0px darken(@red, 25%);
  93. small {
  94. color: darken(@red, 40%);
  95. text-shadow: none;
  96. }
  97. }
  98. }
  99. &.forum-subforums-inverse {
  100. caption {
  101. background-color: @grayDark;
  102. border: 1px solid darken(@grayDark, 10%);
  103. color: @grayLighter;
  104. text-shadow: 0px 1px 0px darken(@black, 25%);
  105. small {
  106. color: lighten(@grayLight, 10%);
  107. text-shadow: none;
  108. }
  109. }
  110. }
  111. &.forum-subforums-info {
  112. caption {
  113. background-color: @bluePale;
  114. border: 1px solid darken(@bluePale, 10%);
  115. color: @white;
  116. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  117. small {
  118. color: darken(@bluePale, 25%);
  119. text-shadow: none;
  120. }
  121. }
  122. }
  123. }
  124. // Threads list
  125. .forum-threads-list {
  126. background-color: @categoryBackground;
  127. border: 1px solid @categoryBorder;
  128. border-radius: @borderRadiusSmall;
  129. .box-shadow(0px 0px 0px 3px @categoryShadow);
  130. margin-bottom: @baseLineHeight;
  131. table {
  132. margin: 0px;
  133. th {
  134. background-color: @bodyBackground;
  135. border-bottom: 1px solid @grayLighter;
  136. padding: @paddingSmall;
  137. color: @grayLight;
  138. font-size: @fontSizeSmall;
  139. }
  140. td {
  141. vertical-align: middle;
  142. &.threads-list-empty {
  143. padding: @paddingLarge;
  144. font-size: @fontSizeLarge;
  145. text-align: center;
  146. }
  147. .thread-icon {
  148. &:link, &:active, &:visited, &:hover {
  149. background-color: @itemOldColor;
  150. border: 1px solid darken(@itemOldColor, 15%);
  151. border-radius: @baseBorderRadius;
  152. margin-right: @baseFontSize / 2;
  153. padding: 3px 4px;
  154. &.thread-new {
  155. background-color: @itemNewColor;
  156. border: 1px solid darken(@itemNewColor, 15%);
  157. }
  158. }
  159. i {
  160. background-image: url("@{iconWhiteSpritePath}");
  161. }
  162. }
  163. .thread-name {
  164. color: @textColor;
  165. font-weight: bold;
  166. }
  167. .thread-details, .thread-last-reply {
  168. color: @grayLight;
  169. a:link, a:visited {
  170. color: @textColor;
  171. }
  172. }
  173. .thread-details {
  174. font-size: @fontSizeMini;
  175. }
  176. .thread-flags {
  177. float: right;
  178. margin: 0px;
  179. .opacity(80);
  180. padding: 0px;
  181. li {
  182. margin-left: 3px;
  183. float: left;
  184. }
  185. }
  186. .thread-rating {
  187. background-color: @grayLighter;
  188. border-radius: @baseBorderRadius;
  189. padding: 4px;
  190. color: @grayLight;
  191. font-size: @fontSizeLarge;
  192. font-weight: bold;
  193. text-align: center;
  194. &.thread-rating-negative, &.thread-rating-positive {
  195. color: @white;
  196. }
  197. &.thread-rating-negative {
  198. background-color: @red;
  199. }
  200. &.thread-rating-positive {
  201. background-color: @green;
  202. }
  203. }
  204. }
  205. th, td {
  206. &.check-cell {
  207. width: 1%;
  208. text-align: center;
  209. vertical-align: middle;
  210. .checkbox {
  211. margin: 0px;
  212. padding: 0px;
  213. input {
  214. margin: 0px;
  215. padding: 0px;
  216. position: relative;
  217. top: 3px;
  218. }
  219. }
  220. }
  221. }
  222. th.check-cell {
  223. input{
  224. right: 2px;
  225. }
  226. }
  227. }
  228. .threads-actions {
  229. background-color: @bodyBackground;
  230. border-top: 1px solid @categoryBorder;
  231. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  232. overflow: auto;
  233. padding: 4px;
  234. color: @grayLight;
  235. font-size: @fontSizeSmall;
  236. form {
  237. margin-bottom: 0px;
  238. }
  239. }
  240. }
  241. .forum-threads-extra {
  242. overflow: auto;
  243. &.extra-top {
  244. margin-bottom: @baseLineHeight;
  245. }
  246. .threads-signin-message {
  247. float: right;
  248. a:link, a:visited {
  249. color: @textColor;
  250. }
  251. }
  252. }