post.less 2.6 KB

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