categories-lists.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. //
  2. // Categories Lists
  3. // --------------------------------------------------
  4. // Subcategories list
  5. // --------------------------------------------------
  6. .list-inline.subcategories-list {
  7. overflow: auto;
  8. margin-top: @line-height-computed / -2;
  9. li {
  10. display: block;
  11. float: left;
  12. a, a:link, a:visited, a:active, a:hover, a:focus {
  13. background-color: @gray-lighter;
  14. border: 1px solid darken(@gray-lighter, 5%);
  15. border-radius: @border-radius-base;
  16. display: inline-block;
  17. margin-top: @line-height-computed / 2;
  18. padding: @padding-base-vertical @padding-base-horizontal;
  19. color: @gray;
  20. }
  21. &:focus, a:hover, a:active {
  22. background-color: darken(@gray-lighter, 5%);
  23. color: @text-color;
  24. text-decoration: none;
  25. }
  26. }
  27. }
  28. // Category Block
  29. // --------------------------------------------------
  30. // Alone heading
  31. .panel-category {
  32. .panel-heading.heading-alone {
  33. border-radius: @border-radius-base;
  34. border-bottom: none;
  35. }
  36. }
  37. // Category titles
  38. .panel-category {
  39. .panel-title, h4 {
  40. overflow: auto;
  41. margin: 0px;
  42. padding: 0px;
  43. font-size: @font-size-large;
  44. a {
  45. display: block;
  46. float: left;
  47. margin-top: 1px;
  48. }
  49. .read-status {
  50. float: left;
  51. cursor: help;
  52. .material-icon {
  53. margin: 0px;
  54. margin-right: 4px;
  55. width: 26px;
  56. position: relative;
  57. bottom: 1px;
  58. color: @category-read-color;
  59. font-size: 24px;
  60. line-height: 24px;
  61. text-align: center;
  62. }
  63. &.item-new .material-icon {
  64. color: @category-new-color;
  65. }
  66. }
  67. }
  68. }
  69. // Even category description
  70. .panel-category .category-description,
  71. .panel-category .subcategory-description {
  72. p:last-child {
  73. margin-bottom: 0px;
  74. }
  75. }
  76. .panel-category .subcategory-description {
  77. margin-top: @line-height-computed / 2;
  78. font-size: @font-size-small;
  79. }
  80. // Subcategories upper margin
  81. .panel-category .category-subcategories {
  82. .subcategories-list {
  83. margin-top: 0px;
  84. a, a:link, a:visited, a:active, a:hover, a:focus {
  85. margin-top: @line-height-computed / 2;
  86. padding: @padding-small-vertical @padding-small-horizontal;
  87. font-size: @font-size-small;
  88. }
  89. }
  90. }
  91. // Last activity
  92. .category-last-post {
  93. margin-top: 6px;
  94. margin-bottom: 0px;
  95. }
  96. // Category message
  97. .category-thread-message {
  98. overflow: auto;
  99. margin-top: 6px;
  100. margin-bottom: 0px;
  101. .material-icon {
  102. display: block;
  103. float: left;
  104. margin-right: 4px;
  105. position: relative;
  106. top: 1px;
  107. font-size: 18px;
  108. line-height: 18px;
  109. }
  110. }
  111. // Compact displays
  112. @media screen and (max-width: @screen-sm-max) {
  113. .panel-category {
  114. // Add little extra top margin over category names
  115. .panel-title, h4 {
  116. margin-top: 3px;
  117. }
  118. // Put top margin over stats, make it small
  119. .category-stats {
  120. display: none;
  121. }
  122. // Don't break thread titles into many lines
  123. .category-last-activity {
  124. margin-bottom: 0px;
  125. .thread-title {
  126. float: none;
  127. clear: both;
  128. overflow: hidden;
  129. margin-top: @line-height-computed / 2;
  130. margin-bottom: @line-height-computed / 5;
  131. padding-right: 0px;
  132. white-space: nowrap;
  133. text-overflow: ellipsis;
  134. }
  135. .poster-name, .thread-date {
  136. font-size: @font-size-small;
  137. }
  138. .thread-date {
  139. position: relative;
  140. top: 1px;
  141. }
  142. }
  143. .thread-message {
  144. padding-top: @line-height-computed / 5;
  145. font-size: small;
  146. .material-icon {
  147. position: relative;
  148. top: -1px;
  149. }
  150. }
  151. }
  152. }
  153. // Full displays
  154. @media screen and (min-width: @screen-md-min) {
  155. .panel-category {
  156. // Pull category stats to the right
  157. .category-stats {
  158. float: right;
  159. margin: 0px;
  160. margin-top: @line-height-computed * -1 - 3px;
  161. overflow: auto;
  162. li {
  163. display: block;
  164. float: left;
  165. }
  166. }
  167. .category-last-activity {
  168. margin-top: @line-height-computed / 5;
  169. margin-bottom: 0px;
  170. }
  171. }
  172. }