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.

371 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: $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. 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. video {
  182. position: relative;
  183. z-index: 1;
  184. width: 100%;
  185. height: 100%;
  186. object-fit: cover;
  187. top: 50%;
  188. transform: translateY(-50%);
  189. }
  190. }
  191. }
  192. .media-item, .video-item {
  193. box-sizing: border-box;
  194. position: relative;
  195. left: auto;
  196. top: auto;
  197. right: auto;
  198. bottom: auto;
  199. float: left;
  200. border: medium none;
  201. display: block;
  202. flex: 1 1 auto;
  203. height: 100%;
  204. margin-right: 2px;
  205. &:last-child {
  206. margin-right: 0;
  207. }
  208. a {
  209. display: block;
  210. width: 100%;
  211. height: 100%;
  212. background: no-repeat scroll center center / cover;
  213. text-decoration: none;
  214. cursor: zoom-in;
  215. }
  216. video {
  217. position: relative;
  218. z-index: 1;
  219. width: 100%;
  220. height: 100%;
  221. object-fit: cover;
  222. top: 50%;
  223. transform: translateY(-50%);
  224. }
  225. }
  226. .video-item {
  227. a {
  228. cursor: pointer;
  229. }
  230. .video-item__play {
  231. position: absolute;
  232. top: 50%;
  233. left: 50%;
  234. font-size: 36px;
  235. transform: translate(-50%, -50%);
  236. padding: 5px;
  237. border-radius: 100px;
  238. color: rgba($color5, 0.8);
  239. z-index: 1;
  240. }
  241. }
  242. .media-spoiler {
  243. background: $color3;
  244. width: 100%;
  245. height: 100%;
  246. cursor: pointer;
  247. position: absolute;
  248. top: 0;
  249. left: 0;
  250. display: flex;
  251. align-items: center;
  252. justify-content: center;
  253. flex-direction: column;
  254. text-align: center;
  255. transition: all 100ms linear;
  256. z-index: 2;
  257. &:hover {
  258. background: darken($color3, 5%);
  259. }
  260. span {
  261. display: block;
  262. &:first-child {
  263. font-size: 14px;
  264. }
  265. &:last-child {
  266. font-size: 11px;
  267. font-weight: 500;
  268. }
  269. }
  270. }
  271. .pre-header {
  272. padding: 14px 0px;
  273. padding-left: (48px + 14px*2);
  274. padding-bottom: 0;
  275. margin-bottom: -4px;
  276. color: $color3;
  277. font-size: 14px;
  278. position: relative;
  279. .pre-header__icon {
  280. position: absolute;
  281. left: (48px + 14px*2 - 30px);
  282. }
  283. .status__display-name.muted strong {
  284. color: $color3;
  285. }
  286. }
  287. .open-in-web-link {
  288. text-decoration: none;
  289. &:hover {
  290. text-decoration: underline;
  291. }
  292. }
  293. }
  294. .embed {
  295. .activity-stream {
  296. border-radius: 4px;
  297. box-shadow: none;
  298. .entry {
  299. &:last-child {
  300. border-radius: 0 0 4px 4px;
  301. }
  302. &:first-child {
  303. border-radius: 4px 4px 0 0;
  304. &:last-child {
  305. border-radius: 4px;
  306. }
  307. }
  308. }
  309. }
  310. }