forum.less 9.3 KB

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