post.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. //
  2. // Posts List Post
  3. // --------------------------------------------------
  4. // Post unread border
  5. .post-new .panel-default {
  6. border-color: @brand-warning;
  7. }
  8. // Post header
  9. .post-heading {
  10. overflow: visible;
  11. height: 42px;
  12. &>* {
  13. float: left;
  14. margin-left: 0px;
  15. margin-right: 8px;
  16. &.pull-right {
  17. float: right;
  18. margin-left: 8px;
  19. margin-right: 0px;
  20. }
  21. }
  22. }
  23. .post-heading .label {
  24. position: relative;
  25. top: 3px;
  26. }
  27. .post-heading .btn-sm {
  28. margin-top: -3px;
  29. margin-bottom: 0px;
  30. padding: 4px @padding-small-horizontal;
  31. }
  32. .post-heading .btn-icon {
  33. margin: -6px 0px;
  34. margin-left: 8px;
  35. padding: 0px 3px;
  36. .material-icon {
  37. position: static;
  38. width: 28px;
  39. height: 28px;
  40. font-size: 28px;
  41. line-height: 28px;
  42. }
  43. }
  44. // Post status flags
  45. .post-status-message {
  46. padding: @padding-base-vertical @padding-base-horizontal;
  47. overflow: auto;
  48. .material-icon {
  49. float: left;
  50. font-size: 28px;
  51. }
  52. p {
  53. margin: 0px;
  54. margin-top: (28px - @line-height-computed) / 2;
  55. margin-left: 36px;
  56. }
  57. }
  58. .post-status-hidden {
  59. background-color: @brand-danger;
  60. color: #fff;
  61. }
  62. .post-status-unapproved {
  63. background-color: @brand-primary;
  64. color: #fff;
  65. }
  66. // Hidden post message
  67. .posts-list .panel-body-hidden {
  68. .lead, .text-muted {
  69. margin: 0px;
  70. }
  71. }
  72. // Invalid post message
  73. .posts-list .panel-body-invalid {
  74. .lead, .text-muted {
  75. margin: 0px;
  76. }
  77. }
  78. // Post attachments
  79. .post-attachments {
  80. @post-preview-width: 40px;
  81. td {
  82. position: @padding-base-vertical @padding-base-horizontal;
  83. }
  84. .post-attachment-preview {
  85. float: left;
  86. height: @post-preview-width;
  87. width: @post-preview-width;
  88. text-align: center;
  89. }
  90. .post-attachment {
  91. margin-left: @post-preview-width + 12px;
  92. }
  93. .post-thumbnail {
  94. display: block;
  95. background-size: cover;
  96. background-position: center;
  97. border-radius: @border-radius-small;
  98. width: @post-preview-width;
  99. height: @post-preview-width;
  100. }
  101. .material-icon {
  102. width: 28px;
  103. height: 28px;
  104. position: relative;
  105. top: 5px;
  106. font-size: 28px;
  107. line-height: 28px;
  108. &:link, &:active, &:visited, &:hover, &:focus {
  109. color: @gray-darker;
  110. text-decoration: none;
  111. }
  112. }
  113. .post-attachment-description {
  114. margin: 0px;
  115. padding: 0px;
  116. color: @text-muted;
  117. font-size: @font-size-small;
  118. }
  119. }
  120. // Post footer
  121. .post-footer {
  122. overflow: auto;
  123. .btn.pull-right {
  124. margin-left: @line-height-computed / 2;
  125. }
  126. p.pull-left {
  127. margin: 0px;
  128. margin-left: @line-height-computed / 2;
  129. padding: (@padding-base-vertical + 1px) 0px;
  130. }
  131. }
  132. // UI Preview
  133. .posts-list.ui-preview {
  134. .post-heading .ui-preview-text {
  135. position: relative;
  136. top: 0px;
  137. }
  138. }