post.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. //
  2. // Posts Flavor
  3. // --------------------------------------------------
  4. // Post body
  5. .panel-post {
  6. background: @post-bg;
  7. border: 1px solid @post-border;
  8. .shadow-2dp();
  9. }
  10. // Post side
  11. .post-side {
  12. color: @gray-light;
  13. .poster-avatar {
  14. border-radius: @border-radius-base;
  15. }
  16. .user-title {
  17. color: @gray;
  18. a, a:link, a:visited,
  19. a:focus, a:hover, a:active {
  20. color: @gray;
  21. }
  22. }
  23. }
  24. // Header
  25. .post-heading {
  26. .label-unread {
  27. background-color: @post-unread-label;
  28. margin-right: @padding-large-horizontal;
  29. }
  30. .label-protected {
  31. background-color: transparent;
  32. margin-left: @padding-base-horizontal * 2;
  33. position: relative;
  34. top: 1px;
  35. color: @post-protected-icon;
  36. .material-icon {
  37. margin-right: 2px;
  38. position: relative;
  39. top: -1px;
  40. font-size: 16px;
  41. line-height: 16px;
  42. }
  43. }
  44. &>.btn-link {
  45. padding-left: 0px;
  46. padding-right: 0px;
  47. &, &:link, &:visited {
  48. color: @gray-light;
  49. }
  50. &:hover, &:focus, &:focus:active, &:active {
  51. color: @text-color;
  52. text-decoration: none;
  53. }
  54. }
  55. .btn-see-edits {
  56. margin-left: @padding-base-horizontal * 2;
  57. }
  58. }
  59. // Status
  60. .post-status-message {
  61. border-radius: @border-radius-base;
  62. margin-top: @line-height-computed / 2;
  63. padding: @padding-base-vertical @padding-base-horizontal;
  64. @media screen and (max-width: @screen-xs-max) {
  65. font-size: @font-size-small;
  66. .material-icon {
  67. margin-top: 3px;
  68. }
  69. p {
  70. margin-top: 0px;
  71. }
  72. }
  73. }
  74. // Post body
  75. .post-body:last-child {
  76. padding-bottom: @line-height-computed / 2;
  77. }
  78. // Attachments
  79. .post-attachments {
  80. background-color: darken(@panel-bg, 5%);
  81. border: none;
  82. border-radius: @border-radius-base;
  83. margin-bottom: @line-height-computed * 1.5;
  84. &:last-child {
  85. margin-bottom: @line-height-computed / 2;
  86. }
  87. @media screen and (max-width: @screen-xs-max) {
  88. border-radius: 0px;
  89. margin: 0px -15px;
  90. margin-bottom: @line-height-computed;
  91. }
  92. }
  93. // Footer
  94. .post-footer {
  95. &>.btn-link {
  96. padding-left: 0px;
  97. padding-right: 0px;
  98. &, &:link, &:visited {
  99. color: @gray-light;
  100. }
  101. &:hover, &:focus, &:focus:active, &:active {
  102. color: @text-color;
  103. text-decoration: none;
  104. }
  105. }
  106. p {
  107. color: @gray-light;
  108. font-size: @font-size-small;
  109. }
  110. }
  111. // Hidden and invalid messages
  112. .post-body-hidden, .post-body-invalid {
  113. padding-top: @line-height-computed / 2;
  114. padding-bottom: @line-height-computed / 2;
  115. .lead {
  116. margin-bottom: @line-height-computed / 2;
  117. }
  118. .text-muted {
  119. margin-bottom: 0px;
  120. font-size: @font-size-small;
  121. }
  122. }
  123. // Fade out hidden posts a little
  124. .post-hidden {
  125. .opacity(0.75);
  126. }