post.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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-best-answer {
  108. background-color: @brand-success;
  109. color: #fff;
  110. }
  111. .post-status-hidden {
  112. background-color: @brand-danger;
  113. color: #fff;
  114. }
  115. .post-status-unapproved {
  116. background-color: @brand-primary;
  117. color: #fff;
  118. }
  119. .post-status-protected {
  120. background-color: @gray;
  121. color: #fff;
  122. }
  123. // Footer
  124. .post-footer {
  125. .pull-left {
  126. margin-right: @padding-large-horizontal;
  127. }
  128. .pull-right {
  129. margin-left: @padding-large-horizontal;
  130. }
  131. p {
  132. padding-top: 7px;
  133. padding-bottom: 6px;
  134. margin-bottom: 0px;
  135. }
  136. }
  137. // Attachments
  138. .post-attachments {
  139. @post-preview-width: 40px;
  140. border-top: 1px solid @gray-lighter;
  141. padding: @padding-base-vertical @padding-large-horizontal;
  142. abbr {
  143. white-space: nowrap;
  144. }
  145. .attachment-name {
  146. word-wrap: break-word;
  147. }
  148. .row>div {
  149. margin: @padding-large-vertical 0px;
  150. }
  151. .post-attachment-preview {
  152. float: left;
  153. height: @post-preview-width;
  154. width: @post-preview-width;
  155. text-align: center;
  156. }
  157. .post-attachment {
  158. margin-left: @post-preview-width + 12px;
  159. }
  160. .post-thumbnail {
  161. display: block;
  162. background-size: cover;
  163. background-position: center;
  164. border-radius: @border-radius-small;
  165. width: @post-preview-width;
  166. height: @post-preview-width;
  167. }
  168. .material-icon {
  169. width: 28px;
  170. height: 28px;
  171. position: relative;
  172. top: 5px;
  173. font-size: 28px;
  174. line-height: 28px;
  175. &:link, &:active, &:visited, &:hover, &:focus {
  176. color: @gray-darker;
  177. text-decoration: none;
  178. }
  179. }
  180. .post-attachment-description {
  181. margin: 0px;
  182. padding: 0px;
  183. color: @text-muted;
  184. font-size: @font-size-small;
  185. }
  186. }