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.

278 lines
4.5 KiB

4 years ago
  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: darken($ui-highlight-color, 2%);
  68. color: $primary-text-color;
  69. text-transform: none;
  70. line-height: 1.2;
  71. height: auto;
  72. min-height: 36px;
  73. min-width: 88px;
  74. white-space: normal;
  75. overflow-wrap: break-word;
  76. hyphens: auto;
  77. padding: 0 15px;
  78. border: 0;
  79. svg {
  80. width: 20px;
  81. height: auto;
  82. vertical-align: middle;
  83. margin-right: 5px;
  84. fill: $primary-text-color;
  85. }
  86. &:active,
  87. &:focus,
  88. &:hover {
  89. background: $ui-highlight-color;
  90. }
  91. &:disabled,
  92. &.disabled {
  93. &:active,
  94. &:focus,
  95. &:hover {
  96. background: $ui-primary-color;
  97. }
  98. }
  99. &.button--destructive {
  100. &:active,
  101. &:focus,
  102. &:hover {
  103. background: $error-red;
  104. }
  105. }
  106. @media screen and (max-width: $no-gap-breakpoint) {
  107. svg {
  108. display: none;
  109. }
  110. }
  111. }
  112. a.button.logo-button {
  113. display: inline-flex;
  114. align-items: center;
  115. justify-content: center;
  116. }
  117. .embed {
  118. .status__content[data-spoiler='folded'] {
  119. .e-content {
  120. display: none;
  121. }
  122. p:first-child {
  123. margin-bottom: 0;
  124. }
  125. }
  126. .detailed-status {
  127. padding: 15px;
  128. .detailed-status__display-avatar .account__avatar {
  129. width: 48px;
  130. height: 48px;
  131. }
  132. }
  133. .status {
  134. padding: 15px 15px 15px (48px + 15px * 2);
  135. min-height: 48px + 2px;
  136. &__avatar {
  137. left: 15px;
  138. top: 17px;
  139. .account__avatar {
  140. width: 48px;
  141. height: 48px;
  142. }
  143. }
  144. &__content {
  145. padding-top: 5px;
  146. }
  147. &__prepend {
  148. padding: 8px 0;
  149. padding-bottom: 2px;
  150. margin: initial;
  151. margin-left: 48px + 15px * 2;
  152. padding-top: 15px;
  153. }
  154. &__prepend-icon-wrapper {
  155. position: absolute;
  156. margin: initial;
  157. float: initial;
  158. width: auto;
  159. left: -32px;
  160. }
  161. .media-gallery,
  162. &__action-bar,
  163. .video-player {
  164. margin-top: 10px;
  165. }
  166. &__action-bar-button {
  167. font-size: 18px;
  168. width: 23.1429px;
  169. height: 23.1429px;
  170. line-height: 23.15px;
  171. }
  172. }
  173. }
  174. // Styling from upstream's WebUI, as public pages use the same layout
  175. .embed {
  176. .status {
  177. .status__info {
  178. font-size: 15px;
  179. display: initial;
  180. }
  181. .status__relative-time {
  182. color: $dark-text-color;
  183. float: right;
  184. font-size: 14px;
  185. width: auto;
  186. margin: initial;
  187. padding: initial;
  188. padding-bottom: 1px;
  189. }
  190. .status__visibility-icon {
  191. padding: 0 4px;
  192. }
  193. .status__info .status__display-name {
  194. display: block;
  195. max-width: 100%;
  196. padding: 6px 0;
  197. padding-right: 25px;
  198. margin: initial;
  199. }
  200. .status__avatar {
  201. height: 48px;
  202. position: absolute;
  203. width: 48px;
  204. margin: initial;
  205. }
  206. }
  207. }
  208. .rtl {
  209. .embed {
  210. .status {
  211. padding-left: 10px;
  212. padding-right: 68px;
  213. .status__info .status__display-name {
  214. padding-left: 25px;
  215. padding-right: 0;
  216. }
  217. .status__relative-time,
  218. .status__visibility-icon {
  219. float: left;
  220. }
  221. }
  222. }
  223. }
  224. .status__content__read-more-button {
  225. display: block;
  226. font-size: 15px;
  227. line-height: 20px;
  228. color: $highlight-text-color;
  229. border: 0;
  230. background: transparent;
  231. padding: 0;
  232. padding-top: 16px;
  233. text-decoration: none;
  234. &:hover,
  235. &:active {
  236. text-decoration: underline;
  237. }
  238. }