forums.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. //
  2. // Forums lists
  3. // --------------------------------------------------
  4. // Panel header
  5. //
  6. //==
  7. .forums-list {
  8. .panel-forums {
  9. .panel-heading {
  10. border: 1px solid @panel-default-border;
  11. margin: -1px;
  12. margin-bottom: 0px;
  13. padding-top: @padding-base-vertical;
  14. padding-bottom: @padding-base-vertical;
  15. h3 {
  16. font-size: @font-size-small;
  17. font-weight: bold;
  18. }
  19. }
  20. }
  21. }
  22. // Panel forums
  23. //
  24. //==
  25. .forums-list {
  26. .panel-forums {
  27. .list-group {
  28. .forum-icon {
  29. padding-right: @line-height-computed;
  30. color: @state-default;
  31. font-size: @font-size-large * 1.3;
  32. &.new {
  33. color: @state-active;
  34. }
  35. &.fa-link {
  36. position: relative;
  37. top: 3px;
  38. color: @brand-success;
  39. }
  40. }
  41. .forum-name {
  42. font-size: @font-size-large;
  43. }
  44. .dropdown {
  45. .btn {
  46. .box-shadow(none);
  47. position: static;
  48. margin: 0px;
  49. margin-top: -2px;
  50. }
  51. .dropdown-menu {
  52. a {
  53. .forum-icon {
  54. padding-right: 0px;
  55. position: relative;
  56. bottom: 2px;
  57. font-size: @font-size-base;
  58. }
  59. &:hover, &:active, &:focus {
  60. .fa {
  61. color: @dropdown-bg;
  62. }
  63. }
  64. }
  65. }
  66. }
  67. footer {
  68. border-left: 1px dotted @panel-inner-border;
  69. float: right;
  70. margin-top: -4px;
  71. margin-left: @line-height-computed / 2;
  72. padding-left: @line-height-computed / 2;
  73. width: 33%;
  74. &>em.text-muted {
  75. display: block;
  76. padding: ((@font-size-base / 2) + 1px) 0px;
  77. font-size: @font-size-small;
  78. }
  79. &>a {
  80. display: block;
  81. overflow: hidden;
  82. font-size: @font-size-small;
  83. font-weight: bold;
  84. text-overflow: ellipsis;
  85. white-space: nowrap;
  86. }
  87. .text-muted {
  88. overflow: hidden;
  89. font-size: @font-size-small - 1px;
  90. text-overflow: ellipsis;
  91. white-space: nowrap;
  92. .item-title {
  93. font-weight: normal;
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
  100. // Forum description tooltip
  101. //
  102. //==
  103. .tooltip.forum-description {
  104. .tooltip-inner {
  105. padding: @padding-base-vertical @padding-base-horizontal;
  106. max-width: 300px;
  107. text-align: left;
  108. p {
  109. margin-top: 0px;
  110. font-size: @font-size-base;
  111. }
  112. ul {
  113. margin: 0px;
  114. overflow: auto;
  115. li {
  116. float: left;
  117. margin-right: @line-height-computed;
  118. color: darken(#fff, 15%);
  119. strong {
  120. color: #fff;
  121. }
  122. &:last-child {
  123. margin-right: 0px;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. // Few predefined CSS classes for block styling
  130. //
  131. //==
  132. .forum-panel-flavour(@color) {
  133. .panel-heading {
  134. background: desaturate(darken(@color, 3%), 7%);
  135. border-color: desaturate(darken(@color, 14%), 7%);
  136. h3 {
  137. color: #fff;
  138. text-shadow: 1px 1px 0px darken(@color, 25%);
  139. }
  140. }
  141. }
  142. .panel-forums {
  143. &.primary {.forum-panel-flavour(@brand-primary);}
  144. &.accent {.forum-panel-flavour(darken(@brand-accent, 7%));}
  145. &.success {.forum-panel-flavour(@brand-success);}
  146. &.warning {.forum-panel-flavour(@brand-warning);}
  147. &.danger {.forum-panel-flavour(@brand-danger);}
  148. }