categories-lists.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. //
  2. // Categories Lists Flavor
  3. // --------------------------------------------------
  4. // Make category read status icon visually larger
  5. .category-main .media-left {
  6. .read-status {
  7. background: @category-read-color;
  8. border-radius: @border-radius-base;
  9. padding: @padding-small-vertical (@padding-large-vertical - 2px);
  10. }
  11. .material-icon {
  12. height: 14px;
  13. width: 14px;
  14. color: @gray;
  15. font-size: 14px;
  16. line-height: 14px;
  17. }
  18. .read-status.item-new {
  19. background-color: @category-new-color;
  20. .material-icon {
  21. color: #fff;
  22. }
  23. }
  24. @media screen and (min-width: @screen-sm-min) {
  25. padding: @padding-small-vertical 0px;
  26. }
  27. }
  28. // Fix category main alignment
  29. .category-main .media-body {
  30. padding-left: @padding-base-horizontal;
  31. @media screen and (max-width: @screen-xs-max) {
  32. padding-left: @padding-small-horizontal / 3;
  33. }
  34. }
  35. .list-group-category-no-description {
  36. .category-main .media-heading {
  37. margin-top: @padding-large-vertical;
  38. @media screen and (max-width: @screen-xs-max) {
  39. margin-top: @padding-large-vertical / 2;
  40. }
  41. }
  42. }
  43. // Make category name larger
  44. .category-main .media-heading {
  45. a, a:link, a:visited {
  46. color: @gray-dark;
  47. }
  48. a:focus, a:hover, a:active {
  49. color: @text-color;
  50. }
  51. }
  52. // Fade out stats
  53. .category-stats {
  54. color: @gray;
  55. }
  56. // Fade out category description
  57. .category-main .category-description p {
  58. font-size: @font-size-small;
  59. &:last-child {
  60. margin-bottom: 0px;
  61. }
  62. }
  63. // Round last poster's up avatar
  64. .category-last-thread img {
  65. background-color: #fff;
  66. border-radius: @border-radius-base;
  67. }
  68. // Last thread
  69. .category-last-thread .media-heading {
  70. margin-bottom: 2px;
  71. @media screen and (max-width: @screen-xs-max) {
  72. margin-top: @line-height-computed / 2;
  73. }
  74. }
  75. .category-last-thread .list-inline {
  76. color: @gray-light;
  77. font-size: @font-size-small;
  78. a, a:link, a:visited {
  79. color: @gray-light;
  80. }
  81. a:hover, a:active, a:focus {
  82. color: @gray-dark;
  83. }
  84. .item-title {
  85. &, &:link, &:visited {
  86. color: @gray-dark;
  87. }
  88. &:hover, &:active, &:focus {
  89. color: @text-color;
  90. }
  91. }
  92. }
  93. // Last thread message
  94. .category-thread-message {
  95. color: @gray-light;
  96. .material-icon {
  97. padding: @padding-base-vertical 0px;
  98. margin-right: @padding-base-vertical / 2;
  99. }
  100. @media screen and (max-width: @screen-xs-max) {
  101. padding-top: @line-height-computed * 0.75;
  102. font-size: @font-size-small;
  103. .material-icon {
  104. padding: 3px 0px;
  105. }
  106. }
  107. }