posts.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. //
  2. // Thread Posts
  3. // --------------------------------------------------
  4. // Posts list
  5. //
  6. //==
  7. .posts-list {
  8. .post-fragment {
  9. float: left;
  10. position: relative;
  11. bottom: @line-height-computed * 1.9;
  12. }
  13. .post {
  14. .user-avatar {
  15. img {
  16. border-radius: @border-radius-base;
  17. }
  18. }
  19. .media-body {
  20. padding-left: @line-height-computed / 2;
  21. .panel-default {
  22. position: relative;
  23. &:after, &:before {
  24. right: 100%;
  25. border: solid transparent;
  26. content: "";
  27. height: 0; width: 0;
  28. position: absolute;
  29. pointer-events: none;
  30. }
  31. &:after {
  32. border-color: transparent;
  33. border-right-color: @post-panel-bg;
  34. border-width: @font-size-small - 2;
  35. top: @line-height-computed / 2;
  36. margin-top: (@font-size-small * -1) + @font-size-small;
  37. }
  38. &:before {
  39. border-color: transparent;
  40. border-right-color: @post-panel-border;
  41. border-width: @font-size-small;
  42. top: @line-height-computed / 2 - 1;
  43. margin-top: (@font-size-small * -1) + @font-size-small - 1px;
  44. }
  45. }
  46. }
  47. &.focus {
  48. .media-body {
  49. .panel-default {
  50. background: @post-active-panel-bg;
  51. border-color: @post-active-panel-border;
  52. &:after {
  53. border-right-color: @post-active-panel-bg;
  54. }
  55. &:before {
  56. border-right-color: @post-active-panel-border;
  57. }
  58. }
  59. }
  60. }
  61. }
  62. }
  63. // Post panel
  64. //
  65. //==
  66. .posts-list {
  67. .panel {
  68. background: @post-panel-bg;
  69. border-color: @post-panel-border;
  70. }
  71. }
  72. // Post header
  73. //
  74. //==
  75. .posts-list {
  76. .panel {
  77. .panel-heading {
  78. background: none;
  79. border-bottom: none;
  80. margin-bottom: @line-height-computed * -0.5;
  81. color: @text-muted;
  82. .user-name {
  83. color: @state-default;
  84. font-weight: bold;
  85. }
  86. a.user-name {
  87. &:link, &:visited {
  88. color: @state-hover;
  89. }
  90. &:hover {
  91. color: @state-hover;
  92. text-decoration: text-underline;
  93. }
  94. &:active, &:focus {
  95. color: @state-clicked;
  96. text-decoration: text-underline;
  97. }
  98. }
  99. .separator {
  100. margin-left: @font-size-base / 3;
  101. margin-right: @font-size-base / 3;
  102. }
  103. .post-date {
  104. &:link, &:visited {
  105. color: @state-default;
  106. }
  107. &:hover, &:focus {
  108. color: @state-hover;
  109. text-decoration: underline;
  110. }
  111. &:active {
  112. color: @state-clicked;
  113. text-decoration: underline;
  114. }
  115. }
  116. .label {
  117. position: relative;
  118. bottom: 2px;
  119. }
  120. .post-check {
  121. float: right;
  122. margin: 0px;
  123. margin-left: @line-height-computed / 2;
  124. color: @text-muted;
  125. font-size: 20px;
  126. text-decoration: none;
  127. line-height: 19px;
  128. cursor: pointer;
  129. &.active {
  130. color: @brand-success;
  131. }
  132. input {
  133. position: absolute;
  134. top: -9999px;
  135. left: -9999px;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. // Post alert
  142. //
  143. //==
  144. .posts-list {
  145. .panel {
  146. .alert {
  147. border: none;
  148. border-radius: 0px;
  149. margin-top: @line-height-computed / 2;
  150. margin-bottom: 0;
  151. font-size: @font-size-base + 2px;
  152. text-align: center;
  153. &.alert-default {
  154. background-color: @alert-default-bg;
  155. color: @alert-default-text;
  156. }
  157. .user-avatar {
  158. &, &:link, &:active, &:hover {
  159. text-decoration: none;
  160. }
  161. img {
  162. height: 20px;
  163. position: relative;
  164. bottom: 2px;
  165. }
  166. }
  167. }
  168. }
  169. }
  170. // Post body
  171. //
  172. //==
  173. .posts-list {
  174. .panel {
  175. .panel-body {
  176. .corrupted-message {
  177. margin: 0px;
  178. }
  179. .hidden-message {
  180. margin: (@line-height-computed * .25) 0px;
  181. img {
  182. height: 32px;
  183. position: relative;
  184. bottom: 2px;
  185. }
  186. a, strong {
  187. font-weight: normal;
  188. }
  189. }
  190. }
  191. }
  192. }
  193. // Post footer
  194. //
  195. //==
  196. .posts-list {
  197. .panel {
  198. .panel-footer {
  199. background: none;
  200. border-top: none;
  201. margin-top: @line-height-computed * -1.25;
  202. }
  203. }
  204. }