categories-lists.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. .material-icon {
  50. margin: 0px;
  51. margin-right: 4px;
  52. width: 26px;
  53. position: relative;
  54. bottom: 1px;
  55. color: @read-status-old;
  56. font-size: 24px;
  57. line-height: 24px;
  58. text-align: center;
  59. }
  60. &.item-new .material-icon {
  61. color: @read-status-new;
  62. }
  63. }
  64. }
  65. }
  66. // Even category description
  67. .panel-category .category-description,
  68. .panel-category .subcategory-description {
  69. p:last-child {
  70. margin-bottom: 0px;
  71. }
  72. }
  73. .panel-category .subcategory-description {
  74. margin-top: @line-height-computed / 2;
  75. font-size: @font-size-small;
  76. }
  77. // Subcategories upper margin
  78. .panel-category .category-subcategories {
  79. .subcategories-list {
  80. margin-top: @line-height-computed / 2;
  81. a, a:link, a:visited, a:active, a:hover, a:focus {
  82. padding: @padding-small-vertical @padding-small-horizontal;
  83. font-size: @font-size-small;
  84. }
  85. }
  86. }
  87. // Last activity
  88. .category-last-activity {
  89. overflow: auto;
  90. li {
  91. display: block;
  92. float: left;
  93. }
  94. .thread-message {
  95. overflow: auto;
  96. .material-icon {
  97. display: block;
  98. float: left;
  99. margin-right: 4px;
  100. position: relative;
  101. top: 1px;
  102. font-size: 18px;
  103. line-height: 18px;
  104. }
  105. }
  106. }
  107. // Compact displays
  108. @media screen and (max-width: @screen-sm-max) {
  109. .panel-category {
  110. // Add little extra top margin over category names
  111. .panel-title, h4 {
  112. margin-top: 3px;
  113. }
  114. // Put top margin over stats, make it small
  115. .category-stats {
  116. display: none;
  117. }
  118. // Don't break thread titles into many lines
  119. .category-last-activity {
  120. margin-bottom: 0px;
  121. .thread-title {
  122. float: none;
  123. clear: both;
  124. overflow: hidden;
  125. margin-top: @line-height-computed / 2;
  126. margin-bottom: @line-height-computed / 5;
  127. padding-right: 0px;
  128. white-space: nowrap;
  129. text-overflow: ellipsis;
  130. }
  131. .poster-name, .thread-date {
  132. font-size: @font-size-small;
  133. }
  134. .thread-date {
  135. position: relative;
  136. top: 1px;
  137. }
  138. }
  139. .thread-message {
  140. padding-top: @line-height-computed / 5;
  141. font-size: small;
  142. .material-icon {
  143. position: relative;
  144. top: -1px;
  145. }
  146. }
  147. }
  148. }
  149. // Full displays
  150. @media screen and (min-width: @screen-md-min) {
  151. .panel-category {
  152. // Pull category stats to the right
  153. .category-stats {
  154. float: right;
  155. margin: 0px;
  156. margin-top: @line-height-computed * -1 - 3px;
  157. overflow: auto;
  158. li {
  159. display: block;
  160. float: left;
  161. }
  162. }
  163. .category-last-activity {
  164. margin-top: @line-height-computed / 5;
  165. margin-bottom: 0px;
  166. }
  167. }
  168. }