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.

376 lines
6.5 KiB

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