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.

372 lines
6.2 KiB

  1. .activity-stream {
  2. clear: both;
  3. box-shadow: 0 0 15px rgba($color8, 0.2);
  4. .entry {
  5. background: $color5;
  6. .detailed-status.light, .status.light {
  7. border-bottom: 1px solid $color2;
  8. }
  9. &:last-child {
  10. &, .detailed-status.light, .status.light {
  11. border-bottom: 0;
  12. border-radius: 0 0 4px 4px;
  13. }
  14. }
  15. &:first-child {
  16. &, .detailed-status.light, .status.light {
  17. border-radius: 4px 4px 0 0;
  18. }
  19. &:last-child {
  20. &, .detailed-status.light, .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: $color4;
  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: $color4;
  75. }
  76. }
  77. .status__content {
  78. color: $color1;
  79. a {
  80. color: $color4;
  81. }
  82. a.status__content__spoiler-link {
  83. color: $color5;
  84. background: $color3;
  85. &:hover {
  86. background: lighten($color3, 8%);
  87. }
  88. }
  89. }
  90. .status__attachments {
  91. margin-top: 8px;
  92. overflow: hidden;
  93. width: 100%;
  94. box-sizing: border-box;
  95. position: relative;
  96. .status__attachments__inner {
  97. display: flex;
  98. height: 214px;
  99. }
  100. }
  101. }
  102. .detailed-status.light {
  103. padding: 14px;
  104. background: $color5;
  105. cursor: default;
  106. .detailed-status__display-name {
  107. display: block;
  108. overflow: hidden;
  109. margin-bottom: 15px;
  110. & > div {
  111. float: left;
  112. margin-right: 10px;
  113. }
  114. .display-name {
  115. display: block;
  116. max-width: 100%;
  117. overflow: hidden;
  118. white-space: nowrap;
  119. text-overflow: ellipsis;
  120. strong {
  121. font-weight: 500;
  122. color: $color1;
  123. }
  124. span {
  125. font-size: 14px;
  126. color: $color3;
  127. }
  128. }
  129. }
  130. .avatar {
  131. width: 48px;
  132. height: 48px;
  133. img {
  134. display: block;
  135. border-radius: 4px;
  136. }
  137. }
  138. .status__content {
  139. color: $color1;
  140. a {
  141. color: $color4;
  142. }
  143. a.status__content__spoiler-link {
  144. color: $color5;
  145. background: $color3;
  146. &:hover {
  147. background: lighten($color3, 8%);
  148. }
  149. }
  150. }
  151. .detailed-status__meta {
  152. margin-top: 15px;
  153. color: $color3;
  154. font-size: 14px;
  155. line-height: 18px;
  156. a {
  157. color: inherit;
  158. }
  159. span > span {
  160. font-weight: 500;
  161. font-size: 12px;
  162. margin-left: 6px;
  163. display: inline-block;
  164. }
  165. }
  166. .detailed-status__attachments {
  167. margin-top: 8px;
  168. overflow: hidden;
  169. width: 100%;
  170. box-sizing: border-box;
  171. position: relative;
  172. .status__attachments__inner {
  173. display: flex;
  174. height: 360px;
  175. }
  176. }
  177. .video-player {
  178. margin-top: 8px;
  179. height: 300px;
  180. overflow: hidden;
  181. position: relative;
  182. video {
  183. position: relative;
  184. z-index: 1;
  185. width: 100%;
  186. height: 100%;
  187. object-fit: cover;
  188. top: 50%;
  189. transform: translateY(-50%);
  190. }
  191. }
  192. }
  193. .media-item, .video-item {
  194. box-sizing: border-box;
  195. position: relative;
  196. left: auto;
  197. top: auto;
  198. right: auto;
  199. bottom: auto;
  200. float: left;
  201. border: medium none;
  202. display: block;
  203. flex: 1 1 auto;
  204. height: 100%;
  205. margin-right: 2px;
  206. &:last-child {
  207. margin-right: 0;
  208. }
  209. a {
  210. display: block;
  211. width: 100%;
  212. height: 100%;
  213. background: no-repeat scroll center center / cover;
  214. text-decoration: none;
  215. cursor: zoom-in;
  216. }
  217. video {
  218. position: relative;
  219. z-index: 1;
  220. width: 100%;
  221. height: 100%;
  222. object-fit: cover;
  223. top: 50%;
  224. transform: translateY(-50%);
  225. }
  226. }
  227. .video-item {
  228. a {
  229. cursor: pointer;
  230. }
  231. .video-item__play {
  232. position: absolute;
  233. top: 50%;
  234. left: 50%;
  235. font-size: 36px;
  236. transform: translate(-50%, -50%);
  237. padding: 5px;
  238. border-radius: 100px;
  239. color: rgba($color5, 0.8);
  240. z-index: 1;
  241. }
  242. }
  243. .media-spoiler {
  244. background: $color3;
  245. width: 100%;
  246. height: 100%;
  247. cursor: pointer;
  248. position: absolute;
  249. top: 0;
  250. left: 0;
  251. display: flex;
  252. align-items: center;
  253. justify-content: center;
  254. flex-direction: column;
  255. text-align: center;
  256. transition: all 100ms linear;
  257. z-index: 2;
  258. &:hover {
  259. background: darken($color3, 5%);
  260. }
  261. span {
  262. display: block;
  263. &:first-child {
  264. font-size: 14px;
  265. }
  266. &:last-child {
  267. font-size: 11px;
  268. font-weight: 500;
  269. }
  270. }
  271. }
  272. .pre-header {
  273. padding: 14px 0px;
  274. padding-left: (48px + 14px*2);
  275. padding-bottom: 0;
  276. margin-bottom: -4px;
  277. color: $color3;
  278. font-size: 14px;
  279. position: relative;
  280. .pre-header__icon {
  281. position: absolute;
  282. left: (48px + 14px*2 - 30px);
  283. }
  284. .status__display-name.muted strong {
  285. color: $color3;
  286. }
  287. }
  288. .open-in-web-link {
  289. text-decoration: none;
  290. &:hover {
  291. text-decoration: underline;
  292. }
  293. }
  294. }
  295. .embed {
  296. .activity-stream {
  297. border-radius: 4px;
  298. box-shadow: none;
  299. .entry {
  300. &:last-child {
  301. border-radius: 0 0 4px 4px;
  302. }
  303. &:first-child {
  304. border-radius: 4px 4px 0 0;
  305. &:last-child {
  306. border-radius: 4px;
  307. }
  308. }
  309. }
  310. }
  311. }