category.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. // Category view
  2. // -------------------------
  3. .category-forums-list {
  4. background-color: @categoryBackground;
  5. border: 1px solid @categoryBorder;
  6. border-radius: @borderRadiusSmall;
  7. .box-shadow(0px 0px 0px 3px @categoryShadow);
  8. margin-bottom: @baseLineHeight;
  9. .header {
  10. background-color: @categoryHeader;
  11. border: 1px solid @categoryBorder;
  12. border-radius: @borderRadiusSmall @borderRadiusSmall 0px 0px;
  13. margin: -1px;
  14. margin-bottom: 0px;
  15. padding: (@fontSizeSmall / 3) (@fontSizeSmall - 2px);
  16. h2 {
  17. margin: 0px;
  18. padding: 0px;
  19. color: @grayDark;
  20. font-size: @fontSizeSmall;
  21. font-weight: bold;
  22. line-height: @baseLineHeight;
  23. text-align: left;
  24. small {
  25. margin-left: @baseFontSize / 2;
  26. color: @grayLight;
  27. font-size: @fontSizeSmall;
  28. }
  29. }
  30. }
  31. .forum {
  32. border-bottom: 1px solid @categoryBorder;
  33. height: 21px;
  34. overflow: visible;
  35. padding: ((@fontSizeLarge / 2) + 6px) (@fontSizeSmall - 2px);
  36. &.last {
  37. border-bottom: none;
  38. }
  39. .forum-icon {
  40. float: left;
  41. position: relative;
  42. bottom: 1px;
  43. width: @forumIconSize * 1.5;
  44. color: @itemOldColor;
  45. font-size: @forumIconSize;
  46. text-align: center;
  47. &.forum-icon-new {
  48. color: @itemNewColor;
  49. }
  50. &.forum-icon-redirect {
  51. color: @itemMovedColor;
  52. }
  53. .icon-comment, .icon-comment-alt {
  54. position: relative;
  55. bottom: 3px;
  56. }
  57. }
  58. .forum-main {
  59. margin-left: (@forumIconSize * 1.5) + (@fontSizeSmall - 2px);
  60. h3 {
  61. float: left;
  62. margin: 0px;
  63. padding: 0px;
  64. font-size: @fontSizeLarge;
  65. font-weight: normal;
  66. line-height: @baseLineHeight;
  67. a:link, a:visited {
  68. color: @textColor;
  69. }
  70. }
  71. .dropdown {
  72. float: right;
  73. right: @baseFontSize;
  74. .subforum {
  75. &:link, &:visited {
  76. color: @grayLight;
  77. font-weight: bold;
  78. }
  79. &:hover, &:active {
  80. color: @textColor;
  81. }
  82. }
  83. .dropdown-toggle {
  84. padding: 4px 8px;
  85. .opacity(60);
  86. color: @textColor;
  87. font-weight: bold;
  88. &:hover, &:active, &:focus {
  89. .opacity(100);
  90. text-decoration: none;
  91. }
  92. }
  93. &.open .dropdown-toggle {
  94. background-color: @categoryShadow;
  95. border-radius: @baseBorderRadius @baseBorderRadius 0px 0px;
  96. .opacity(100);
  97. padding-bottom: 6px;
  98. text-decoration: none;
  99. }
  100. .dropdown-menu {
  101. background: none;
  102. border: none;
  103. box-shadow: none;
  104. z-index: 2;
  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. &.category-forums-important {
  200. border-color: @red;
  201. .box-shadow(0px 0px 0px 3px darken(@red, 10%));
  202. }
  203. &.category-forums-inverse {
  204. border-color: @grayDark;
  205. .box-shadow(0px 0px 0px 3px darken(@grayDark, 10%));
  206. }
  207. &.category-forums-info {
  208. border-color: @bluePale;
  209. .box-shadow(0px 0px 0px 3px darken(@bluePale, 10%));
  210. }
  211. }