categories-lists.less 3.9 KB

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