category.less 2.3 KB

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