forum.less 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  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. position: relative;
  43. bottom: 1px;
  44. width: @forumIconSize * 1.5;
  45. color: @itemOldColor;
  46. font-size: @forumIconSize;
  47. text-align: center;
  48. &.forum-icon-new {
  49. color: @itemNewColor;
  50. }
  51. &.forum-icon-redirect {
  52. color: @itemMovedColor;
  53. }
  54. .icon-comment, .icon-comment-alt {
  55. position: relative;
  56. bottom: 3px;
  57. }
  58. }
  59. .forum-main {
  60. margin-left: (@forumIconSize * 1.5) + (@fontSizeSmall - 2px);
  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. z-index: 2;
  106. .dropdown-shadow{
  107. border-radius: @baseBorderRadius;
  108. .box-shadow(0px 0px 3px @grayLight);
  109. width: 256px;
  110. position: relative;
  111. right: 0px;
  112. top: -4px;
  113. ul {
  114. background-color: @bodyBackground;
  115. border-radius: @baseBorderRadius;
  116. margin: 0px;
  117. padding: 0px;
  118. li {
  119. margin: 0px;
  120. padding: 0px;
  121. list-style: none;
  122. a {
  123. border-bottom: 1px dotted @categoryBorder;
  124. display: block;
  125. .opacity(70);
  126. padding: 6px 8px;
  127. color: @textColor;
  128. text-decoration: none;
  129. &:hover, &:active {
  130. .opacity(100);
  131. }
  132. }
  133. &:last-child a {
  134. border-bottom: none;
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }
  141. .forum-details {
  142. border-left: 1px dotted darken(@categoryBackground, 12%);
  143. float: right;
  144. margin: -10px 0px;
  145. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) - 6px;
  146. padding-left: @baseFontSize;
  147. height: 35px;
  148. width: 220px;
  149. .thread-name {
  150. a:link, a:active, a:visited, a:hover {
  151. margin-bottom: 1px;
  152. color: @textColor;
  153. font-size: @fontSizeSmall;
  154. font-weight: bold;
  155. }
  156. }
  157. .muted {
  158. font-size: @fontSizeMini;
  159. line-height: @fontSizeMini;
  160. .last-poster, a:link, a:active, a:visited, a:hover {
  161. color: @gray;
  162. }
  163. }
  164. em {
  165. position: relative;
  166. top: (35px - @baseLineHeight) / 2;
  167. color: @grayLight;
  168. strong {
  169. color: @textColor;
  170. font-weight: normal;
  171. }
  172. }
  173. }
  174. .forum-meta-tooltip {
  175. .tooltip-inner {
  176. max-width: 400px;
  177. text-align: left;
  178. .forum-stats {
  179. color: @grayLight;
  180. font-size: @fontSizeMini;
  181. strong {
  182. color: @white;
  183. }
  184. span {
  185. margin-right: @baseFontSize;
  186. }
  187. }
  188. .forum-description {
  189. clear: both;
  190. margin: 0px;
  191. margin-bottom: @baseFontSize / 2;
  192. padding: 0px;
  193. color: @grayLighter;
  194. font-size: @baseFontSize;
  195. }
  196. }
  197. }
  198. }
  199. }
  200. &.forum-subforums-important {
  201. .header {
  202. background-color: @red;
  203. border: 1px solid darken(@red, 10%);
  204. h2 {
  205. color: @white;
  206. text-shadow: 0px 1px 0px darken(@red, 25%);
  207. small {
  208. color: darken(@red, 40%);
  209. text-shadow: none;
  210. }
  211. }
  212. }
  213. }
  214. &.forum-subforums-inverse {
  215. .header {
  216. background-color: @grayDark;
  217. border: 1px solid darken(@grayDark, 10%);
  218. h2 {
  219. color: @grayLighter;
  220. text-shadow: 0px 1px 0px darken(@black, 25%);
  221. small {
  222. color: lighten(@grayLight, 10%);
  223. text-shadow: none;
  224. }
  225. }
  226. }
  227. }
  228. &.forum-subforums-info {
  229. .header {
  230. background-color: @bluePale;
  231. border: 1px solid darken(@bluePale, 10%);
  232. h2 {
  233. color: @white;
  234. text-shadow: 0px 1px 0px darken(@bluePale, 25%);
  235. small {
  236. color: darken(@bluePale, 25%);
  237. text-shadow: none;
  238. }
  239. }
  240. }
  241. }
  242. }
  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. .threads-list-empty {
  250. padding: (@baseFontSize * 2) 0px;
  251. color: @grayLight;
  252. font-size: @fontSizeLarge * 1.5;
  253. text-align: center;
  254. .thread-prefix {
  255. position: relative;
  256. bottom: 5px;
  257. }
  258. }
  259. &>ul {
  260. list-style: none;
  261. margin: 0px;
  262. &>li {
  263. border-bottom: 1px solid @categoryBorder;
  264. padding: (@fontSizeSmall - 2px) 0px;
  265. overflow: auto;
  266. .thread-icon {
  267. float: left;
  268. margin-bottom: -2px;
  269. position: relative;
  270. bottom: 1px;
  271. height: @threadIconSize;
  272. width: @threadIconSize + @fontSizeLarge;
  273. font-size: @threadIconSize;
  274. text-align: center;
  275. a:link, a:active, a:visited, a:hover{
  276. color: @itemOldColor;
  277. text-decoration: none;
  278. }
  279. }
  280. .thread-body {
  281. margin: ((@fontSizeSmall - 2px) * -1) 0px;
  282. margin-left: @threadIconSize + @fontSizeLarge;
  283. padding: (@fontSizeSmall - 2px) 0px;
  284. .thread-prefix {
  285. margin-right: @baseFontSize / 2;
  286. position: relative;
  287. bottom: 2px;
  288. }
  289. .thread-title {
  290. display: block;
  291. .thread-link {
  292. &:link, &:active, &:visited, &:hover {
  293. color: @gray;
  294. font-size: @fontSizeLarge;
  295. }
  296. }
  297. }
  298. .thread-activity {
  299. float: right;
  300. list-style: none;
  301. margin: 0px;
  302. margin-top: (@fontSizeSmall - 2px) * -1;
  303. margin-bottom: -6px;
  304. padding: 6px 0px;
  305. padding-right: 8px;
  306. overflow: auto;
  307. position: relative;
  308. top: 1px;
  309. z-index: 2;
  310. li {
  311. float: left;
  312. margin: 0px;
  313. margin-left: 10px;
  314. padding: 0px;
  315. &.thread-replies,
  316. &.thread-replies-reported,
  317. &.thread-replies-moderated {
  318. position: relative;
  319. top: 2px;
  320. color: @gray;
  321. font-size: @fontSizeLarge;
  322. font-weight: bold;
  323. }
  324. &.thread-replies-reported {
  325. color: @red;
  326. }
  327. &.thread-replies-moderated {
  328. color: @purple;
  329. }
  330. &.thread-replies {
  331. position: relative;
  332. top: 2px;
  333. color: @gray;
  334. font-size: @fontSizeLarge;
  335. font-weight: bold;
  336. }
  337. &.thread-last-reply {
  338. position: relative;
  339. top: 2px;
  340. a:link, a:visited {
  341. color: @grayLight;
  342. font-size: @fontSizeLarge;
  343. font-weight: bold;
  344. }
  345. a:hover, a:active {
  346. color: @textColor;
  347. }
  348. }
  349. &.thread-author, &.thread-poster {
  350. position: relative;
  351. top: 2px;
  352. color: @gray;
  353. font-size: @fontSizeLarge;
  354. font-weight: bold;
  355. .user-avatar {
  356. border-radius: @baseBorderRadius;
  357. width: 24px;
  358. height: 24px;
  359. position: relative;
  360. bottom: 2px;
  361. }
  362. }
  363. &.thread-author {
  364. a:link, a:active, a:visited, a:hover {
  365. color: @blue;
  366. }
  367. }
  368. &.thread-poster {
  369. a:link, a:active, a:visited, a:hover {
  370. color: @itemNewColor;
  371. }
  372. }
  373. &.thread-flag {
  374. margin-bottom: -6px;
  375. color: @grayLight;
  376. font-size: 26px;
  377. &.thread-poll {
  378. &:hover {
  379. color: @green;
  380. }
  381. }
  382. &.thread-moderated {
  383. &:hover {
  384. color: @purple;
  385. }
  386. }
  387. &.thread-closed {
  388. &:hover {
  389. color: @red;
  390. }
  391. }
  392. &.thread-deleted {
  393. &:hover {
  394. color: @grayDark;
  395. }
  396. }
  397. }
  398. &.thread-forum {
  399. margin-left: @baseFontSize;
  400. a:link, a:visited {
  401. position: relative;
  402. top: 2px;
  403. color: @grayLight;
  404. font-size: @fontSizeLarge;
  405. }
  406. a:hover, a:active {
  407. color: @textColor;
  408. }
  409. }
  410. &.thread-select {
  411. label {
  412. border-radius: @baseBorderRadius;
  413. display: inline-block;
  414. margin: 0px;
  415. margin-bottom: -5px;
  416. padding-right: 3px;
  417. padding-bottom: 4px;
  418. &:hover {
  419. background-color: @grayLighter;
  420. }
  421. &:active {
  422. background-color: @red;
  423. }
  424. input {
  425. margin-top: 6px;
  426. position: relative;
  427. left: 6px;
  428. }
  429. }
  430. }
  431. }
  432. }
  433. .thread-details {
  434. float: left;
  435. list-style: none;
  436. margin: 0px;
  437. padding: 0px;
  438. li {
  439. float: left;
  440. margin-right: @baseFontSize / 2;
  441. color: @grayLight;
  442. font-size: @fontSizeSmall;
  443. a:link, a:visited {
  444. color: @gray;
  445. }
  446. a:hover, a:active {
  447. color: @textColor;
  448. }
  449. }
  450. }
  451. }
  452. &.thread-new {
  453. .thread-icon {
  454. a:link, a:active, a:visited, a:hover {
  455. color: @itemNewColor;
  456. }
  457. }
  458. .thread-title {
  459. &:link, &:active, &:visited, &:hover {
  460. color: @textColor;
  461. }
  462. }
  463. }
  464. }
  465. &>li:last-child {
  466. border-bottom: none;
  467. }
  468. }
  469. .threads-actions {
  470. background-color: @bodyBackground;
  471. border-top: 1px solid @categoryBorder;
  472. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  473. overflow: auto;
  474. padding: 4px;
  475. color: @grayLight;
  476. font-size: @fontSizeSmall;
  477. form {
  478. margin-bottom: 0px;
  479. }
  480. }
  481. }
  482. .forum-threads-extra {
  483. overflow: auto;
  484. &.extra-top {
  485. margin-bottom: @baseLineHeight;
  486. }
  487. .threads-signin-message {
  488. float: right;
  489. a:link, a:visited {
  490. color: @textColor;
  491. }
  492. }
  493. }
  494. .prefix-select {
  495. margin: 0px;
  496. margin-left: @baseFontSize;
  497. padding: 0px;
  498. ul {
  499. margin: 0px;
  500. overflow: auto;
  501. li {
  502. float: left;
  503. list-style: none;
  504. margin: 0px;
  505. padding: 4px 0px;
  506. }
  507. }
  508. .selection-title {
  509. margin-right: @fontSizeSmall / 2;
  510. padding: 4px 0px;
  511. color: @gray;
  512. font-weight: bold;
  513. }
  514. .label {
  515. margin: 0px 4px;
  516. position: relative;
  517. bottom: 0px;
  518. .opacity(90);
  519. outline: none;
  520. padding: 4px 6px;
  521. font-size: @baseFontSize;
  522. font-weight: normal;
  523. &.label-cancel {
  524. background-color: @bodyBackground;
  525. border: 1px solid @grayLight;
  526. margin-top: -1px;
  527. color: @gray;
  528. text-shadow: none;
  529. &:hover, &:active {
  530. border: 1px solid @grayLight;
  531. color: @textColor;
  532. }
  533. }
  534. &.label-success {
  535. &, &:hover, &:active {
  536. background-color: lighten(@successText, 45%);
  537. border-color: lighten(@successText, 20%);
  538. color: @successText;
  539. text-shadow: none;
  540. }
  541. &.label-active {
  542. background-color: @successText;
  543. border-color: darken(@successText, 20%);
  544. color: @white;
  545. text-shadow: 0px -1px 0px darken(@successText, 20%);
  546. }
  547. }
  548. &.label-info {
  549. &, &:hover, &:active {
  550. background-color: lighten(@infoText, 45%);
  551. border-color: lighten(@infoText, 20%);
  552. color: @infoText;
  553. text-shadow: none;
  554. }
  555. &.label-active {
  556. background-color: @infoText;
  557. border-color: darken(@infoText, 20%);
  558. color: @white;
  559. text-shadow: 0px -1px 0px darken(@infoText, 20%);
  560. }
  561. }
  562. &.label-warning {
  563. &, &:hover, &:active {
  564. background-color: lighten(@orange, 42%);
  565. border-color: lighten(@orange, 20%);
  566. color: @orange;
  567. text-shadow: none;
  568. }
  569. &.label-active {
  570. background-color: @orange;
  571. border-color: darken(@orange, 20%);
  572. color: @white;
  573. text-shadow: 0px -1px 0px darken(@orange, 20%);
  574. }
  575. }
  576. &.label-important {
  577. &, &:hover, &:active {
  578. background-color: lighten(@errorText, 45%);
  579. border-color: lighten(@errorText, 20%);
  580. color: @errorText;
  581. text-shadow: none;
  582. }
  583. &.label-active {
  584. background-color: @errorText;
  585. border-color: darken(@errorText, 20%);
  586. color: @white;
  587. text-shadow: 0px -1px 0px darken(@errorText, 20%);
  588. }
  589. }
  590. &.label-inverse {
  591. &, &:hover, &:active {
  592. background-color: lighten(@grayDark, 40%);
  593. border-color: lighten(@grayDark, 20%);
  594. color: @grayDark;
  595. text-shadow: none;
  596. }
  597. &.label-active {
  598. background-color: @grayDark;
  599. border-color: darken(@grayDark, 20%);
  600. color: @white;
  601. text-shadow: 0px -1px 0px darken(@grayDark, 20%);
  602. }
  603. }
  604. &.btn-active, &:hover, &:active {
  605. .box-shadow(none);
  606. .opacity(100);
  607. }
  608. }
  609. }