post.less 2.5 KB

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