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.

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