category.less 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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. .forum-icon-wrap {
  42. background-color: @itemOldColor;
  43. border: 1px solid darken(@itemOldColor, 10%);
  44. border-radius: @baseBorderRadius;
  45. padding: ((@forumIconSize - 22px) / 2) ((@forumIconSize - 16px) / 2);
  46. position: relative;
  47. bottom: (@forumIconSize - @baseLineHeight) / 2;
  48. &.forum-icon-new {
  49. background-color: @itemNewColor;
  50. border: 1px solid darken(@itemNewColor, 10%);
  51. }
  52. &.forum-icon-redirect {
  53. background-color: @itemMovedColor;
  54. border: 1px solid darken(@itemMovedColor, 10%);
  55. }
  56. }
  57. }
  58. .forum-main {
  59. margin-left: @forumIconSize + 10px;
  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. .dropdown-shadow{
  105. border-radius: @baseBorderRadius;
  106. .box-shadow(0px 0px 3px @grayLight);
  107. width: 256px;
  108. position: relative;
  109. right: 0px;
  110. top: -4px;
  111. ul {
  112. background-color: @bodyBackground;
  113. border-radius: @baseBorderRadius;
  114. margin: 0px;
  115. padding: 0px;
  116. li {
  117. margin: 0px;
  118. padding: 0px;
  119. list-style: none;
  120. a {
  121. border-bottom: 1px dotted @categoryBorder;
  122. display: block;
  123. .opacity(70);
  124. padding: 6px 8px;
  125. color: @textColor;
  126. text-decoration: none;
  127. &:hover, &:active {
  128. .opacity(100);
  129. }
  130. }
  131. &:last-child a {
  132. border-bottom: none;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. .forum-details {
  140. border-left: 1px dotted darken(@categoryBackground, 12%);
  141. float: right;
  142. margin: -10px 0px;
  143. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) - 6px;
  144. padding-left: @baseFontSize;
  145. height: 35px;
  146. width: 220px;
  147. .thread-name {
  148. a:link, a:active, a:visited, a:hover {
  149. margin-bottom: 1px;
  150. color: @textColor;
  151. font-size: @fontSizeSmall;
  152. font-weight: bold;
  153. }
  154. }
  155. .muted {
  156. font-size: @fontSizeMini;
  157. line-height: @fontSizeMini;
  158. .last-poster, a:link, a:active, a:visited, a:hover {
  159. color: @gray;
  160. }
  161. }
  162. em {
  163. position: relative;
  164. top: (35px - @baseLineHeight) / 2;
  165. color: @grayLight;
  166. strong {
  167. color: @textColor;
  168. font-weight: normal;
  169. }
  170. }
  171. }
  172. .forum-meta-tooltip {
  173. .tooltip-inner {
  174. max-width: 400px;
  175. text-align: left;
  176. .forum-stats {
  177. color: @grayLight;
  178. font-size: @fontSizeMini;
  179. strong {
  180. color: @white;
  181. }
  182. span {
  183. margin-right: @baseFontSize;
  184. }
  185. }
  186. .forum-description {
  187. clear: both;
  188. margin: 0px;
  189. margin-bottom: @baseFontSize / 2;
  190. padding: 0px;
  191. color: @grayLighter;
  192. font-size: @baseFontSize;
  193. }
  194. }
  195. }
  196. }
  197. }
  198. &.category-forums-important {
  199. border-color: @red;
  200. .box-shadow(0px 0px 0px 3px darken(@red, 10%));
  201. }
  202. &.category-forums-inverse {
  203. border-color: @grayDark;
  204. .box-shadow(0px 0px 0px 3px darken(@grayDark, 10%));
  205. }
  206. &.category-forums-info {
  207. border-color: @bluePale;
  208. .box-shadow(0px 0px 0px 3px darken(@bluePale, 10%));
  209. }
  210. }