category.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. table {
  10. margin: 0px;
  11. tr:first-child {
  12. td {
  13. border-top: none;
  14. }
  15. }
  16. td {
  17. padding: ((@fontSizeLarge / 2) + 6px) (@fontSizeSmall - 2px);
  18. padding-bottom: (@fontSizeLarge / 2) + 7px;
  19. }
  20. .forum-icon {
  21. padding-right: (@fontSizeSmall / 2) - 3px;
  22. width: 1%;
  23. .forum-icon-wrap {
  24. background-color: @itemOldColor;
  25. border: 1px solid darken(@itemOldColor, 10%);
  26. border-radius: @baseBorderRadius;
  27. padding: (@forumIconSize - 1px) @forumIconSize;
  28. &.forum-icon-new {
  29. background-color: @itemNewColor;
  30. border: 1px solid darken(@itemNewColor, 10%);
  31. }
  32. &.forum-icon-redirect {
  33. background-color: @itemMovedColor;
  34. border: 1px solid darken(@itemMovedColor, 10%);
  35. }
  36. }
  37. }
  38. .forum-main {
  39. h3 {
  40. float: left;
  41. margin: 0px;
  42. padding: 0px;
  43. font-size: @fontSizeLarge;
  44. font-weight: normal;
  45. line-height: @baseLineHeight;
  46. a:link, a:visited {
  47. color: @textColor;
  48. }
  49. }
  50. .dropdown {
  51. float: right;
  52. right: @baseFontSize;
  53. .dropdown-toggle {
  54. padding: 4px 8px;
  55. .opacity(60);
  56. color: @textColor;
  57. font-weight: bold;
  58. &:hover, &:active, &:focus {
  59. .opacity(100);
  60. text-decoration: none;
  61. }
  62. }
  63. &.open .dropdown-toggle {
  64. background-color: @categoryShadow;
  65. border-radius: @baseBorderRadius @baseBorderRadius 0px 0px;
  66. .opacity(100);
  67. padding-bottom: 6px;
  68. text-decoration: none;
  69. }
  70. .dropdown-menu {
  71. background: none;
  72. border: none;
  73. box-shadow: none;
  74. .dropdown-shadow{
  75. border-radius: @baseBorderRadius;
  76. .box-shadow(0px 0px 3px @grayLight);
  77. width: 256px;
  78. position: relative;
  79. right: 0px;
  80. top: -4px;
  81. ul {
  82. background-color: @bodyBackground;
  83. border-radius: @baseBorderRadius;
  84. margin: 0px;
  85. padding: 0px;
  86. li {
  87. margin: 0px;
  88. padding: 0px;
  89. list-style: none;
  90. a {
  91. border-bottom: 1px dotted @categoryBorder;
  92. display: block;
  93. .opacity(70);
  94. padding: 6px 8px;
  95. color: @textColor;
  96. text-decoration: none;
  97. &:hover, &:active {
  98. .opacity(100);
  99. }
  100. }
  101. &:last-child a {
  102. border-bottom: none;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }
  109. .forum-details {
  110. border-left: 1px dotted darken(@categoryBackground, 12%);
  111. float: right;
  112. margin: -10px 0px;
  113. margin-top: ((@baseFontSize - @fontSizeSmall) * -1) - 6px;
  114. padding-left: @baseFontSize;
  115. height: 35px;
  116. width: 220px;
  117. .thread-name {
  118. a:link, a:active, a:visited, a:hover {
  119. margin-bottom: 1px;
  120. color: @textColor;
  121. font-size: @fontSizeSmall;
  122. font-weight: bold;
  123. }
  124. }
  125. .muted {
  126. font-size: @fontSizeMini;
  127. line-height: @fontSizeMini;
  128. .last-poster, a:link, a:active, a:visited, a:hover {
  129. color: @gray;
  130. }
  131. }
  132. em {
  133. position: relative;
  134. top: (35px - @baseLineHeight) / 2;
  135. color: @grayLight;
  136. strong {
  137. color: @textColor;
  138. font-weight: normal;
  139. }
  140. }
  141. }
  142. .forum-meta-tooltip {
  143. .tooltip-inner {
  144. max-width: 400px;
  145. text-align: left;
  146. .forum-stats {
  147. color: @grayLight;
  148. font-size: @fontSizeMini;
  149. strong {
  150. color: @white;
  151. }
  152. span {
  153. margin-right: @baseFontSize;
  154. }
  155. }
  156. .forum-description {
  157. clear: both;
  158. margin: 0px;
  159. margin-bottom: @baseFontSize / 2;
  160. padding: 0px;
  161. color: @grayLighter;
  162. font-size: @baseFontSize;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. &.category-forums-important {
  169. border: 1px solid darken(@red, 15%);
  170. .box-shadow(0px 0px 0px 3px @red);
  171. }
  172. &.category-forums-inverse {
  173. border: 1px solid @grayDark;
  174. .box-shadow(0px 0px 0px 3px @gray);
  175. }
  176. &.category-forums-info {
  177. border: 1px solid darken(@bluePale, 15%);
  178. .box-shadow(0px 0px 0px 3px @bluePale);
  179. }
  180. }