post.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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, .user-title {
  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. }
  73. // Move controls up
  74. @media screen and (min-width: @screen-md-min) {
  75. .post-side .pull-right {
  76. display: none;
  77. }
  78. }
  79. @media screen and (max-width: @screen-sm-max) {
  80. .post-heading .pull-right {
  81. display: none;
  82. }
  83. }
  84. // Body
  85. .post-body {
  86. padding-top: @line-height-computed;
  87. padding-bottom: @line-height-computed * 1.5;
  88. }
  89. // Status
  90. .post-status-message {
  91. overflow: auto;
  92. .material-icon {
  93. float: left;
  94. font-size: 28px;
  95. line-height: 28px;
  96. }
  97. p {
  98. margin: 0px;
  99. margin-top: (28px - @line-height-computed) / 2;
  100. margin-left: 36px;
  101. }
  102. }
  103. .post-status-hidden {
  104. background-color: @brand-danger;
  105. color: #fff;
  106. }
  107. .post-status-unapproved {
  108. background-color: @brand-primary;
  109. color: #fff;
  110. }
  111. .post-status-protected {
  112. background-color: @gray;
  113. color: #fff;
  114. }
  115. // Footer
  116. .post-footer {
  117. .pull-left {
  118. margin-right: @padding-large-horizontal;
  119. }
  120. .pull-right {
  121. margin-left: @padding-large-horizontal;
  122. }
  123. p {
  124. padding-top: 7px;
  125. padding-bottom: 6px;
  126. margin-bottom: 0px;
  127. }
  128. }
  129. // Attachments
  130. .post-attachments {
  131. @post-preview-width: 40px;
  132. border-top: 1px solid @gray-lighter;
  133. padding: @padding-base-vertical @padding-large-horizontal;
  134. abbr {
  135. white-space: nowrap;
  136. }
  137. .attachment-name {
  138. word-wrap: break-word;
  139. }
  140. .row>div {
  141. margin: @padding-large-vertical 0px;
  142. }
  143. .post-attachment-preview {
  144. float: left;
  145. height: @post-preview-width;
  146. width: @post-preview-width;
  147. text-align: center;
  148. }
  149. .post-attachment {
  150. margin-left: @post-preview-width + 12px;
  151. }
  152. .post-thumbnail {
  153. display: block;
  154. background-size: cover;
  155. background-position: center;
  156. border-radius: @border-radius-small;
  157. width: @post-preview-width;
  158. height: @post-preview-width;
  159. }
  160. .material-icon {
  161. width: 28px;
  162. height: 28px;
  163. position: relative;
  164. top: 5px;
  165. font-size: 28px;
  166. line-height: 28px;
  167. &:link, &:active, &:visited, &:hover, &:focus {
  168. color: @gray-darker;
  169. text-decoration: none;
  170. }
  171. }
  172. .post-attachment-description {
  173. margin: 0px;
  174. padding: 0px;
  175. color: @text-muted;
  176. font-size: @font-size-small;
  177. }
  178. }