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.

326 lines
5.4 KiB

  1. .activity-stream {
  2. clear: both;
  3. box-shadow: 0 0 15px rgba($color8, 0.2);
  4. .entry {
  5. background: lighten($color2, 8%);
  6. &, .detailed-status.light {
  7. border-bottom: 1px solid $color2;
  8. }
  9. &:last-child {
  10. &, .detailed-status.light {
  11. border-bottom: 0;
  12. border-radius: 0 0 4px 4px;
  13. }
  14. }
  15. &:first-child {
  16. &, .detailed-status.light {
  17. border-radius: 4px 4px 0 0;
  18. }
  19. &:last-child {
  20. &, .detailed-status.light {
  21. border-radius: 4px;
  22. }
  23. }
  24. }
  25. }
  26. .status.light {
  27. padding: 14px 14px 14px (48px + 14px*2);
  28. position: relative;
  29. min-height: 48px;
  30. cursor: default;
  31. .status__header {
  32. font-size: 15px;
  33. .status__meta {
  34. float: right;
  35. font-size: 14px;
  36. .status__relative-time {
  37. color: $color3;
  38. }
  39. }
  40. }
  41. .status__display-name {
  42. display: block;
  43. max-width: 100%;
  44. padding-right: 25px;
  45. color: $color1;
  46. }
  47. .status__avatar {
  48. position: absolute;
  49. left: 14px;
  50. top: 14px;
  51. width: 48px;
  52. height: 48px;
  53. & > div {
  54. width: 48px;
  55. height: 48px;
  56. }
  57. img {
  58. display: block;
  59. border-radius: 4px;
  60. }
  61. }
  62. .display-name {
  63. display: block;
  64. max-width: 100%;
  65. overflow: hidden;
  66. white-space: nowrap;
  67. text-overflow: ellipsis;
  68. strong {
  69. font-weight: 500;
  70. color: $color1;
  71. }
  72. span {
  73. font-size: 14px;
  74. color: $color3;
  75. }
  76. }
  77. .status__content {
  78. color: $color1;
  79. a {
  80. color: $color4;
  81. }
  82. }
  83. .status__attachments {
  84. margin-top: 8px;
  85. overflow: hidden;
  86. width: 100%;
  87. box-sizing: border-box;
  88. height: 110px;
  89. display: flex;
  90. }
  91. }
  92. .detailed-status.light {
  93. padding: 14px;
  94. background: $color5;
  95. cursor: default;
  96. .detailed-status__display-name {
  97. display: block;
  98. overflow: hidden;
  99. margin-bottom: 15px;
  100. & > div {
  101. float: left;
  102. margin-right: 10px;
  103. }
  104. .display-name {
  105. display: block;
  106. max-width: 100%;
  107. overflow: hidden;
  108. white-space: nowrap;
  109. text-overflow: ellipsis;
  110. strong {
  111. font-weight: 500;
  112. color: $color1;
  113. }
  114. span {
  115. font-size: 14px;
  116. color: $color3;
  117. }
  118. }
  119. }
  120. .avatar {
  121. width: 48px;
  122. height: 48px;
  123. img {
  124. display: block;
  125. border-radius: 4px;
  126. }
  127. }
  128. .status__content {
  129. color: $color1;
  130. a {
  131. color: $color4;
  132. }
  133. }
  134. .detailed-status__meta {
  135. margin-top: 15px;
  136. color: $color3;
  137. font-size: 14px;
  138. line-height: 18px;
  139. a {
  140. color: inherit;
  141. }
  142. span > span {
  143. font-weight: 500;
  144. font-size: 12px;
  145. margin-left: 6px;
  146. display: inline-block;
  147. }
  148. }
  149. .detailed-status__attachments {
  150. margin-top: 8px;
  151. overflow: hidden;
  152. width: 100%;
  153. box-sizing: border-box;
  154. height: 300px;
  155. display: flex;
  156. }
  157. .video-player {
  158. margin-top: 8px;
  159. height: 300px;
  160. overflow: hidden;
  161. video {
  162. position: relative;
  163. z-index: 1;
  164. width: 100%;
  165. height: 100%;
  166. object-fit: cover;
  167. top: 50%;
  168. transform: translateY(-50%);
  169. }
  170. }
  171. }
  172. .media-item, .video-item {
  173. box-sizing: border-box;
  174. position: relative;
  175. left: auto;
  176. top: auto;
  177. right: auto;
  178. bottom: auto;
  179. float: left;
  180. border: medium none;
  181. display: block;
  182. flex: 1 1 auto;
  183. height: 100%;
  184. margin-right: 2px;
  185. &:last-child {
  186. margin-right: 0;
  187. }
  188. a {
  189. display: block;
  190. width: 100%;
  191. height: 100%;
  192. background: no-repeat scroll center center / cover;
  193. text-decoration: none;
  194. cursor: zoom-in;
  195. }
  196. }
  197. .video-item {
  198. max-width: 196px;
  199. a {
  200. cursor: pointer;
  201. }
  202. .video-item__play {
  203. position: absolute;
  204. top: 50%;
  205. left: 50%;
  206. font-size: 36px;
  207. transform: translate(-50%, -50%);
  208. padding: 5px;
  209. border-radius: 100px;
  210. color: rgba($color5, 0.8);
  211. z-index: 1;
  212. }
  213. }
  214. .media-spoiler {
  215. background: $color3;
  216. width: 100%;
  217. height: 100%;
  218. cursor: pointer;
  219. display: flex;
  220. align-items: center;
  221. justify-content: center;
  222. flex-direction: column;
  223. text-align: center;
  224. transition: all 100ms linear;
  225. z-index: 2;
  226. &:hover {
  227. background: darken($color3, 5%);
  228. }
  229. span {
  230. display: block;
  231. &:first-child {
  232. font-size: 14px;
  233. }
  234. &:last-child {
  235. font-size: 11px;
  236. font-weight: 500;
  237. }
  238. }
  239. }
  240. .pre-header {
  241. padding: 14px 0px;
  242. padding-left: (48px + 14px*2);
  243. padding-bottom: 0;
  244. margin-bottom: -4px;
  245. color: $color3;
  246. font-size: 14px;
  247. position: relative;
  248. .pre-header__icon {
  249. position: absolute;
  250. left: (48px + 14px*2 - 30px);
  251. }
  252. .status__display-name.muted strong {
  253. color: $color3;
  254. }
  255. }
  256. }
  257. .embed {
  258. .activity-stream {
  259. border-radius: 4px;
  260. box-shadow: none;
  261. .entry {
  262. &:last-child {
  263. border-radius: 0 0 4px 4px;
  264. }
  265. &:first-child {
  266. border-radius: 4px 4px 0 0;
  267. &:last-child {
  268. border-radius: 4px;
  269. }
  270. }
  271. }
  272. }
  273. }