post.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. //
  2. // Posts List Post
  3. // --------------------------------------------------
  4. // Post side
  5. .post-side {
  6. font-size: @font-size-small;
  7. .media {
  8. margin: 0px;
  9. }
  10. .poster-avatar {
  11. height: 36px;
  12. width: 36px;
  13. @media screen and (min-width: @screen-md-min) {
  14. margin-top: 4px;
  15. height: 82px;
  16. width: 82px;
  17. }
  18. }
  19. .media-heading {
  20. display: block;
  21. }
  22. .media-heading {
  23. margin: 0px;
  24. margin-top: -1px;
  25. font-size: @font-size-base;
  26. .user-status {
  27. margin-left: 2px;
  28. }
  29. }
  30. .pull-right {
  31. margin-left: @padding-large-horizontal;
  32. }
  33. // Lay user details vertically
  34. @media screen and (min-width: @screen-md-min) {
  35. .media-heading {
  36. margin-top: 3px;
  37. font-size: @font-size-large;
  38. .user-status {
  39. display: none;
  40. }
  41. }
  42. .user-title {
  43. margin-top: 4px;
  44. margin-bottom: 5px;
  45. }
  46. .user-postcount {
  47. display: block;
  48. }
  49. .user-status {
  50. display: block;
  51. }
  52. }
  53. }
  54. // Heading
  55. .post-heading {
  56. height: 36px;
  57. @media screen and (max-width: @screen-sm-max) {
  58. margin-top: @line-height-computed / 2;
  59. }
  60. .pull-right {
  61. margin-left: @padding-large-horizontal;
  62. }
  63. &>.btn-link {
  64. padding-left: 0px;
  65. padding-right: 0px;
  66. }
  67. .label {
  68. margin-top: 6px;
  69. font-size: @font-size-base;
  70. font-weight: normal;
  71. }
  72. .label-unread {
  73. background-color: @brand-success;
  74. color: #fff;
  75. }
  76. }
  77. // Move controls up
  78. @media screen and (min-width: @screen-md-min) {
  79. .post-side .pull-right {
  80. display: none;
  81. }
  82. }
  83. @media screen and (max-width: @screen-sm-max) {
  84. .post-heading .pull-right {
  85. display: none;
  86. }
  87. }
  88. // Body
  89. .post-body {
  90. padding-top: @line-height-computed;
  91. padding-bottom: @line-height-computed * 1.5;
  92. }
  93. // Status
  94. .post-status-message {
  95. overflow: auto;
  96. .material-icon {
  97. float: left;
  98. font-size: 28px;
  99. line-height: 28px;
  100. }
  101. p {
  102. margin: 0px;
  103. margin-top: (28px - @line-height-computed) / 2;
  104. margin-left: 36px;
  105. }
  106. }
  107. .post-status-hidden {
  108. background-color: @brand-danger;
  109. color: #fff;
  110. }
  111. .post-status-unapproved {
  112. background-color: @brand-primary;
  113. color: #fff;
  114. }
  115. .post-status-protected {
  116. background-color: @gray;
  117. color: #fff;
  118. }
  119. // Footer
  120. .post-footer {
  121. .pull-left {
  122. margin-right: @padding-large-horizontal;
  123. }
  124. .pull-right {
  125. margin-left: @padding-large-horizontal;
  126. }
  127. p {
  128. padding-top: 7px;
  129. padding-bottom: 6px;
  130. margin-bottom: 0px;
  131. }
  132. }
  133. // Attachments
  134. .post-attachments {
  135. @post-preview-width: 40px;
  136. border-top: 1px solid @gray-lighter;
  137. padding: @padding-base-vertical @padding-large-horizontal;
  138. abbr {
  139. white-space: nowrap;
  140. }
  141. .attachment-name {
  142. word-wrap: break-word;
  143. }
  144. .row>div {
  145. margin: @padding-large-vertical 0px;
  146. }
  147. .post-attachment-preview {
  148. float: left;
  149. height: @post-preview-width;
  150. width: @post-preview-width;
  151. text-align: center;
  152. }
  153. .post-attachment {
  154. margin-left: @post-preview-width + 12px;
  155. }
  156. .post-thumbnail {
  157. display: block;
  158. background-size: cover;
  159. background-position: center;
  160. border-radius: @border-radius-small;
  161. width: @post-preview-width;
  162. height: @post-preview-width;
  163. }
  164. .material-icon {
  165. width: 28px;
  166. height: 28px;
  167. position: relative;
  168. top: 5px;
  169. font-size: 28px;
  170. line-height: 28px;
  171. &:link, &:active, &:visited, &:hover, &:focus {
  172. color: @gray-darker;
  173. text-decoration: none;
  174. }
  175. }
  176. .post-attachment-description {
  177. margin: 0px;
  178. padding: 0px;
  179. color: @text-muted;
  180. font-size: @font-size-small;
  181. }
  182. }