forum.less 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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. padding-bottom: (@fontSizeLarge / 2) + 7px;
  31. }
  32. .forum-icon {
  33. padding-right: (@fontSizeSmall / 2) - 3px;
  34. width: 1%;
  35. .forum-icon-wrap {
  36. background-color: @itemOldColor;
  37. border: 1px solid darken(@itemOldColor, 10%);
  38. border-radius: @baseBorderRadius;
  39. padding: (@forumIconSize - 1px) @forumIconSize;
  40. &.forum-icon-new {
  41. background-color: @itemNewColor;
  42. border: 1px solid darken(@itemNewColor, 10%);
  43. }
  44. &.forum-icon-redirect {
  45. background-color: @itemMovedColor;
  46. border: 1px solid darken(@itemMovedColor, 10%);
  47. }
  48. }
  49. }
  50. .forum-main {
  51. h3 {
  52. float: left;
  53. margin: 0px;
  54. padding: 0px;
  55. font-size: @fontSizeLarge;
  56. font-weight: normal;
  57. line-height: @baseLineHeight;
  58. a:link, a:visited {
  59. color: @textColor;
  60. }
  61. }
  62. .dropdown {
  63. float: right;
  64. right: @baseFontSize;
  65. .subforum {
  66. &:link, &:visited {
  67. color: @grayLight;
  68. font-weight: bold;
  69. }
  70. &:hover, &:active {
  71. color: @textColor;
  72. }
  73. }
  74. .dropdown-toggle {
  75. padding: 4px 8px;
  76. .opacity(60);
  77. color: @textColor;
  78. font-weight: bold;
  79. &:hover, &:active, &:focus {
  80. .opacity(100);
  81. text-decoration: none;
  82. }
  83. }
  84. &.open .dropdown-toggle {
  85. background-color: @categoryShadow;
  86. border-radius: @baseBorderRadius @baseBorderRadius 0px 0px;
  87. .opacity(100);
  88. padding-bottom: 6px;
  89. text-decoration: none;
  90. }
  91. .dropdown-menu {
  92. background: none;
  93. border: none;
  94. box-shadow: none;
  95. .dropdown-shadow{
  96. border-radius: @baseBorderRadius;
  97. .box-shadow(0px 0px 3px @grayLight);
  98. width: 256px;
  99. position: relative;
  100. right: 0px;
  101. top: -4px;
  102. ul {
  103. background-color: @bodyBackground;
  104. border-radius: @baseBorderRadius;
  105. margin: 0px;
  106. padding: 0px;
  107. li {
  108. margin: 0px;
  109. padding: 0px;
  110. list-style: none;
  111. a {
  112. border-bottom: 1px dotted @categoryBorder;
  113. display: block;
  114. .opacity(70);
  115. padding: 6px 8px;
  116. color: @textColor;
  117. text-decoration: none;
  118. &:hover, &:active {
  119. .opacity(100);
  120. }
  121. }
  122. &:last-child a {
  123. border-bottom: none;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. }
  130. .forum-details {
  131. border-left: 1px dotted darken(@categoryBackground, 12%);
  132. float: right;
  133. margin: -10px 0px;
  134. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) - 6px;
  135. padding-left: @baseFontSize;
  136. height: 35px;
  137. width: 220px;
  138. .thread-name {
  139. a:link, a:active, a:visited, a:hover {
  140. margin-bottom: 1px;
  141. color: @textColor;
  142. font-size: @fontSizeSmall;
  143. font-weight: bold;
  144. }
  145. }
  146. .muted {
  147. font-size: @fontSizeMini;
  148. line-height: @fontSizeMini;
  149. .last-poster, a:link, a:active, a:visited, a:hover {
  150. color: @gray;
  151. }
  152. }
  153. em {
  154. position: relative;
  155. top: (35px - @baseLineHeight) / 2;
  156. color: @grayLight;
  157. strong {
  158. color: @textColor;
  159. font-weight: normal;
  160. }
  161. }
  162. }
  163. .forum-meta-tooltip {
  164. .tooltip-inner {
  165. max-width: 400px;
  166. text-align: left;
  167. .forum-stats {
  168. color: @grayLight;
  169. font-size: @fontSizeMini;
  170. strong {
  171. color: @white;
  172. }
  173. span {
  174. margin-right: @baseFontSize;
  175. }
  176. }
  177. .forum-description {
  178. clear: both;
  179. margin: 0px;
  180. margin-bottom: @baseFontSize / 2;
  181. padding: 0px;
  182. color: @grayLighter;
  183. font-size: @baseFontSize;
  184. }
  185. }
  186. }
  187. }
  188. }
  189. &.forum-subforums-important {
  190. caption {
  191. background-color: @red;
  192. border: 1px solid darken(@red, 10%);
  193. color: @white;
  194. text-shadow: 0px 1px 0px darken(@red, 25%);
  195. small {
  196. color: darken(@red, 40%);
  197. text-shadow: none;
  198. }
  199. }
  200. }
  201. &.forum-subforums-inverse {
  202. caption {
  203. background-color: @grayDark;
  204. border: 1px solid darken(@grayDark, 10%);
  205. color: @grayLighter;
  206. text-shadow: 0px 1px 0px darken(@black, 25%);
  207. small {
  208. color: lighten(@grayLight, 10%);
  209. text-shadow: none;
  210. }
  211. }
  212. }
  213. &.forum-subforums-info {
  214. caption {
  215. background-color: @bluePale;
  216. border: 1px solid darken(@bluePale, 10%);
  217. color: @white;
  218. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  219. small {
  220. color: darken(@bluePale, 25%);
  221. text-shadow: none;
  222. }
  223. }
  224. }
  225. }
  226. // Threads list
  227. .forum-threads-list {
  228. background-color: @categoryBackground;
  229. border: 1px solid @categoryBorder;
  230. border-radius: @borderRadiusSmall;
  231. .box-shadow(0px 0px 0px 3px @categoryShadow);
  232. margin-bottom: @baseLineHeight;
  233. table {
  234. margin: 0px;
  235. th {
  236. background-color: @bodyBackground;
  237. border-bottom: 1px solid @grayLighter;
  238. padding: @paddingSmall;
  239. color: @grayLight;
  240. font-size: @fontSizeSmall;
  241. }
  242. td {
  243. vertical-align: middle;
  244. &.threads-list-empty {
  245. padding: @paddingLarge;
  246. font-size: @fontSizeLarge;
  247. text-align: center;
  248. }
  249. .thread-icon {
  250. &:link, &:active, &:visited, &:hover {
  251. background-color: @itemOldColor;
  252. border: 1px solid darken(@itemOldColor, 15%);
  253. border-radius: @baseBorderRadius;
  254. margin-right: @baseFontSize / 2;
  255. padding: 3px 4px;
  256. &.thread-new {
  257. background-color: @itemNewColor;
  258. border: 1px solid darken(@itemNewColor, 15%);
  259. }
  260. }
  261. i {
  262. background-image: url("@{iconWhiteSpritePath}");
  263. }
  264. }
  265. .thread-name {
  266. color: @textColor;
  267. font-weight: bold;
  268. }
  269. .thread-details, .thread-last-reply {
  270. color: @grayLight;
  271. a:link, a:visited {
  272. color: @textColor;
  273. }
  274. }
  275. .thread-details {
  276. font-size: @fontSizeMini;
  277. }
  278. .thread-flags {
  279. float: right;
  280. margin: 0px;
  281. .opacity(80);
  282. padding: 0px;
  283. li {
  284. margin-left: 3px;
  285. float: left;
  286. }
  287. }
  288. .thread-rating {
  289. background-color: @grayLighter;
  290. border-radius: @baseBorderRadius;
  291. padding: 4px;
  292. color: @grayLight;
  293. font-size: @fontSizeLarge;
  294. font-weight: bold;
  295. text-align: center;
  296. &.thread-rating-negative, &.thread-rating-positive {
  297. color: @white;
  298. }
  299. &.thread-rating-negative {
  300. background-color: @red;
  301. }
  302. &.thread-rating-positive {
  303. background-color: @green;
  304. }
  305. }
  306. }
  307. th, td {
  308. &.check-cell {
  309. width: 1%;
  310. text-align: center;
  311. vertical-align: middle;
  312. .checkbox {
  313. margin: 0px;
  314. padding: 0px;
  315. input {
  316. margin: 0px;
  317. padding: 0px;
  318. position: relative;
  319. top: 3px;
  320. }
  321. }
  322. }
  323. }
  324. th.check-cell {
  325. input{
  326. right: 2px;
  327. }
  328. }
  329. }
  330. .threads-actions {
  331. background-color: @bodyBackground;
  332. border-top: 1px solid @categoryBorder;
  333. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  334. overflow: auto;
  335. padding: 4px;
  336. color: @grayLight;
  337. font-size: @fontSizeSmall;
  338. form {
  339. margin-bottom: 0px;
  340. }
  341. }
  342. }
  343. .forum-threads-extra {
  344. overflow: auto;
  345. &.extra-top {
  346. margin-bottom: @baseLineHeight;
  347. }
  348. .threads-signin-message {
  349. float: right;
  350. a:link, a:visited {
  351. color: @textColor;
  352. }
  353. }
  354. }