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.

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