forum.less 11 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. 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. // Threads list
  244. .forum-threads-list {
  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. .header {
  251. background-color: @categoryHeader;
  252. border: 1px solid @categoryBorder;
  253. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  254. margin: -1px;
  255. margin-bottom: 0px;
  256. padding-bottom: 1px;
  257. overflow: auto;
  258. color: @grayLight;
  259. font-weight: bold;
  260. font-size: @fontSizeSmall;
  261. .row-fluid {
  262. &>div {
  263. margin-bottom: 0px;
  264. min-height: 1px;
  265. padding: @paddingSmall;
  266. padding-top: 2px;
  267. padding-bottom: 2px;
  268. }
  269. .thread-replies {
  270. float: left;
  271. width: 106px;
  272. }
  273. .thread-last {
  274. float: left;
  275. }
  276. }
  277. .check-cell {
  278. padding: 0px;
  279. label {
  280. margin: 0px;
  281. }
  282. }
  283. }
  284. .thread-row {
  285. border-bottom: 1px solid @categoryBorder;
  286. height: 38px;
  287. overflow: hidden;
  288. padding: (@fontSizeSmall - 2px) 0px;
  289. .row-fluid {
  290. &>div {
  291. min-height: auto;
  292. padding: @paddingSmall;
  293. padding-bottom: 0px;
  294. }
  295. }
  296. &.thread-last {
  297. border-bottom: none;
  298. &>div {
  299. padding-bottom: 1px;
  300. }
  301. }
  302. .thread-icon {
  303. display: block;
  304. float: left;
  305. position: relative;
  306. bottom: 1px;
  307. color: @itemOldColor;
  308. font-size: @threadIconSize;
  309. &:hover, &:active {
  310. color: @itemOldColor;
  311. text-decoration: none;
  312. }
  313. }
  314. &.thread-new {
  315. .thread-icon {
  316. color: @itemNewColor;
  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: @threadIconSize + 7px;
  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. color: @white;
  359. &.flag-reported {
  360. background-color: @flagReported;
  361. }
  362. &.flag-notreviewed {
  363. background-color: @flagReviewed;
  364. }
  365. &.flag-announcement {
  366. background-color: @flagAnnouncement;
  367. }
  368. &.flag-sticky {
  369. background-color: @flagSticky;
  370. }
  371. &.flag-deleted {
  372. background-color: @flagDeleted;
  373. }
  374. &.flag-closed {
  375. background-color: @flagClosed;
  376. }
  377. }
  378. }
  379. .thread-activity {
  380. border-left: 1px dotted darken(@categoryBackground, 12%);
  381. position: relative;
  382. bottom: 3px;
  383. .thread-last-avatar {
  384. float: left;
  385. img {
  386. .border-radius(@baseBorderRadius);
  387. margin: 0px;
  388. margin-right: @baseFontSize;
  389. width: 40px;
  390. height: 40px;
  391. }
  392. }
  393. .thread-replies {
  394. float: left;
  395. margin-top: -1px;
  396. margin-right: @baseFontSize;
  397. color: @grayLight;
  398. font-size: @fontSizeSmall;
  399. .lead {
  400. font-size: @baseFontSize;
  401. font-weight: bold;
  402. line-height: @baseLineHeight;
  403. }
  404. a:link, a:active, a:visited, a:hover {
  405. color: @gray;
  406. }
  407. }
  408. .thread-last-reply {
  409. border-left: 1px dotted darken(@categoryBackground, 12%);
  410. padding-left: @baseFontSize;
  411. }
  412. .thread-select {
  413. background-color: darken(@categoryBackground, 5%);
  414. display: block;
  415. float: right;
  416. margin: -12px -11px;
  417. margin-left: 0px;
  418. width: 29px;
  419. height: 61px;
  420. &:hover, &:focus, &:active {
  421. background-color: @linkColor;
  422. }
  423. input {
  424. margin: 0px;
  425. position: relative;
  426. right: 2px;
  427. top: 26px;
  428. }
  429. }
  430. }
  431. }
  432. .threads-actions {
  433. background-color: @bodyBackground;
  434. border-top: 1px solid @categoryBorder;
  435. border-radius: 0px 0px @borderRadiusSmall @borderRadiusSmall;
  436. overflow: auto;
  437. padding: 4px;
  438. color: @grayLight;
  439. font-size: @fontSizeSmall;
  440. form {
  441. margin-bottom: 0px;
  442. }
  443. }
  444. }
  445. .forum-threads-extra {
  446. overflow: auto;
  447. &.extra-top {
  448. margin-bottom: @baseLineHeight;
  449. }
  450. .threads-signin-message {
  451. float: right;
  452. a:link, a:visited {
  453. color: @textColor;
  454. }
  455. }
  456. }