post.less 2.7 KB

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