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.

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