forum.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  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. .header {
  11. background-color: @categoryHeader;
  12. border: 1px solid @categoryBorder;
  13. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  14. margin: -1px;
  15. margin-bottom: 0px;
  16. padding: (@fontSizeSmall / 3) (@fontSizeSmall - 2px);
  17. h2 {
  18. margin: 0px;
  19. padding: 0px;
  20. color: @grayDark;
  21. font-size: @fontSizeSmall;
  22. font-weight: bold;
  23. line-height: @baseLineHeight;
  24. text-align: left;
  25. small {
  26. margin-left: @baseFontSize / 2;
  27. color: @grayLight;
  28. font-size: @fontSizeSmall;
  29. }
  30. }
  31. }
  32. .forum {
  33. border-bottom: 1px solid @categoryBorder;
  34. height: 21px;
  35. overflow: visible;
  36. padding: ((@fontSizeLarge / 2) + 6px) (@fontSizeSmall - 2px);
  37. &.last {
  38. border-bottom: none;
  39. }
  40. .forum-icon {
  41. float: left;
  42. .forum-icon-wrap {
  43. background-color: @itemOldColor;
  44. border: 1px solid darken(@itemOldColor, 10%);
  45. border-radius: @baseBorderRadius;
  46. padding: ((@forumIconSize - 22px) / 2) ((@forumIconSize - 16px) / 2);
  47. position: relative;
  48. bottom: (@forumIconSize - @baseLineHeight) / 2;
  49. &.forum-icon-new {
  50. background-color: @itemNewColor;
  51. border: 1px solid darken(@itemNewColor, 10%);
  52. }
  53. &.forum-icon-redirect {
  54. background-color: @itemMovedColor;
  55. border: 1px solid darken(@itemMovedColor, 10%);
  56. }
  57. }
  58. }
  59. .forum-main {
  60. margin-left: 34px;
  61. h3 {
  62. float: left;
  63. margin: 0px;
  64. padding: 0px;
  65. font-size: @fontSizeLarge;
  66. font-weight: normal;
  67. line-height: @baseLineHeight;
  68. a:link, a:visited {
  69. color: @textColor;
  70. }
  71. }
  72. .dropdown {
  73. float: right;
  74. right: @baseFontSize;
  75. .subforum {
  76. &:link, &:visited {
  77. color: @grayLight;
  78. font-weight: bold;
  79. }
  80. &:hover, &:active {
  81. color: @textColor;
  82. }
  83. }
  84. .dropdown-toggle {
  85. padding: 4px 8px;
  86. .opacity(60);
  87. color: @textColor;
  88. font-weight: bold;
  89. &:hover, &:active, &:focus {
  90. .opacity(100);
  91. text-decoration: none;
  92. }
  93. }
  94. &.open .dropdown-toggle {
  95. background-color: @categoryShadow;
  96. border-radius: @baseBorderRadius @baseBorderRadius 0px 0px;
  97. .opacity(100);
  98. padding-bottom: 6px;
  99. text-decoration: none;
  100. }
  101. .dropdown-menu {
  102. background: none;
  103. border: none;
  104. box-shadow: none;
  105. .dropdown-shadow{
  106. border-radius: @baseBorderRadius;
  107. .box-shadow(0px 0px 3px @grayLight);
  108. width: 256px;
  109. position: relative;
  110. right: 0px;
  111. top: -4px;
  112. ul {
  113. background-color: @bodyBackground;
  114. border-radius: @baseBorderRadius;
  115. margin: 0px;
  116. padding: 0px;
  117. li {
  118. margin: 0px;
  119. padding: 0px;
  120. list-style: none;
  121. a {
  122. border-bottom: 1px dotted @categoryBorder;
  123. display: block;
  124. .opacity(70);
  125. padding: 6px 8px;
  126. color: @textColor;
  127. text-decoration: none;
  128. &:hover, &:active {
  129. .opacity(100);
  130. }
  131. }
  132. &:last-child a {
  133. border-bottom: none;
  134. }
  135. }
  136. }
  137. }
  138. }
  139. }
  140. .forum-details {
  141. border-left: 1px dotted darken(@categoryBackground, 12%);
  142. float: right;
  143. margin: -10px 0px;
  144. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) - 6px;
  145. padding-left: @baseFontSize;
  146. height: 35px;
  147. width: 220px;
  148. .thread-name {
  149. a:link, a:active, a:visited, a:hover {
  150. margin-bottom: 1px;
  151. color: @textColor;
  152. font-size: @fontSizeSmall;
  153. font-weight: bold;
  154. }
  155. }
  156. .muted {
  157. font-size: @fontSizeMini;
  158. line-height: @fontSizeMini;
  159. .last-poster, a:link, a:active, a:visited, a:hover {
  160. color: @gray;
  161. }
  162. }
  163. em {
  164. position: relative;
  165. top: (35px - @baseLineHeight) / 2;
  166. color: @grayLight;
  167. strong {
  168. color: @textColor;
  169. font-weight: normal;
  170. }
  171. }
  172. }
  173. .forum-meta-tooltip {
  174. .tooltip-inner {
  175. max-width: 400px;
  176. text-align: left;
  177. .forum-stats {
  178. color: @grayLight;
  179. font-size: @fontSizeMini;
  180. strong {
  181. color: @white;
  182. }
  183. span {
  184. margin-right: @baseFontSize;
  185. }
  186. }
  187. .forum-description {
  188. clear: both;
  189. margin: 0px;
  190. margin-bottom: @baseFontSize / 2;
  191. padding: 0px;
  192. color: @grayLighter;
  193. font-size: @baseFontSize;
  194. }
  195. }
  196. }
  197. }
  198. }
  199. &.forum-subforums-important {
  200. .header {
  201. background-color: @red;
  202. border: 1px solid darken(@red, 10%);
  203. h2 {
  204. color: @white;
  205. text-shadow: 0px 1px 0px darken(@red, 25%);
  206. small {
  207. color: darken(@red, 40%);
  208. text-shadow: none;
  209. }
  210. }
  211. }
  212. }
  213. &.forum-subforums-inverse {
  214. .header {
  215. background-color: @grayDark;
  216. border: 1px solid darken(@grayDark, 10%);
  217. h2 {
  218. color: @grayLighter;
  219. text-shadow: 0px 1px 0px darken(@black, 25%);
  220. small {
  221. color: lighten(@grayLight, 10%);
  222. text-shadow: none;
  223. }
  224. }
  225. }
  226. }
  227. &.forum-subforums-info {
  228. .header {
  229. background-color: @bluePale;
  230. border: 1px solid darken(@bluePale, 10%);
  231. h2 {
  232. color: @white;
  233. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  234. small {
  235. color: darken(@bluePale, 25%);
  236. text-shadow: none;
  237. }
  238. }
  239. }
  240. }
  241. }
  242. // Threads list
  243. .forum-threads-list {
  244. background-color: @categoryBackground;
  245. border: 1px solid @categoryBorder;
  246. border-radius: @borderRadiusSmall;
  247. .box-shadow(0px 0px 0px 3px @categoryShadow);
  248. margin-bottom: @baseLineHeight;
  249. .header {
  250. background-color: @categoryHeader;
  251. border: 1px solid @categoryBorder;
  252. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  253. margin: -1px;
  254. margin-bottom: 0px;
  255. padding-bottom: 1px;
  256. overflow: auto;
  257. color: @grayLight;
  258. font-weight: bold;
  259. font-size: @fontSizeSmall;
  260. .row-fluid {
  261. &>div {
  262. min-height: auto;
  263. padding: @paddingSmall;
  264. }
  265. .thread-replies {
  266. float: left;
  267. width: 106px;
  268. }
  269. .thread-last {
  270. float: left;
  271. }
  272. }
  273. .check-cell {
  274. label {
  275. margin: 0px;
  276. }
  277. }
  278. }
  279. .thread-row {
  280. border-bottom: 1px solid @categoryBorder;
  281. height: 38px;
  282. overflow: hidden;
  283. padding: (@fontSizeSmall - 2px) 0px;
  284. .row-fluid {
  285. &>div {
  286. min-height: auto;
  287. padding: @paddingSmall;
  288. padding-bottom: 0px;
  289. }
  290. }
  291. &.thread-last {
  292. border-bottom: none;
  293. &>div {
  294. padding-bottom: 1px;
  295. }
  296. }
  297. .thread-icon {
  298. background-color: @itemOldColor;
  299. border: 1px solid darken(@itemOldColor, 10%);
  300. .border-radius(@baseBorderRadius);
  301. display: block;
  302. float: left;
  303. margin: -2px 0px;
  304. margin-left: -1px;
  305. padding: 1px 4px;
  306. &:hover, &:active {
  307. .opacity(100);
  308. }
  309. i {
  310. background-image: url("@{iconWhiteSpritePath}");
  311. }
  312. }
  313. &.thread-new {
  314. .thread-icon {
  315. background-color: @itemNewColor;
  316. border: 1px solid darken(@itemNewColor, 10%);
  317. }
  318. .thread-name {
  319. color: @textColor !important;
  320. }
  321. }
  322. &.threads-list-empty {
  323. height: auto;
  324. padding: @paddingLarge;
  325. font-size: @fontSizeLarge;
  326. text-align: center;
  327. }
  328. .thread-name {
  329. margin-left: 10px;
  330. color: lighten(@textColor, 17%);
  331. font-size: @baseFontSize + 2px;
  332. font-weight: bold;
  333. }
  334. .thread-details, .thread-last-reply {
  335. color: @grayLight;
  336. line-height: @baseFontSize;
  337. a:link, a:visited {
  338. color: @textColor;
  339. }
  340. }
  341. .thread-details {
  342. margin-left: 34px;
  343. font-size: @fontSizeMini;
  344. }
  345. .thread-flags {
  346. float: right;
  347. margin: 0px;
  348. position: relative;
  349. right: -30px;
  350. top: 5px;
  351. padding: 0px;
  352. li {
  353. .border-radius(@baseBorderRadius);
  354. display: block;
  355. float: left;
  356. margin-left: 3px;
  357. padding: 2px 5px;
  358. &.flag-reported {
  359. background-color: @flagReported;
  360. }
  361. &.flag-notreviewed {
  362. background-color: @flagReviewed;
  363. }
  364. &.flag-announcement {
  365. background-color: @flagAnnouncement;
  366. }
  367. &.flag-sticky {
  368. background-color: @flagSticky;
  369. }
  370. &.flag-deleted {
  371. background-color: @flagDeleted;
  372. }
  373. &.flag-closed {
  374. background-color: @flagClosed;
  375. }
  376. }
  377. i {
  378. background-image: url("@{iconWhiteSpritePath}");
  379. }
  380. }
  381. .thread-activity {
  382. border-left: 1px dotted darken(@categoryBackground, 12%);
  383. position: relative;
  384. bottom: 3px;
  385. .thread-last-avatar {
  386. float: left;
  387. img {
  388. .border-radius(@baseBorderRadius);
  389. margin: 0px;
  390. margin-right: @baseFontSize;
  391. width: 40px;
  392. height: 40px;
  393. }
  394. }
  395. .thread-replies {
  396. float: left;
  397. margin-top: -1px;
  398. margin-right: @baseFontSize;
  399. color: @grayLight;
  400. font-size: @fontSizeSmall;
  401. .lead {
  402. font-size: @baseFontSize;
  403. font-weight: bold;
  404. line-height: @baseLineHeight;
  405. }
  406. a:link, a:active, a:visited, a:hover {
  407. color: @gray;
  408. }
  409. }
  410. .thread-last-reply {
  411. border-left: 1px dotted darken(@categoryBackground, 12%);
  412. padding-left: @baseFontSize;
  413. }
  414. .thread-select {
  415. background-color: darken(@categoryBackground, 5%);
  416. display: block;
  417. float: right;
  418. margin: -12px -11px;
  419. margin-left: 0px;
  420. width: 29px;
  421. height: 61px;
  422. &:hover, &:focus, &:active {
  423. background-color: @linkColor;
  424. }
  425. input {
  426. margin: 0px;
  427. position: relative;
  428. right: 2px;
  429. top: 26px;
  430. }
  431. }
  432. }
  433. }
  434. .threads-actions {
  435. background-color: @bodyBackground;
  436. border-top: 1px solid @categoryBorder;
  437. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  438. overflow: auto;
  439. padding: 4px;
  440. color: @grayLight;
  441. font-size: @fontSizeSmall;
  442. form {
  443. margin-bottom: 0px;
  444. }
  445. }
  446. }
  447. .forum-threads-extra {
  448. overflow: auto;
  449. &.extra-top {
  450. margin-bottom: @baseLineHeight;
  451. }
  452. .threads-signin-message {
  453. float: right;
  454. a:link, a:visited {
  455. color: @textColor;
  456. }
  457. }
  458. }