categories-lists.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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: @line-height-computed / 2;
  82. a, a:link, a:visited, a:active, a:hover, a:focus {
  83. padding: @padding-small-vertical @padding-small-horizontal;
  84. font-size: @font-size-small;
  85. }
  86. }
  87. }
  88. // Last activity
  89. .category-last-activity {
  90. overflow: auto;
  91. li {
  92. display: block;
  93. float: left;
  94. }
  95. .thread-message {
  96. overflow: auto;
  97. .material-icon {
  98. display: block;
  99. float: left;
  100. margin-right: 4px;
  101. position: relative;
  102. top: 1px;
  103. font-size: 18px;
  104. line-height: 18px;
  105. }
  106. }
  107. }
  108. // Compact displays
  109. @media screen and (max-width: @screen-sm-max) {
  110. .panel-category {
  111. // Add little extra top margin over category names
  112. .panel-title, h4 {
  113. margin-top: 3px;
  114. }
  115. // Put top margin over stats, make it small
  116. .category-stats {
  117. display: none;
  118. }
  119. // Don't break thread titles into many lines
  120. .category-last-activity {
  121. margin-bottom: 0px;
  122. .thread-title {
  123. float: none;
  124. clear: both;
  125. overflow: hidden;
  126. margin-top: @line-height-computed / 2;
  127. margin-bottom: @line-height-computed / 5;
  128. padding-right: 0px;
  129. white-space: nowrap;
  130. text-overflow: ellipsis;
  131. }
  132. .poster-name, .thread-date {
  133. font-size: @font-size-small;
  134. }
  135. .thread-date {
  136. position: relative;
  137. top: 1px;
  138. }
  139. }
  140. .thread-message {
  141. padding-top: @line-height-computed / 5;
  142. font-size: small;
  143. .material-icon {
  144. position: relative;
  145. top: -1px;
  146. }
  147. }
  148. }
  149. }
  150. // Full displays
  151. @media screen and (min-width: @screen-md-min) {
  152. .panel-category {
  153. // Pull category stats to the right
  154. .category-stats {
  155. float: right;
  156. margin: 0px;
  157. margin-top: @line-height-computed * -1 - 3px;
  158. overflow: auto;
  159. li {
  160. display: block;
  161. float: left;
  162. }
  163. }
  164. .category-last-activity {
  165. margin-top: @line-height-computed / 5;
  166. margin-bottom: 0px;
  167. }
  168. }
  169. }