You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

218 lines
3.5 KiB

  1. .activity-stream {
  2. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  3. border-radius: 4px;
  4. overflow: hidden;
  5. margin-bottom: 10px;
  6. @media screen and (max-width: $no-gap-breakpoint) {
  7. margin-bottom: 0;
  8. border-radius: 0;
  9. box-shadow: none;
  10. }
  11. &--headless {
  12. border-radius: 0;
  13. margin: 0;
  14. box-shadow: none;
  15. .detailed-status,
  16. .status {
  17. border-radius: 0 !important;
  18. }
  19. }
  20. div[data-component] {
  21. width: 100%;
  22. }
  23. .entry {
  24. background: $ui-base-color;
  25. .detailed-status,
  26. .status,
  27. .load-more {
  28. animation: none;
  29. }
  30. &:last-child {
  31. .detailed-status,
  32. .status,
  33. .load-more {
  34. border-bottom: 0;
  35. border-radius: 0 0 4px 4px;
  36. }
  37. }
  38. &:first-child {
  39. .detailed-status,
  40. .status,
  41. .load-more {
  42. border-radius: 4px 4px 0 0;
  43. }
  44. &:last-child {
  45. .detailed-status,
  46. .status,
  47. .load-more {
  48. border-radius: 4px;
  49. }
  50. }
  51. }
  52. @media screen and (max-width: 740px) {
  53. .detailed-status,
  54. .status,
  55. .load-more {
  56. border-radius: 0 !important;
  57. }
  58. }
  59. }
  60. &--highlighted .entry {
  61. background: lighten($ui-base-color, 8%);
  62. }
  63. }
  64. .button.logo-button {
  65. flex: 0 auto;
  66. font-size: 14px;
  67. background: $ui-highlight-color;
  68. color: $primary-text-color;
  69. text-transform: none;
  70. line-height: 36px;
  71. height: auto;
  72. padding: 3px 15px;
  73. border: 0;
  74. svg {
  75. width: 20px;
  76. height: auto;
  77. vertical-align: middle;
  78. margin-right: 5px;
  79. path:first-child {
  80. fill: $primary-text-color;
  81. }
  82. path:last-child {
  83. fill: $ui-highlight-color;
  84. }
  85. }
  86. &:active,
  87. &:focus,
  88. &:hover {
  89. background: lighten($ui-highlight-color, 10%);
  90. svg path:last-child {
  91. fill: lighten($ui-highlight-color, 10%);
  92. }
  93. }
  94. &.button--destructive {
  95. &:active,
  96. &:focus,
  97. &:hover {
  98. background: $error-red;
  99. svg path:last-child {
  100. fill: $error-red;
  101. }
  102. }
  103. }
  104. @media screen and (max-width: $no-gap-breakpoint) {
  105. svg {
  106. display: none;
  107. }
  108. }
  109. }
  110. .embed,
  111. .public-layout {
  112. .detailed-status {
  113. padding: 15px;
  114. }
  115. .status {
  116. padding: 15px 15px 15px (48px + 15px * 2);
  117. min-height: 48px + 2px;
  118. &__avatar {
  119. left: 15px;
  120. top: 17px;
  121. }
  122. &__content {
  123. padding-top: 5px;
  124. }
  125. &__prepend {
  126. padding: 8px 0;
  127. padding-bottom: 2px;
  128. margin: initial;
  129. margin-left: 48px + 15px * 2;
  130. padding-top: 15px;
  131. }
  132. &__prepend-icon-wrapper {
  133. position: absolute;
  134. margin: initial;
  135. float: initial;
  136. width: auto;
  137. left: -32px;
  138. }
  139. .media-gallery,
  140. &__action-bar,
  141. .video-player {
  142. margin-top: 10px;
  143. }
  144. }
  145. }
  146. // Styling from upstream's WebUI, as public pages use the same layout
  147. .embed,
  148. .public-layout {
  149. .status {
  150. .status__info {
  151. font-size: 15px;
  152. display: initial;
  153. }
  154. .status__relative-time {
  155. color: $dark-text-color;
  156. float: right;
  157. font-size: 14px;
  158. width: auto;
  159. margin: initial;
  160. padding: initial;
  161. }
  162. .status__info .status__display-name {
  163. display: block;
  164. max-width: 100%;
  165. padding-right: 25px;
  166. margin: initial;
  167. .display-name strong {
  168. display: inline;
  169. }
  170. }
  171. .status__avatar {
  172. height: 48px;
  173. position: absolute;
  174. width: 48px;
  175. margin: initial;
  176. }
  177. }
  178. }
  179. .rtl {
  180. .embed, .public-layout {
  181. .status .status__relative-time {
  182. float: left;
  183. }
  184. }
  185. }