post.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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-container {
  10. overflow: visible;
  11. height: 22px;
  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. .post-status-protected {
  67. background-color: @gray;
  68. color: #fff;
  69. }
  70. // Hidden post message
  71. .posts-list .panel-body-hidden {
  72. .lead, .text-muted {
  73. margin: 0px;
  74. }
  75. }
  76. // Invalid post message
  77. .posts-list .panel-body-invalid {
  78. .lead, .text-muted {
  79. margin: 0px;
  80. }
  81. }
  82. // Post attachments
  83. .post-attachments {
  84. @post-preview-width: 40px;
  85. td {
  86. position: @padding-base-vertical @padding-base-horizontal;
  87. }
  88. .post-attachment-preview {
  89. float: left;
  90. height: @post-preview-width;
  91. width: @post-preview-width;
  92. text-align: center;
  93. }
  94. .post-attachment {
  95. margin-left: @post-preview-width + 12px;
  96. }
  97. .post-thumbnail {
  98. display: block;
  99. background-size: cover;
  100. background-position: center;
  101. border-radius: @border-radius-small;
  102. width: @post-preview-width;
  103. height: @post-preview-width;
  104. }
  105. .material-icon {
  106. width: 28px;
  107. height: 28px;
  108. position: relative;
  109. top: 5px;
  110. font-size: 28px;
  111. line-height: 28px;
  112. &:link, &:active, &:visited, &:hover, &:focus {
  113. color: @gray-darker;
  114. text-decoration: none;
  115. }
  116. }
  117. .post-attachment-description {
  118. margin: 0px;
  119. padding: 0px;
  120. color: @text-muted;
  121. font-size: @font-size-small;
  122. }
  123. }
  124. // Post footer
  125. .post-footer {
  126. overflow: auto;
  127. .btn.pull-right {
  128. margin-left: @line-height-computed / 2;
  129. }
  130. p.pull-left {
  131. margin: 0px;
  132. margin-left: @line-height-computed / 2;
  133. padding: (@padding-base-vertical + 1px) 0px;
  134. }
  135. }
  136. // UI Preview
  137. .posts-list.ui-preview {
  138. .post-heading .ui-preview-text {
  139. position: relative;
  140. top: 0px;
  141. }
  142. }
  143. // Mobile tweaks
  144. @media screen and (max-width: @screen-xs-max) {
  145. .post-heading .post-heading-container {
  146. margin-left: 46px;
  147. height: 34px;
  148. position: relative;
  149. bottom: 2px;
  150. .pull-right {
  151. margin-top: -31px;
  152. }
  153. }
  154. .post-heading .user-status {
  155. margin-right: 3px;
  156. }
  157. .post-heading {
  158. .posted-on-compact, .edited-compact, .unread-compact {
  159. margin-top: -14px;
  160. font-size: @font-size-small;
  161. }
  162. }
  163. .post-heading .unread-compact {
  164. color: @brand-warning;
  165. }
  166. .post-heading .posted-on-compact {
  167. clear: left;
  168. }
  169. .post-heading .btn-icon {
  170. margin-top: 0px;
  171. margin-bottom: 0px;
  172. padding: 1px 4px;
  173. }
  174. .post-heading .post-avatar-sm {
  175. float: left;
  176. img {
  177. width: 35px;
  178. height: 35px;
  179. }
  180. }
  181. .post-footer {
  182. .btn, p {
  183. font-size: @font-size-small;
  184. }
  185. p .material-icon {
  186. margin-right: 3px;
  187. position: relative;
  188. bottom: 1px;
  189. }
  190. }
  191. }