forum.less 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  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. // New threads list
  244. .forum-threads-list-new {
  245. background-color: @categoryBackground;
  246. border: 1px solid @categoryBorder;
  247. border-radius: @borderRadiusSmall;
  248. .box-shadow(0px 0px 0px 3px @categoryShadow);
  249. margin-bottom: @baseLineHeight;
  250. .threads-list-empty {
  251. padding: (@baseFontSize * 2) 0px;
  252. color: @grayLight;
  253. font-size: @fontSizeLarge * 1.5;
  254. text-align: center;
  255. }
  256. &>ul {
  257. list-style: none;
  258. margin: 0px;
  259. &>li {
  260. border-bottom: 1px solid @categoryBorder;
  261. padding: (@fontSizeSmall - 2px) 0px;
  262. overflow: auto;
  263. .thread-icon {
  264. float: left;
  265. width: @threadIconSize + @fontSizeLarge;
  266. color: @itemOldColor;
  267. font-size: @threadIconSize;
  268. text-align: center;
  269. text-decoration: none;
  270. margin-bottom: -1px;
  271. }
  272. .thread-body {
  273. margin: ((@fontSizeSmall - 2px) * -1) 0px;
  274. margin-left: @threadIconSize + @fontSizeLarge;
  275. padding: (@fontSizeSmall - 2px) 0px;
  276. .thread-title {
  277. display: block;
  278. position: relative;
  279. top: 1px;
  280. a:link, a:active, a:visited, a:hover {
  281. color: @gray;
  282. font-size: @fontSizeLarge;
  283. }
  284. .thread-flags {
  285. display: none;
  286. list-style: none;
  287. margin: 0px;
  288. padding: 0px;
  289. position: relative;
  290. top: 4px;
  291. left: -4px;
  292. li {
  293. float: left;
  294. margin-left: @baseFontSize / 2;
  295. }
  296. }
  297. }
  298. .thread-activity {
  299. float: right;
  300. list-style: none;
  301. margin: 0px;
  302. margin-top: (@fontSizeSmall - 2px) * -1;
  303. padding: 6px 0px;
  304. padding-right: 8px;
  305. overflow: auto;
  306. position: relative;
  307. top: 2px;
  308. z-index: 2;
  309. li {
  310. float: left;
  311. margin: 0px;
  312. margin-left: 8px;
  313. padding: 0px;
  314. &.thread-replies,
  315. &.thread-replies-reported,
  316. &.thread-replies-moderated {
  317. position: relative;
  318. top: 2px;
  319. color: @gray;
  320. font-size: @fontSizeLarge;
  321. font-weight: bold;
  322. }
  323. &.thread-replies-reported {
  324. color: @red;
  325. }
  326. &.thread-replies-moderated {
  327. color: @purple;
  328. }
  329. &.thread-replies {
  330. &.thread-replies-new {
  331. color: @itemNewColor;
  332. }
  333. }
  334. &.thread-replies {
  335. position: relative;
  336. top: 2px;
  337. color: @gray;
  338. font-size: @fontSizeLarge;
  339. font-weight: bold;
  340. &.thread-replies-new {
  341. color: @itemNewColor;
  342. }
  343. }
  344. &.thread-last-reply {
  345. position: relative;
  346. top: 2px;
  347. a:link, a:visited {
  348. color: @grayLight;
  349. font-size: @fontSizeLarge;
  350. font-weight: bold;
  351. }
  352. a:hover, a:active {
  353. color: @textColor;
  354. }
  355. }
  356. &.thread-author, &.thread-poster {
  357. position: relative;
  358. top: 2px;
  359. color: @gray;
  360. font-size: @fontSizeLarge;
  361. font-weight: bold;
  362. .user-avatar {
  363. border-radius: @baseBorderRadius;
  364. width: 24px;
  365. height: 24px;
  366. position: relative;
  367. bottom: 2px;
  368. }
  369. }
  370. &.thread-author {
  371. a:link, a:active, a:visited, a:hover {
  372. color: @blue;
  373. }
  374. }
  375. &.thread-poster {
  376. a:link, a:active, a:visited, a:hover {
  377. color: @itemNewColor;
  378. }}
  379. &.thread-flag {
  380. color: @grayLight;
  381. font-size: 26px;
  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-select {
  399. label {
  400. border-radius: @baseBorderRadius;
  401. display: inline-block;
  402. margin: 0px;
  403. margin-bottom: -5px;
  404. padding-right: 3px;
  405. padding-bottom: 4px;
  406. &:hover {
  407. background-color: @grayLighter;
  408. }
  409. &:active {
  410. background-color: @red;
  411. }
  412. input {
  413. margin-top: 6px;
  414. position: relative;
  415. left: 6px;
  416. }
  417. }
  418. }
  419. }
  420. }
  421. .thread-details {
  422. float: left;
  423. list-style: none;
  424. margin: 0px;
  425. padding: 0px;
  426. li {
  427. float: left;
  428. margin-right: @baseFontSize / 2;
  429. color: @grayLight;
  430. font-size: @fontSizeSmall;
  431. a:link, a:visited {
  432. color: @gray;
  433. }
  434. a:hover, a:active {
  435. color: @textColor;
  436. }
  437. }
  438. }
  439. }
  440. &.thread-new {
  441. .thread-icon {
  442. color: @itemNewColor;
  443. }
  444. .thread-title {
  445. &:link, &:active, &:visited, &:hover {
  446. color: @textColor;
  447. }
  448. }
  449. }
  450. }
  451. &>li:last-child {
  452. border-bottom: none;
  453. }
  454. }
  455. .threads-actions {
  456. background-color: @bodyBackground;
  457. border-top: 1px solid @categoryBorder;
  458. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  459. overflow: auto;
  460. padding: 4px;
  461. color: @grayLight;
  462. font-size: @fontSizeSmall;
  463. form {
  464. margin-bottom: 0px;
  465. }
  466. }
  467. }
  468. // Threads list
  469. .forum-threads-list {
  470. background-color: @categoryBackground;
  471. border: 1px solid @categoryBorder;
  472. border-radius: @borderRadiusSmall;
  473. .box-shadow(0px 0px 0px 3px @categoryShadow);
  474. margin-bottom: @baseLineHeight;
  475. .header {
  476. background-color: @categoryHeader;
  477. border: 1px solid @categoryBorder;
  478. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  479. margin: -1px;
  480. margin-bottom: 0px;
  481. padding-bottom: 1px;
  482. overflow: auto;
  483. color: @grayLight;
  484. font-weight: bold;
  485. font-size: @fontSizeSmall;
  486. .row-fluid {
  487. &>div {
  488. margin-bottom: 0px;
  489. min-height: 1px;
  490. padding: @paddingSmall;
  491. padding-top: 2px;
  492. padding-bottom: 2px;
  493. }
  494. .thread-replies {
  495. float: left;
  496. width: 106px;
  497. }
  498. .thread-last {
  499. float: left;
  500. }
  501. }
  502. .check-cell {
  503. padding: 0px;
  504. label {
  505. margin: 0px;
  506. }
  507. }
  508. }
  509. .thread-row {
  510. border-bottom: 1px solid @categoryBorder;
  511. height: 38px;
  512. overflow: hidden;
  513. padding: (@fontSizeSmall - 2px) 0px;
  514. .row-fluid {
  515. &>div {
  516. min-height: auto;
  517. padding: @paddingSmall;
  518. padding-bottom: 0px;
  519. }
  520. }
  521. &.thread-last {
  522. border-bottom: none;
  523. &>div {
  524. padding-bottom: 1px;
  525. }
  526. }
  527. .thread-icon {
  528. display: block;
  529. float: left;
  530. position: relative;
  531. bottom: 1px;
  532. color: @itemOldColor;
  533. font-size: @threadIconSize;
  534. &:hover, &:active {
  535. color: @itemOldColor;
  536. text-decoration: none;
  537. }
  538. }
  539. &.thread-new {
  540. .thread-icon {
  541. color: @itemNewColor;
  542. }
  543. .thread-name {
  544. color: @textColor !important;
  545. }
  546. }
  547. &.threads-list-empty {
  548. height: auto;
  549. padding: @paddingLarge;
  550. font-size: @fontSizeLarge;
  551. text-align: center;
  552. }
  553. .thread-name {
  554. margin-left: 10px;
  555. color: lighten(@textColor, 17%);
  556. font-size: @baseFontSize + 2px;
  557. font-weight: bold;
  558. }
  559. .thread-details, .thread-last-reply {
  560. color: @grayLight;
  561. line-height: @baseFontSize;
  562. a:link, a:visited {
  563. color: @textColor;
  564. }
  565. }
  566. .thread-details {
  567. margin-left: @threadIconSize + 7px;
  568. font-size: @fontSizeMini;
  569. }
  570. .thread-flags {
  571. float: right;
  572. margin: 0px;
  573. position: relative;
  574. right: -30px;
  575. top: 5px;
  576. padding: 0px;
  577. li {
  578. .border-radius(@baseBorderRadius);
  579. display: block;
  580. float: left;
  581. margin-left: 3px;
  582. padding: 2px 5px;
  583. color: @white;
  584. &.flag-reported {
  585. background-color: @flagReported;
  586. }
  587. &.flag-notreviewed {
  588. background-color: @flagReviewed;
  589. }
  590. &.flag-announcement {
  591. background-color: @flagAnnouncement;
  592. }
  593. &.flag-sticky {
  594. background-color: @flagSticky;
  595. }
  596. &.flag-deleted {
  597. background-color: @flagDeleted;
  598. }
  599. &.flag-closed {
  600. background-color: @flagClosed;
  601. }
  602. }
  603. }
  604. .thread-activity {
  605. border-left: 1px dotted darken(@categoryBackground, 12%);
  606. position: relative;
  607. bottom: 3px;
  608. .thread-last-avatar {
  609. float: left;
  610. img {
  611. .border-radius(@baseBorderRadius);
  612. margin: 0px;
  613. margin-right: @baseFontSize;
  614. width: 40px;
  615. height: 40px;
  616. }
  617. }
  618. .thread-replies {
  619. float: left;
  620. margin-top: -1px;
  621. margin-right: @baseFontSize;
  622. color: @grayLight;
  623. font-size: @fontSizeSmall;
  624. .lead {
  625. font-size: @baseFontSize;
  626. font-weight: bold;
  627. line-height: @baseLineHeight;
  628. }
  629. a:link, a:active, a:visited, a:hover {
  630. color: @gray;
  631. }
  632. }
  633. .thread-last-reply {
  634. border-left: 1px dotted darken(@categoryBackground, 12%);
  635. padding-left: @baseFontSize;
  636. }
  637. .thread-select {
  638. background-color: darken(@categoryBackground, 5%);
  639. display: block;
  640. float: right;
  641. margin: -12px -11px;
  642. margin-left: 0px;
  643. width: 29px;
  644. height: 61px;
  645. &:hover, &:focus, &:active {
  646. background-color: @linkColor;
  647. }
  648. input {
  649. margin: 0px;
  650. position: relative;
  651. right: 2px;
  652. top: 26px;
  653. }
  654. }
  655. }
  656. }
  657. .threads-actions {
  658. background-color: @bodyBackground;
  659. border-top: 1px solid @categoryBorder;
  660. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  661. overflow: auto;
  662. padding: 4px;
  663. color: @grayLight;
  664. font-size: @fontSizeSmall;
  665. form {
  666. margin-bottom: 0px;
  667. }
  668. }
  669. }
  670. .forum-threads-extra {
  671. overflow: auto;
  672. &.extra-top {
  673. margin-bottom: @baseLineHeight;
  674. }
  675. .threads-signin-message {
  676. float: right;
  677. a:link, a:visited {
  678. color: @textColor;
  679. }
  680. }
  681. }