categories-lists.less 3.1 KB

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