post.less 3.7 KB

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