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.

4360 lines
72 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
Web Push Notifications (#3243) * feat: Register push subscription * feat: Notify when mentioned * feat: Boost, favourite, reply, follow, follow request * feat: Notification interaction * feat: Handle change of public key * feat: Unsubscribe if things go wrong * feat: Do not send normal notifications if push is enabled * feat: Focus client if open * refactor: Move push logic to WebPushSubscription * feat: Better title and body * feat: Localize messages * chore: Fix lint errors * feat: Settings * refactor: Lazy load * fix: Check if push settings exist * feat: Device-based preferences * refactor: Simplify logic * refactor: Pull request feedback * refactor: Pull request feedback * refactor: Create /api/web/push_subscriptions endpoint * feat: Spec PushSubscriptionController * refactor: WebPushSubscription => Web::PushSubscription * feat: Spec Web::PushSubscription * feat: Display first media attachment * feat: Support direction * fix: Stuff broken while rebasing * refactor: Integration with session activations * refactor: Cleanup * refactor: Simplify implementation * feat: Set VAPID keys via environment * chore: Comments * fix: Crash when no alerts * fix: Set VAPID keys in testing environment * fix: Follow link * feat: Notification actions * fix: Delete previous subscription * chore: Temporary logs * refactor: Move migration to a later date * fix: Fetch the correct session activation and misc bugs * refactor: Move migration to a later date * fix: Remove follow request (no notifications) * feat: Send administrator contact to push service * feat: Set time-to-live * fix: Do not show sensitive images * fix: Reducer crash in error handling * feat: Add badge * chore: Fix lint error * fix: Checkbox label overlap * fix: Check for payload support * fix: Rename action "type" (crash in latest Chrome) * feat: Action to expand notification * fix: Lint errors * fix: Unescape notification body * fix: Do not allow boosting if the status is hidden * feat: Add VAPID keys to the production sample environment * fix: Strip HTML tags from status * refactor: Better error messages * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet) * fix: Error when target_status is nil * fix: Handle lack of image * fix: Delete reference to invalid subscriptions * feat: Better error handling * fix: Unescape HTML characters after tags are striped * refactor: Simpify code * fix: Modify to work with #4091 * Sort strings alphabetically * i18n: Updated Polish translation it annoys me that it's not fully localized :P * refactor: Use current_session in PushSubscriptionController * fix: Rebase mistake * fix: Set cacheName to mastodon * refactor: Pull request feedback * refactor: Remove logging statements * chore(yarn): Fix conflicts with master * chore(yarn): Copy latest from master * chore(yarn): Readd offline-plugin * refactor: Use save! and update! * refactor: Send notifications async * fix: Allow retry when push fails * fix: Save track for failed pushes * fix: Minify sw.js * fix: Remove account_id from fabricator
6 years ago
Web Push Notifications (#3243) * feat: Register push subscription * feat: Notify when mentioned * feat: Boost, favourite, reply, follow, follow request * feat: Notification interaction * feat: Handle change of public key * feat: Unsubscribe if things go wrong * feat: Do not send normal notifications if push is enabled * feat: Focus client if open * refactor: Move push logic to WebPushSubscription * feat: Better title and body * feat: Localize messages * chore: Fix lint errors * feat: Settings * refactor: Lazy load * fix: Check if push settings exist * feat: Device-based preferences * refactor: Simplify logic * refactor: Pull request feedback * refactor: Pull request feedback * refactor: Create /api/web/push_subscriptions endpoint * feat: Spec PushSubscriptionController * refactor: WebPushSubscription => Web::PushSubscription * feat: Spec Web::PushSubscription * feat: Display first media attachment * feat: Support direction * fix: Stuff broken while rebasing * refactor: Integration with session activations * refactor: Cleanup * refactor: Simplify implementation * feat: Set VAPID keys via environment * chore: Comments * fix: Crash when no alerts * fix: Set VAPID keys in testing environment * fix: Follow link * feat: Notification actions * fix: Delete previous subscription * chore: Temporary logs * refactor: Move migration to a later date * fix: Fetch the correct session activation and misc bugs * refactor: Move migration to a later date * fix: Remove follow request (no notifications) * feat: Send administrator contact to push service * feat: Set time-to-live * fix: Do not show sensitive images * fix: Reducer crash in error handling * feat: Add badge * chore: Fix lint error * fix: Checkbox label overlap * fix: Check for payload support * fix: Rename action "type" (crash in latest Chrome) * feat: Action to expand notification * fix: Lint errors * fix: Unescape notification body * fix: Do not allow boosting if the status is hidden * feat: Add VAPID keys to the production sample environment * fix: Strip HTML tags from status * refactor: Better error messages * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet) * fix: Error when target_status is nil * fix: Handle lack of image * fix: Delete reference to invalid subscriptions * feat: Better error handling * fix: Unescape HTML characters after tags are striped * refactor: Simpify code * fix: Modify to work with #4091 * Sort strings alphabetically * i18n: Updated Polish translation it annoys me that it's not fully localized :P * refactor: Use current_session in PushSubscriptionController * fix: Rebase mistake * fix: Set cacheName to mastodon * refactor: Pull request feedback * refactor: Remove logging statements * chore(yarn): Fix conflicts with master * chore(yarn): Copy latest from master * chore(yarn): Readd offline-plugin * refactor: Use save! and update! * refactor: Send notifications async * fix: Allow retry when push fails * fix: Save track for failed pushes * fix: Minify sw.js * fix: Remove account_id from fabricator
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. @import 'variables';
  2. .app-body {
  3. -webkit-overflow-scrolling: touch;
  4. -ms-overflow-style: -ms-autohiding-scrollbar;
  5. }
  6. .button {
  7. background-color: darken($ui-highlight-color, 3%);
  8. border: 10px none;
  9. border-radius: 4px;
  10. box-sizing: border-box;
  11. color: $primary-text-color;
  12. cursor: pointer;
  13. display: inline-block;
  14. font-family: inherit;
  15. font-size: 14px;
  16. font-weight: 500;
  17. height: 36px;
  18. letter-spacing: 0;
  19. line-height: 36px;
  20. overflow: hidden;
  21. padding: 0 16px;
  22. position: relative;
  23. text-align: center;
  24. text-transform: uppercase;
  25. text-decoration: none;
  26. text-overflow: ellipsis;
  27. transition: all 100ms ease-in;
  28. white-space: nowrap;
  29. width: auto;
  30. &:active,
  31. &:focus,
  32. &:hover {
  33. background-color: lighten($ui-highlight-color, 7%);
  34. transition: all 200ms ease-out;
  35. }
  36. &:disabled {
  37. background-color: $ui-primary-color;
  38. cursor: default;
  39. }
  40. &.button-alternative {
  41. font-size: 16px;
  42. line-height: 36px;
  43. height: auto;
  44. color: $ui-base-color;
  45. background: $ui-primary-color;
  46. text-transform: none;
  47. padding: 4px 16px;
  48. &:active,
  49. &:focus,
  50. &:hover {
  51. background-color: lighten($ui-primary-color, 4%);
  52. }
  53. }
  54. &.button-secondary {
  55. font-size: 16px;
  56. line-height: 36px;
  57. height: auto;
  58. color: $ui-primary-color;
  59. text-transform: none;
  60. background: transparent;
  61. padding: 3px 15px;
  62. border-radius: 4px;
  63. border: 1px solid $ui-primary-color;
  64. &:active,
  65. &:focus,
  66. &:hover {
  67. border-color: lighten($ui-primary-color, 4%);
  68. color: lighten($ui-primary-color, 4%);
  69. }
  70. }
  71. &.button--block {
  72. display: block;
  73. width: 100%;
  74. }
  75. }
  76. .column__wrapper {
  77. display: flex;
  78. flex: 1 1 auto;
  79. position: relative;
  80. }
  81. .column-icon {
  82. background: lighten($ui-base-color, 4%);
  83. color: $ui-primary-color;
  84. cursor: pointer;
  85. font-size: 16px;
  86. padding: 15px;
  87. position: absolute;
  88. right: 0;
  89. top: -48px;
  90. z-index: 3;
  91. &:hover {
  92. color: lighten($ui-primary-color, 7%);
  93. }
  94. }
  95. .icon-button {
  96. display: inline-block;
  97. padding: 0;
  98. color: $ui-base-lighter-color;
  99. border: none;
  100. background: transparent;
  101. cursor: pointer;
  102. transition: color 100ms ease-in;
  103. &:hover,
  104. &:active,
  105. &:focus {
  106. color: lighten($ui-base-color, 33%);
  107. transition: color 200ms ease-out;
  108. }
  109. &.disabled {
  110. color: lighten($ui-base-color, 13%);
  111. cursor: default;
  112. }
  113. &.active {
  114. color: $ui-highlight-color;
  115. }
  116. &::-moz-focus-inner {
  117. border: 0;
  118. }
  119. &::-moz-focus-inner,
  120. &:focus,
  121. &:active {
  122. outline: 0 !important;
  123. }
  124. &.inverted {
  125. color: lighten($ui-base-color, 33%);
  126. &:hover,
  127. &:active,
  128. &:focus {
  129. color: $ui-base-lighter-color;
  130. }
  131. &.disabled {
  132. color: $ui-primary-color;
  133. }
  134. &.active {
  135. color: $ui-highlight-color;
  136. &.disabled {
  137. color: lighten($ui-highlight-color, 13%);
  138. }
  139. }
  140. }
  141. &.overlayed {
  142. box-sizing: content-box;
  143. background: rgba($base-overlay-background, 0.6);
  144. color: rgba($primary-text-color, 0.7);
  145. border-radius: 4px;
  146. padding: 2px;
  147. &:hover {
  148. background: rgba($base-overlay-background, 0.9);
  149. }
  150. }
  151. }
  152. .text-icon-button {
  153. color: lighten($ui-base-color, 33%);
  154. border: none;
  155. background: transparent;
  156. cursor: pointer;
  157. font-weight: 600;
  158. font-size: 11px;
  159. padding: 0 3px;
  160. line-height: 27px;
  161. outline: 0;
  162. transition: color 100ms ease-in;
  163. &:hover,
  164. &:active,
  165. &:focus {
  166. color: $ui-base-lighter-color;
  167. transition: color 200ms ease-out;
  168. }
  169. &.disabled {
  170. color: lighten($ui-base-color, 13%);
  171. cursor: default;
  172. }
  173. &.active {
  174. color: $ui-highlight-color;
  175. }
  176. &::-moz-focus-inner {
  177. border: 0;
  178. }
  179. &::-moz-focus-inner,
  180. &:focus,
  181. &:active {
  182. outline: 0 !important;
  183. }
  184. }
  185. .dropdown-menu {
  186. position: absolute;
  187. }
  188. .dropdown--active .icon-button {
  189. color: $ui-highlight-color;
  190. }
  191. .dropdown--active::after {
  192. @media screen and (min-width: 631px) {
  193. content: "";
  194. display: block;
  195. position: absolute;
  196. width: 0;
  197. height: 0;
  198. border-style: solid;
  199. border-width: 0 4.5px 7.8px;
  200. border-color: transparent transparent $ui-secondary-color;
  201. bottom: 8px;
  202. right: 104px;
  203. }
  204. }
  205. .invisible {
  206. font-size: 0;
  207. line-height: 0;
  208. display: inline-block;
  209. width: 0;
  210. height: 0;
  211. position: absolute;
  212. img,
  213. svg {
  214. margin: 0 !important;
  215. border: 0 !important;
  216. padding: 0 !important;
  217. width: 0 !important;
  218. height: 0 !important;
  219. }
  220. }
  221. .ellipsis {
  222. &::after {
  223. content: "";
  224. }
  225. }
  226. .lightbox .icon-button {
  227. color: $ui-base-color;
  228. }
  229. .compose-form {
  230. padding: 10px;
  231. }
  232. .compose-form__warning {
  233. color: darken($ui-secondary-color, 65%);
  234. margin-bottom: 15px;
  235. background: $ui-primary-color;
  236. box-shadow: 0 2px 6px rgba($base-shadow-color, 0.3);
  237. padding: 8px 10px;
  238. border-radius: 4px;
  239. font-size: 13px;
  240. font-weight: 400;
  241. strong {
  242. color: darken($ui-secondary-color, 65%);
  243. font-weight: 500;
  244. }
  245. a {
  246. color: darken($ui-primary-color, 33%);
  247. font-weight: 500;
  248. text-decoration: underline;
  249. &:hover,
  250. &:active,
  251. &:focus {
  252. text-decoration: none;
  253. }
  254. }
  255. }
  256. .compose-form__modifiers {
  257. color: $ui-base-color;
  258. font-family: inherit;
  259. font-size: 14px;
  260. background: $simple-background-color;
  261. border-radius: 0 0 4px;
  262. }
  263. .compose-form__buttons-wrapper {
  264. display: flex;
  265. justify-content: space-between;
  266. }
  267. .compose-form__buttons {
  268. padding: 10px;
  269. background: darken($simple-background-color, 8%);
  270. box-shadow: inset 0 5px 5px rgba($base-shadow-color, 0.05);
  271. border-radius: 0 0 4px 4px;
  272. display: flex;
  273. .icon-button {
  274. box-sizing: content-box;
  275. padding: 0 3px;
  276. }
  277. }
  278. .compose-form__upload-button-icon {
  279. line-height: 27px;
  280. }
  281. .compose-form__sensitive-button {
  282. display: none;
  283. &.compose-form__sensitive-button--visible {
  284. display: block;
  285. }
  286. .compose-form__sensitive-button__icon {
  287. line-height: 27px;
  288. }
  289. }
  290. .compose-form__upload-wrapper {
  291. overflow: hidden;
  292. }
  293. .compose-form__uploads-wrapper {
  294. display: flex;
  295. flex-direction: row;
  296. padding: 5px;
  297. flex-wrap: wrap;
  298. }
  299. .compose-form__upload {
  300. flex: 1 1 0;
  301. min-width: 40%;
  302. margin: 5px;
  303. &-description {
  304. position: absolute;
  305. z-index: 2;
  306. bottom: 0;
  307. left: 0;
  308. right: 0;
  309. box-sizing: border-box;
  310. background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent);
  311. padding: 10px;
  312. opacity: 0;
  313. transition: opacity .1s ease;
  314. input {
  315. background: transparent;
  316. color: $ui-secondary-color;
  317. border: 0;
  318. padding: 0;
  319. margin: 0;
  320. width: 100%;
  321. font-family: inherit;
  322. font-size: 14px;
  323. font-weight: 500;
  324. &:focus {
  325. color: $white;
  326. }
  327. &::placeholder {
  328. opacity: 0.54;
  329. color: $ui-secondary-color;
  330. }
  331. }
  332. &.active {
  333. opacity: 1;
  334. }
  335. }
  336. .icon-button {
  337. mix-blend-mode: difference;
  338. }
  339. }
  340. .compose-form__upload-thumbnail {
  341. border-radius: 4px;
  342. background-position: center;
  343. background-size: cover;
  344. background-repeat: no-repeat;
  345. height: 100px;
  346. width: 100%;
  347. }
  348. .compose-form__label {
  349. display: block;
  350. line-height: 24px;
  351. vertical-align: middle;
  352. &.with-border {
  353. border-top: 1px solid $ui-base-color;
  354. padding-top: 10px;
  355. }
  356. .compose-form__label__text {
  357. display: inline-block;
  358. vertical-align: middle;
  359. margin-bottom: 14px;
  360. margin-left: 8px;
  361. color: $ui-primary-color;
  362. }
  363. }
  364. .compose-form__textarea,
  365. .follow-form__input {
  366. background: $simple-background-color;
  367. &:disabled {
  368. background: $ui-secondary-color;
  369. }
  370. }
  371. .compose-form__autosuggest-wrapper {
  372. position: relative;
  373. .emoji-picker-dropdown {
  374. position: absolute;
  375. right: 5px;
  376. top: 5px;
  377. ::-webkit-scrollbar-track:hover,
  378. ::-webkit-scrollbar-track:active {
  379. background-color: rgba($base-overlay-background, 0.3);
  380. }
  381. }
  382. }
  383. .compose-form__publish {
  384. display: flex;
  385. min-width: 0;
  386. }
  387. .compose-form__publish-button-wrapper {
  388. overflow: hidden;
  389. padding-top: 10px;
  390. }
  391. .emojione {
  392. display: inline-block;
  393. font-size: inherit;
  394. vertical-align: middle;
  395. object-fit: contain;
  396. margin: -.2ex .15em .2ex;
  397. width: 16px;
  398. height: 16px;
  399. img {
  400. width: auto;
  401. }
  402. }
  403. .reply-indicator {
  404. border-radius: 4px 4px 0 0;
  405. position: relative;
  406. bottom: -2px;
  407. background: $ui-primary-color;
  408. padding: 10px;
  409. }
  410. .reply-indicator__header {
  411. margin-bottom: 5px;
  412. overflow: hidden;
  413. }
  414. .reply-indicator__cancel {
  415. float: right;
  416. line-height: 24px;
  417. }
  418. .reply-indicator__display-name {
  419. color: $ui-base-color;
  420. display: block;
  421. max-width: 100%;
  422. line-height: 24px;
  423. overflow: hidden;
  424. padding-right: 25px;
  425. text-decoration: none;
  426. }
  427. .reply-indicator__display-avatar {
  428. float: left;
  429. margin-right: 5px;
  430. }
  431. .status__content--with-action {
  432. cursor: pointer;
  433. }
  434. .status__content,
  435. .reply-indicator__content {
  436. font-size: 15px;
  437. line-height: 20px;
  438. word-wrap: break-word;
  439. font-weight: 400;
  440. overflow: hidden;
  441. white-space: pre-wrap;
  442. &.status__content--with-spoiler {
  443. white-space: normal;
  444. .status__content__text {
  445. white-space: pre-wrap;
  446. }
  447. }
  448. .emojione {
  449. width: 18px;
  450. height: 18px;
  451. }
  452. p {
  453. margin-bottom: 20px;
  454. &:last-child {
  455. margin-bottom: 0;
  456. }
  457. }
  458. a {
  459. color: $ui-secondary-color;
  460. text-decoration: none;
  461. &:hover {
  462. text-decoration: underline;
  463. .fa {
  464. color: lighten($ui-base-color, 40%);
  465. }
  466. }
  467. &.mention {
  468. &:hover {
  469. text-decoration: none;
  470. span {
  471. text-decoration: underline;
  472. }
  473. }
  474. }
  475. .fa {
  476. color: lighten($ui-base-color, 30%);
  477. }
  478. }
  479. .status__content__spoiler-link {
  480. background: lighten($ui-base-color, 30%);
  481. &:hover {
  482. background: lighten($ui-base-color, 33%);
  483. text-decoration: none;
  484. }
  485. }
  486. .status__content__text {
  487. display: none;
  488. &.status__content__text--visible {
  489. display: block;
  490. }
  491. }
  492. }
  493. .status__content__spoiler-link {
  494. display: inline-block;
  495. border-radius: 2px;
  496. background: transparent;
  497. border: 0;
  498. color: lighten($ui-base-color, 8%);
  499. font-weight: 500;
  500. font-size: 11px;
  501. padding: 0 6px;
  502. text-transform: uppercase;
  503. line-height: inherit;
  504. cursor: pointer;
  505. }
  506. .status__prepend-icon-wrapper {
  507. left: -26px;
  508. position: absolute;
  509. }
  510. .focusable {
  511. &:focus {
  512. outline: 0;
  513. background: lighten($ui-base-color, 4%);
  514. &.status-direct {
  515. background: lighten($ui-base-color, 12%);
  516. }
  517. .detailed-status,
  518. .detailed-status__action-bar {
  519. background: lighten($ui-base-color, 8%);
  520. }
  521. }
  522. }
  523. .status {
  524. padding: 8px 10px;
  525. padding-left: 68px;
  526. position: relative;
  527. min-height: 48px;
  528. border-bottom: 1px solid lighten($ui-base-color, 8%);
  529. cursor: default;
  530. @supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
  531. // Add margin to avoid Edge auto-hiding scrollbar appearing over content.
  532. // On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
  533. padding-right: 26px; // 10px + 16px
  534. }
  535. @keyframes fade {
  536. 0% { opacity: 0; }
  537. 100% { opacity: 1; }
  538. }
  539. opacity: 1;
  540. animation: fade 150ms linear;
  541. .video-player {
  542. margin-top: 8px;
  543. }
  544. &.status-direct {
  545. background: lighten($ui-base-color, 8%);
  546. .icon-button.disabled {
  547. color: lighten($ui-base-color, 16%);
  548. }
  549. }
  550. &.light {
  551. .status__relative-time {
  552. color: $ui-primary-color;
  553. }
  554. .status__display-name {
  555. color: $ui-base-color;
  556. }
  557. .display-name {
  558. strong {
  559. color: $ui-base-color;
  560. }
  561. span {
  562. color: $ui-primary-color;
  563. }
  564. }
  565. .status__content {
  566. color: $ui-base-color;
  567. a {
  568. color: $ui-highlight-color;
  569. }
  570. a.status__content__spoiler-link {
  571. color: $primary-text-color;
  572. background: $ui-primary-color;
  573. &:hover {
  574. background: lighten($ui-primary-color, 8%);
  575. }
  576. }
  577. }
  578. }
  579. }
  580. .notification-favourite {
  581. .status.status-direct {
  582. background: transparent;
  583. .icon-button.disabled {
  584. color: lighten($ui-base-color, 13%);
  585. }
  586. }
  587. }
  588. .status__relative-time {
  589. color: $ui-base-lighter-color;
  590. float: right;
  591. font-size: 14px;
  592. }
  593. .status__display-name {
  594. color: $ui-base-lighter-color;
  595. }
  596. .status__info .status__display-name {
  597. display: block;
  598. max-width: 100%;
  599. padding-right: 25px;
  600. }
  601. .status__info {
  602. font-size: 15px;
  603. }
  604. .status-check-box {
  605. border-bottom: 1px solid $ui-secondary-color;
  606. display: flex;
  607. .status__content {
  608. flex: 1 1 auto;
  609. padding: 10px;
  610. overflow: hidden;
  611. text-overflow: ellipsis;
  612. white-space: nowrap;
  613. }
  614. }
  615. .status-check-box-toggle {
  616. align-items: center;
  617. display: flex;
  618. flex: 0 0 auto;
  619. justify-content: center;
  620. padding: 10px;
  621. }
  622. .status__prepend {
  623. margin-left: 68px;
  624. color: $ui-base-lighter-color;
  625. padding: 8px 0;
  626. padding-bottom: 2px;
  627. font-size: 14px;
  628. position: relative;
  629. .status__display-name strong {
  630. color: $ui-base-lighter-color;
  631. }
  632. > span {
  633. display: block;
  634. overflow: hidden;
  635. text-overflow: ellipsis;
  636. }
  637. }
  638. .status__action-bar {
  639. align-items: center;
  640. display: flex;
  641. margin-top: 10px;
  642. }
  643. .status__action-bar-button {
  644. float: left;
  645. margin-right: 18px;
  646. }
  647. .status__action-bar-dropdown {
  648. float: left;
  649. height: 23.15px;
  650. width: 23.15px;
  651. }
  652. .detailed-status__action-bar-dropdown {
  653. flex: 1 1 auto;
  654. display: flex;
  655. align-items: center;
  656. justify-content: center;
  657. position: relative;
  658. }
  659. .detailed-status {
  660. background: lighten($ui-base-color, 4%);
  661. padding: 14px 10px;
  662. .status__content {
  663. font-size: 19px;
  664. line-height: 24px;
  665. .emojione {
  666. width: 22px;
  667. height: 22px;
  668. }
  669. }
  670. .video-player {
  671. margin-top: 8px;
  672. }
  673. }
  674. .detailed-status__meta {
  675. margin-top: 15px;
  676. color: $ui-base-lighter-color;
  677. font-size: 14px;
  678. line-height: 18px;
  679. }
  680. .detailed-status__action-bar {
  681. background: lighten($ui-base-color, 4%);
  682. border-top: 1px solid lighten($ui-base-color, 8%);
  683. border-bottom: 1px solid lighten($ui-base-color, 8%);
  684. display: flex;
  685. flex-direction: row;
  686. padding: 10px 0;
  687. }
  688. .detailed-status__link {
  689. color: inherit;
  690. text-decoration: none;
  691. }
  692. .detailed-status__favorites,
  693. .detailed-status__reblogs {
  694. display: inline-block;
  695. font-weight: 500;
  696. font-size: 12px;
  697. margin-left: 6px;
  698. }
  699. .reply-indicator__content {
  700. color: $ui-base-color;
  701. font-size: 14px;
  702. a {
  703. color: lighten($ui-base-color, 20%);
  704. }
  705. }
  706. .account {
  707. padding: 10px;
  708. border-bottom: 1px solid lighten($ui-base-color, 8%);
  709. .account__display-name {
  710. flex: 1 1 auto;
  711. display: block;
  712. color: $ui-primary-color;
  713. overflow: hidden;
  714. text-decoration: none;
  715. font-size: 14px;
  716. }
  717. }
  718. .account__wrapper {
  719. display: flex;
  720. }
  721. .account__avatar-wrapper {
  722. float: left;
  723. margin-left: 12px;
  724. margin-right: 12px;
  725. }
  726. .account__avatar {
  727. @include avatar-radius();
  728. position: relative;
  729. cursor: pointer;
  730. &-inline {
  731. display: inline-block;
  732. vertical-align: middle;
  733. margin-right: 5px;
  734. }
  735. }
  736. .account__avatar-overlay {
  737. @include avatar-size(48px);
  738. &-base {
  739. @include avatar-radius();
  740. @include avatar-size(36px);
  741. }
  742. &-overlay {
  743. @include avatar-radius();
  744. @include avatar-size(24px);
  745. position: absolute;
  746. bottom: 0;
  747. right: 0;
  748. z-index: 1;
  749. }
  750. }
  751. .account__relationship {
  752. height: 18px;
  753. padding: 10px;
  754. }
  755. .account__header {
  756. flex: 0 0 auto;
  757. background: lighten($ui-base-color, 4%);
  758. text-align: center;
  759. background-size: cover;
  760. background-position: center;
  761. position: relative;
  762. & > div {
  763. background: rgba(lighten($ui-base-color, 4%), 0.9);
  764. padding: 20px 10px;
  765. }
  766. .account__header__content {
  767. color: $ui-secondary-color;
  768. }
  769. .account__header__display-name {
  770. color: $primary-text-color;
  771. display: inline-block;
  772. width: 100%;
  773. font-size: 20px;
  774. line-height: 27px;
  775. font-weight: 500;
  776. overflow: hidden;
  777. text-overflow: ellipsis;
  778. }
  779. .account__header__username {
  780. color: $ui-highlight-color;
  781. font-size: 14px;
  782. font-weight: 400;
  783. display: block;
  784. margin-bottom: 10px;
  785. overflow: hidden;
  786. text-overflow: ellipsis;
  787. }
  788. }
  789. .account__disclaimer {
  790. padding: 10px;
  791. border-top: 1px solid lighten($ui-base-color, 8%);
  792. color: $ui-base-lighter-color;
  793. strong {
  794. font-weight: 500;
  795. }
  796. a {
  797. font-weight: 500;
  798. color: inherit;
  799. text-decoration: underline;
  800. &:hover,
  801. &:focus,
  802. &:active {
  803. text-decoration: none;
  804. }
  805. }
  806. }
  807. .account__header__content {
  808. color: $ui-primary-color;
  809. font-size: 14px;
  810. font-weight: 400;
  811. overflow: hidden;
  812. word-break: normal;
  813. word-wrap: break-word;
  814. p {
  815. margin-bottom: 20px;
  816. &:last-child {
  817. margin-bottom: 0;
  818. }
  819. }
  820. a {
  821. color: inherit;
  822. text-decoration: underline;
  823. &:hover {
  824. text-decoration: none;
  825. }
  826. }
  827. }
  828. .account__header__display-name {
  829. .emojione {
  830. width: 25px;
  831. height: 25px;
  832. }
  833. }
  834. .account__action-bar {
  835. border-top: 1px solid lighten($ui-base-color, 8%);
  836. border-bottom: 1px solid lighten($ui-base-color, 8%);
  837. line-height: 36px;
  838. overflow: hidden;
  839. flex: 0 0 auto;
  840. display: flex;
  841. }
  842. .account__action-bar-dropdown {
  843. flex: 0 1 calc(50% - 140px);
  844. padding: 10px;
  845. .dropdown--active {
  846. .dropdown__content.dropdown__right {
  847. left: 6px;
  848. right: initial;
  849. }
  850. &::after {
  851. bottom: initial;
  852. margin-left: 11px;
  853. margin-top: -7px;
  854. right: initial;
  855. }
  856. }
  857. }
  858. .account__action-bar-links {
  859. display: flex;
  860. flex: 1 1 auto;
  861. line-height: 18px;
  862. }
  863. .account__action-bar__tab {
  864. text-decoration: none;
  865. overflow: hidden;
  866. flex: 0 1 80px;
  867. border-left: 1px solid lighten($ui-base-color, 8%);
  868. padding: 10px 5px;
  869. & > span {
  870. display: block;
  871. text-transform: uppercase;
  872. font-size: 11px;
  873. color: $ui-primary-color;
  874. }
  875. strong {
  876. display: block;
  877. font-size: 15px;
  878. font-weight: 500;
  879. color: $primary-text-color;
  880. }
  881. abbr {
  882. color: $ui-base-lighter-color;
  883. }
  884. }
  885. .account__header__avatar {
  886. background-size: 90px 90px;
  887. display: block;
  888. height: 90px;
  889. margin: 0 auto 10px;
  890. overflow: hidden;
  891. width: 90px;
  892. }
  893. .account-authorize {
  894. padding: 14px 10px;
  895. .detailed-status__display-name {
  896. display: block;
  897. margin-bottom: 15px;
  898. overflow: hidden;
  899. }
  900. }
  901. .account-authorize__avatar {
  902. float: left;
  903. margin-right: 10px;
  904. }
  905. .status__display-name,
  906. .status__relative-time,
  907. .detailed-status__display-name,
  908. .detailed-status__datetime,
  909. .detailed-status__application,
  910. .account__display-name {
  911. text-decoration: none;
  912. }
  913. .status__display-name,
  914. .account__display-name {
  915. strong {
  916. color: $primary-text-color;
  917. }
  918. }
  919. .muted {
  920. .emojione {
  921. opacity: 0.5;
  922. }
  923. }
  924. .status__display-name,
  925. .reply-indicator__display-name,
  926. .detailed-status__display-name,
  927. .account__display-name {
  928. &:hover strong {
  929. text-decoration: underline;
  930. }
  931. }
  932. .account__display-name strong {
  933. display: block;
  934. overflow: hidden;
  935. text-overflow: ellipsis;
  936. }
  937. .detailed-status__application,
  938. .detailed-status__datetime {
  939. color: inherit;
  940. }
  941. .detailed-status__display-name {
  942. color: $ui-secondary-color;
  943. display: block;
  944. line-height: 24px;
  945. margin-bottom: 15px;
  946. overflow: hidden;
  947. strong,
  948. span {
  949. display: block;
  950. text-overflow: ellipsis;
  951. overflow: hidden;
  952. }
  953. strong {
  954. font-size: 16px;
  955. color: $primary-text-color;
  956. }
  957. }
  958. .detailed-status__display-avatar {
  959. float: left;
  960. margin-right: 10px;
  961. }
  962. .status__avatar {
  963. height: 48px;
  964. left: 10px;
  965. position: absolute;
  966. top: 10px;
  967. width: 48px;
  968. }
  969. .muted {
  970. .status__content p,
  971. .status__content a {
  972. color: $ui-base-lighter-color;
  973. }
  974. .status__display-name strong {
  975. color: $ui-base-lighter-color;
  976. }
  977. .status__avatar {
  978. opacity: 0.5;
  979. }
  980. a.status__content__spoiler-link {
  981. background: $ui-base-lighter-color;
  982. color: lighten($ui-base-color, 4%);
  983. &:hover {
  984. background: lighten($ui-base-color, 29%);
  985. text-decoration: none;
  986. }
  987. }
  988. }
  989. .notification__message {
  990. margin-left: 68px;
  991. padding: 8px 0;
  992. padding-bottom: 0;
  993. cursor: default;
  994. color: $ui-primary-color;
  995. font-size: 15px;
  996. position: relative;
  997. .fa {
  998. color: $ui-highlight-color;
  999. }
  1000. > span {
  1001. display: block;
  1002. overflow: hidden;
  1003. text-overflow: ellipsis;
  1004. }
  1005. }
  1006. .notification__favourite-icon-wrapper {
  1007. left: -26px;
  1008. position: absolute;
  1009. .star-icon {
  1010. color: $gold-star;
  1011. }
  1012. }
  1013. .star-icon.active {
  1014. color: $gold-star;
  1015. }
  1016. .notification__display-name {
  1017. color: inherit;
  1018. font-weight: 500;
  1019. text-decoration: none;
  1020. &:hover {
  1021. color: $primary-text-color;
  1022. text-decoration: underline;
  1023. }
  1024. }
  1025. .display-name {
  1026. display: block;
  1027. max-width: 100%;
  1028. overflow: hidden;
  1029. text-overflow: ellipsis;
  1030. white-space: nowrap;
  1031. }
  1032. .display-name__html {
  1033. font-weight: 500;
  1034. }
  1035. .display-name__account {
  1036. font-size: 14px;
  1037. }
  1038. .status__relative-time,
  1039. .detailed-status__datetime {
  1040. &:hover {
  1041. text-decoration: underline;
  1042. }
  1043. }
  1044. .image-loader {
  1045. position: relative;
  1046. &.image-loader--loading {
  1047. .image-loader__preview-canvas {
  1048. filter: blur(2px);
  1049. }
  1050. }
  1051. .image-loader__img {
  1052. position: absolute;
  1053. top: 0;
  1054. left: 0;
  1055. right: 0;
  1056. max-width: 100%;
  1057. max-height: 100%;
  1058. background-image: none;
  1059. }
  1060. &.image-loader--amorphous {
  1061. position: static;
  1062. .image-loader__preview-canvas {
  1063. display: none;
  1064. }
  1065. .image-loader__img {
  1066. position: static;
  1067. width: auto;
  1068. height: auto;
  1069. }
  1070. }
  1071. }
  1072. .navigation-bar {
  1073. padding: 10px;
  1074. display: flex;
  1075. flex-shrink: 0;
  1076. cursor: default;
  1077. color: $ui-primary-color;
  1078. strong {
  1079. color: $primary-text-color;
  1080. }
  1081. .permalink {
  1082. text-decoration: none;
  1083. }
  1084. .icon-button {
  1085. pointer-events: none;
  1086. opacity: 0;
  1087. }
  1088. }
  1089. .navigation-bar__profile {
  1090. flex: 1 1 auto;
  1091. margin-left: 8px;
  1092. overflow: hidden;
  1093. }
  1094. .navigation-bar__profile-account {
  1095. display: block;
  1096. font-weight: 500;
  1097. overflow: hidden;
  1098. text-overflow: ellipsis;
  1099. }
  1100. .navigation-bar__profile-edit {
  1101. color: inherit;
  1102. text-decoration: none;
  1103. }
  1104. .dropdown {
  1105. display: inline-block;
  1106. }
  1107. .dropdown__content {
  1108. display: none;
  1109. position: absolute;
  1110. }
  1111. .dropdown-menu__separator {
  1112. border-bottom: 1px solid darken($ui-secondary-color, 8%);
  1113. margin: 5px 7px 6px;
  1114. height: 0;
  1115. }
  1116. .dropdown-menu {
  1117. background: $ui-secondary-color;
  1118. padding: 4px 0;
  1119. border-radius: 4px;
  1120. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  1121. ul {
  1122. list-style: none;
  1123. }
  1124. }
  1125. .dropdown-menu__arrow {
  1126. position: absolute;
  1127. width: 0;
  1128. height: 0;
  1129. border: 0 solid transparent;
  1130. &.left {
  1131. right: -5px;
  1132. margin-top: -5px;
  1133. border-width: 5px 0 5px 5px;
  1134. border-left-color: $ui-secondary-color;
  1135. }
  1136. &.top {
  1137. bottom: -5px;
  1138. margin-left: -13px;
  1139. border-width: 5px 7px 0;
  1140. border-top-color: $ui-secondary-color;
  1141. }
  1142. &.bottom {
  1143. top: -5px;
  1144. margin-left: -13px;
  1145. border-width: 0 7px 5px;
  1146. border-bottom-color: $ui-secondary-color;
  1147. }
  1148. &.right {
  1149. left: -5px;
  1150. margin-top: -5px;
  1151. border-width: 5px 5px 5px 0;
  1152. border-right-color: $ui-secondary-color;
  1153. }
  1154. }
  1155. .dropdown-menu__item {
  1156. a {
  1157. font-size: 13px;
  1158. line-height: 18px;
  1159. display: block;
  1160. padding: 4px 14px;
  1161. box-sizing: border-box;
  1162. text-decoration: none;
  1163. background: $ui-secondary-color;
  1164. color: $ui-base-color;
  1165. overflow: hidden;
  1166. text-overflow: ellipsis;
  1167. white-space: nowrap;
  1168. &:focus,
  1169. &:hover,
  1170. &:active {
  1171. background: $ui-highlight-color;
  1172. color: $ui-secondary-color;
  1173. outline: 0;
  1174. }
  1175. }
  1176. }
  1177. .dropdown--active .dropdown__content {
  1178. display: block;
  1179. line-height: 18px;
  1180. max-width: 311px;
  1181. right: 0;
  1182. text-align: left;
  1183. z-index: 9999;
  1184. & > ul {
  1185. list-style: none;
  1186. background: $ui-secondary-color;
  1187. padding: 4px 0;
  1188. border-radius: 4px;
  1189. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1190. min-width: 140px;
  1191. position: relative;
  1192. }
  1193. &.dropdown__right {
  1194. right: 0;
  1195. }
  1196. &.dropdown__left {
  1197. & > ul {
  1198. left: -98px;
  1199. }
  1200. }
  1201. & > ul > li > a {
  1202. font-size: 13px;
  1203. line-height: 18px;
  1204. display: block;
  1205. padding: 4px 14px;
  1206. box-sizing: border-box;
  1207. text-decoration: none;
  1208. background: $ui-secondary-color;
  1209. color: $ui-base-color;
  1210. overflow: hidden;
  1211. text-overflow: ellipsis;
  1212. white-space: nowrap;
  1213. &:focus {
  1214. outline: 0;
  1215. }
  1216. &:hover {
  1217. background: $ui-highlight-color;
  1218. color: $ui-secondary-color;
  1219. }
  1220. }
  1221. }
  1222. .dropdown__icon {
  1223. vertical-align: middle;
  1224. }
  1225. .static-content {
  1226. padding: 10px;
  1227. padding-top: 20px;
  1228. color: $ui-base-lighter-color;
  1229. h1 {
  1230. font-size: 16px;
  1231. font-weight: 500;
  1232. margin-bottom: 40px;
  1233. text-align: center;
  1234. }
  1235. p {
  1236. font-size: 13px;
  1237. margin-bottom: 20px;
  1238. }
  1239. }
  1240. .columns-area {
  1241. display: flex;
  1242. flex: 1 1 auto;
  1243. flex-direction: row;
  1244. justify-content: flex-start;
  1245. overflow-x: auto;
  1246. position: relative;
  1247. }
  1248. @media screen and (min-width: 360px) {
  1249. .columns-area {
  1250. padding: 10px;
  1251. }
  1252. .react-swipeable-view-container .columns-area {
  1253. height: calc(100% - 20px) !important;
  1254. }
  1255. }
  1256. .react-swipeable-view-container {
  1257. &,
  1258. .columns-area,
  1259. .drawer,
  1260. .column {
  1261. height: 100%;
  1262. }
  1263. }
  1264. .react-swipeable-view-container > * {
  1265. display: flex;
  1266. align-items: center;
  1267. justify-content: center;
  1268. height: 100%;
  1269. }
  1270. .column {
  1271. width: 330px;
  1272. position: relative;
  1273. box-sizing: border-box;
  1274. display: flex;
  1275. flex-direction: column;
  1276. > .scrollable {
  1277. background: $ui-base-color;
  1278. }
  1279. }
  1280. .ui {
  1281. flex: 0 0 auto;
  1282. display: flex;
  1283. flex-direction: column;
  1284. width: 100%;
  1285. height: 100%;
  1286. background: darken($ui-base-color, 7%);
  1287. }
  1288. .drawer {
  1289. width: 300px;
  1290. box-sizing: border-box;
  1291. display: flex;
  1292. flex-direction: column;
  1293. overflow-y: hidden;
  1294. }
  1295. .drawer__tab {
  1296. display: block;
  1297. flex: 1 1 auto;
  1298. padding: 15px 5px 13px;
  1299. color: $ui-primary-color;
  1300. text-decoration: none;
  1301. text-align: center;
  1302. font-size: 16px;
  1303. border-bottom: 2px solid transparent;
  1304. }
  1305. .column,
  1306. .drawer {
  1307. flex: 1 1 100%;
  1308. overflow: hidden;
  1309. }
  1310. @media screen and (min-width: 360px) {
  1311. .tabs-bar {
  1312. margin: 10px;
  1313. margin-bottom: 0;
  1314. }
  1315. .search {
  1316. margin-bottom: 10px;
  1317. }
  1318. }
  1319. @media screen and (max-width: 630px) {
  1320. .column,
  1321. .drawer {
  1322. width: 100%;
  1323. padding: 0;
  1324. }
  1325. .columns-area {
  1326. flex-direction: column;
  1327. }
  1328. .search__input,
  1329. .autosuggest-textarea__textarea {
  1330. font-size: 16px;
  1331. }
  1332. }
  1333. @media screen and (min-width: 631px) {
  1334. .columns-area {
  1335. padding: 0;
  1336. }
  1337. .column,
  1338. .drawer {
  1339. flex: 0 0 auto;
  1340. padding: 10px;
  1341. padding-left: 5px;
  1342. padding-right: 5px;
  1343. &:first-child {
  1344. padding-left: 10px;
  1345. }
  1346. &:last-child {
  1347. padding-right: 10px;
  1348. }
  1349. }
  1350. .columns-area > div {
  1351. .column,
  1352. .drawer {
  1353. padding-left: 5px;
  1354. padding-right: 5px;
  1355. }
  1356. }
  1357. }
  1358. .drawer__pager {
  1359. box-sizing: border-box;
  1360. padding: 0;
  1361. flex-grow: 1;
  1362. position: relative;
  1363. overflow: hidden;
  1364. display: flex;
  1365. }
  1366. .drawer__inner {
  1367. position: absolute;
  1368. top: 0;
  1369. left: 0;
  1370. background: lighten($ui-base-color, 13%);
  1371. box-sizing: border-box;
  1372. padding: 0;
  1373. display: flex;
  1374. flex-direction: column;
  1375. overflow: hidden;
  1376. overflow-y: auto;
  1377. width: 100%;
  1378. height: 100%;
  1379. &.darker {
  1380. background: $ui-base-color;
  1381. }
  1382. }
  1383. .pseudo-drawer {
  1384. background: lighten($ui-base-color, 13%);
  1385. font-size: 13px;
  1386. text-align: left;
  1387. }
  1388. .drawer__header {
  1389. flex: 0 0 auto;
  1390. font-size: 16px;
  1391. background: lighten($ui-base-color, 8%);
  1392. margin-bottom: 10px;
  1393. display: flex;
  1394. flex-direction: row;
  1395. a {
  1396. transition: background 100ms ease-in;
  1397. &:hover {
  1398. background: lighten($ui-base-color, 3%);
  1399. transition: background 200ms ease-out;
  1400. }
  1401. }
  1402. }
  1403. .tabs-bar {
  1404. display: flex;
  1405. background: lighten($ui-base-color, 8%);
  1406. flex: 0 0 auto;
  1407. overflow-y: auto;
  1408. }
  1409. .tabs-bar__link {
  1410. display: block;
  1411. flex: 1 1 auto;
  1412. padding: 15px 10px;
  1413. color: $primary-text-color;
  1414. text-decoration: none;
  1415. text-align: center;
  1416. font-size: 14px;
  1417. font-weight: 500;
  1418. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1419. transition: all 200ms linear;
  1420. .fa {
  1421. font-weight: 400;
  1422. font-size: 16px;
  1423. }
  1424. &.active {
  1425. border-bottom: 2px solid $ui-highlight-color;
  1426. color: $ui-highlight-color;
  1427. }
  1428. &:hover,
  1429. &:focus,
  1430. &:active {
  1431. @media screen and (min-width: 631px) {
  1432. background: lighten($ui-base-color, 14%);
  1433. transition: all 100ms linear;
  1434. }
  1435. }
  1436. span {
  1437. margin-left: 5px;
  1438. display: none;
  1439. }
  1440. }
  1441. @media screen and (min-width: 600px) {
  1442. .tabs-bar__link {
  1443. span {
  1444. display: inline;
  1445. }
  1446. }
  1447. }
  1448. @media screen and (min-width: 631px) {
  1449. .tabs-bar {
  1450. display: none;
  1451. }
  1452. }
  1453. .scrollable {
  1454. overflow-y: scroll;
  1455. overflow-x: hidden;
  1456. flex: 1 1 auto;
  1457. -webkit-overflow-scrolling: touch;
  1458. will-change: transform; // improves perf in mobile Chrome
  1459. &.optionally-scrollable {
  1460. overflow-y: auto;
  1461. }
  1462. @supports(display: grid) { // hack to fix Chrome <57
  1463. contain: strict;
  1464. }
  1465. }
  1466. .scrollable.fullscreen {
  1467. @supports(display: grid) { // hack to fix Chrome <57
  1468. contain: none;
  1469. }
  1470. }
  1471. .column-back-button {
  1472. background: lighten($ui-base-color, 4%);
  1473. color: $ui-highlight-color;
  1474. cursor: pointer;
  1475. flex: 0 0 auto;
  1476. font-size: 16px;
  1477. border: 0;
  1478. text-align: unset;
  1479. padding: 15px;
  1480. margin: 0;
  1481. z-index: 3;
  1482. &:hover {
  1483. text-decoration: underline;
  1484. }
  1485. }
  1486. .column-header__back-button {
  1487. background: lighten($ui-base-color, 4%);
  1488. border: 0;
  1489. font-family: inherit;
  1490. color: $ui-highlight-color;
  1491. cursor: pointer;
  1492. flex: 0 0 auto;
  1493. font-size: 16px;
  1494. padding: 0 5px 0 0;
  1495. z-index: 3;
  1496. &:hover {
  1497. text-decoration: underline;
  1498. }
  1499. &:last-child {
  1500. padding: 0 15px 0 0;
  1501. }
  1502. }
  1503. .column-back-button__icon {
  1504. display: inline-block;
  1505. margin-right: 5px;
  1506. }
  1507. .column-back-button--slim {
  1508. position: relative;
  1509. }
  1510. .column-back-button--slim-button {
  1511. cursor: pointer;
  1512. flex: 0 0 auto;
  1513. font-size: 16px;
  1514. padding: 15px;
  1515. position: absolute;
  1516. right: 0;
  1517. top: -48px;
  1518. }
  1519. .react-toggle {
  1520. display: inline-block;
  1521. position: relative;
  1522. cursor: pointer;
  1523. background-color: transparent;
  1524. border: 0;
  1525. padding: 0;
  1526. user-select: none;
  1527. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  1528. -webkit-tap-highlight-color: transparent;
  1529. }
  1530. .react-toggle-screenreader-only {
  1531. border: 0;
  1532. clip: rect(0 0 0 0);
  1533. height: 1px;
  1534. margin: -1px;
  1535. overflow: hidden;
  1536. padding: 0;
  1537. position: absolute;
  1538. width: 1px;
  1539. }
  1540. .react-toggle--disabled {
  1541. cursor: not-allowed;
  1542. opacity: 0.5;
  1543. transition: opacity 0.25s;
  1544. }
  1545. .react-toggle-track {
  1546. width: 50px;
  1547. height: 24px;
  1548. padding: 0;
  1549. border-radius: 30px;
  1550. background-color: $ui-base-color;
  1551. transition: all 0.2s ease;
  1552. }
  1553. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  1554. background-color: darken($ui-base-color, 10%);
  1555. }
  1556. .react-toggle--checked .react-toggle-track {
  1557. background-color: $ui-highlight-color;
  1558. }
  1559. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  1560. background-color: lighten($ui-highlight-color, 10%);
  1561. }
  1562. .react-toggle-track-check {
  1563. position: absolute;
  1564. width: 14px;
  1565. height: 10px;
  1566. top: 0;
  1567. bottom: 0;
  1568. margin-top: auto;
  1569. margin-bottom: auto;
  1570. line-height: 0;
  1571. left: 8px;
  1572. opacity: 0;
  1573. transition: opacity 0.25s ease;
  1574. }
  1575. .react-toggle--checked .react-toggle-track-check {
  1576. opacity: 1;
  1577. transition: opacity 0.25s ease;
  1578. }
  1579. .react-toggle-track-x {
  1580. position: absolute;
  1581. width: 10px;
  1582. height: 10px;
  1583. top: 0;
  1584. bottom: 0;
  1585. margin-top: auto;
  1586. margin-bottom: auto;
  1587. line-height: 0;
  1588. right: 10px;
  1589. opacity: 1;
  1590. transition: opacity 0.25s ease;
  1591. }
  1592. .react-toggle--checked .react-toggle-track-x {
  1593. opacity: 0;
  1594. }
  1595. .react-toggle-thumb {
  1596. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  1597. position: absolute;
  1598. top: 1px;
  1599. left: 1px;
  1600. width: 22px;
  1601. height: 22px;
  1602. border: 1px solid $ui-base-color;
  1603. border-radius: 50%;
  1604. background-color: darken($simple-background-color, 2%);
  1605. box-sizing: border-box;
  1606. transition: all 0.25s ease;
  1607. }
  1608. .react-toggle--checked .react-toggle-thumb {
  1609. left: 27px;
  1610. border-color: $ui-highlight-color;
  1611. }
  1612. .column-link {
  1613. background: lighten($ui-base-color, 8%);
  1614. color: $primary-text-color;
  1615. display: block;
  1616. font-size: 16px;
  1617. padding: 15px;
  1618. text-decoration: none;
  1619. &:hover {
  1620. background: lighten($ui-base-color, 11%);
  1621. }
  1622. }
  1623. .column-link__icon {
  1624. display: inline-block;
  1625. margin-right: 5px;
  1626. }
  1627. .column-subheading {
  1628. background: $ui-base-color;
  1629. color: $ui-base-lighter-color;
  1630. padding: 8px 20px;
  1631. font-size: 12px;
  1632. font-weight: 500;
  1633. text-transform: uppercase;
  1634. cursor: default;
  1635. }
  1636. .autosuggest-textarea,
  1637. .spoiler-input {
  1638. position: relative;
  1639. }
  1640. .autosuggest-textarea__textarea,
  1641. .spoiler-input__input {
  1642. display: block;
  1643. box-sizing: border-box;
  1644. width: 100%;
  1645. margin: 0;
  1646. color: $ui-base-color;
  1647. background: $simple-background-color;
  1648. padding: 10px;
  1649. font-family: inherit;
  1650. font-size: 14px;
  1651. resize: vertical;
  1652. border: 0;
  1653. outline: 0;
  1654. &:focus {
  1655. outline: 0;
  1656. }
  1657. @media screen and (max-width: 600px) {
  1658. font-size: 16px;
  1659. }
  1660. }
  1661. .spoiler-input__input {
  1662. border-radius: 4px;
  1663. }
  1664. .autosuggest-textarea__textarea {
  1665. min-height: 100px;
  1666. border-radius: 4px 4px 0 0;
  1667. padding-bottom: 0;
  1668. padding-right: 10px + 22px;
  1669. resize: none;
  1670. @media screen and (max-width: 600px) {
  1671. height: 100px !important; // prevent auto-resize textarea
  1672. resize: vertical;
  1673. }
  1674. }
  1675. .autosuggest-textarea__suggestions {
  1676. box-sizing: border-box;
  1677. display: none;
  1678. position: absolute;
  1679. top: 100%;
  1680. width: 100%;
  1681. z-index: 99;
  1682. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  1683. background: $ui-secondary-color;
  1684. border-radius: 0 0 4px 4px;
  1685. color: $ui-base-color;
  1686. font-size: 14px;
  1687. padding: 6px;
  1688. &.autosuggest-textarea__suggestions--visible {
  1689. display: block;
  1690. }
  1691. }
  1692. .autosuggest-textarea__suggestions__item {
  1693. padding: 10px;
  1694. cursor: pointer;
  1695. border-radius: 4px;
  1696. &:hover,
  1697. &:focus,
  1698. &:active,
  1699. &.selected {
  1700. background: darken($ui-secondary-color, 10%);
  1701. }
  1702. }
  1703. .autosuggest-account,
  1704. .autosuggest-emoji {
  1705. display: flex;
  1706. flex-direction: row;
  1707. align-items: center;
  1708. justify-content: flex-start;
  1709. line-height: 18px;
  1710. font-size: 14px;
  1711. }
  1712. .autosuggest-account-icon,
  1713. .autosuggest-emoji img {
  1714. display: block;
  1715. margin-right: 8px;
  1716. width: 16px;
  1717. height: 16px;
  1718. }
  1719. .autosuggest-account .display-name__account {
  1720. color: lighten($ui-base-color, 36%);
  1721. }
  1722. .character-counter__wrapper {
  1723. line-height: 36px;
  1724. margin: 0 16px 0 8px;
  1725. padding-top: 10px;
  1726. }
  1727. .character-counter {
  1728. cursor: default;
  1729. font-size: 16px;
  1730. }
  1731. .character-counter--over {
  1732. color: $warning-red;
  1733. }
  1734. .getting-started__wrapper {
  1735. position: relative;
  1736. overflow-y: auto;
  1737. }
  1738. .getting-started__footer {
  1739. display: flex;
  1740. flex-direction: column;
  1741. }
  1742. .getting-started {
  1743. box-sizing: border-box;
  1744. padding-bottom: 235px;
  1745. background: url('../images/mastodon-getting-started.png') no-repeat 0 100%;
  1746. flex: 1 0 auto;
  1747. p {
  1748. color: $ui-secondary-color;
  1749. }
  1750. a {
  1751. color: $ui-base-lighter-color;
  1752. }
  1753. }
  1754. .setting-text {
  1755. color: $ui-primary-color;
  1756. background: transparent;
  1757. border: none;
  1758. border-bottom: 2px solid $ui-primary-color;
  1759. box-sizing: border-box;
  1760. display: block;
  1761. font-family: inherit;
  1762. margin-bottom: 10px;
  1763. padding: 7px 0;
  1764. width: 100%;
  1765. &:focus,
  1766. &:active {
  1767. color: $primary-text-color;
  1768. border-bottom-color: $ui-highlight-color;
  1769. }
  1770. @media screen and (max-width: 600px) {
  1771. font-size: 16px;
  1772. }
  1773. &.light {
  1774. color: $ui-base-color;
  1775. border-bottom: 2px solid lighten($ui-base-color, 27%);
  1776. &:focus,
  1777. &:active {
  1778. color: $ui-base-color;
  1779. border-bottom-color: $ui-highlight-color;
  1780. }
  1781. }
  1782. }
  1783. @import 'boost';
  1784. button.icon-button i.fa-retweet {
  1785. background-position: 0 0;
  1786. height: 19px;
  1787. transition: background-position 0.9s steps(10);
  1788. transition-duration: 0s;
  1789. vertical-align: middle;
  1790. width: 22px;
  1791. &::before {
  1792. display: none !important;
  1793. }
  1794. }
  1795. button.icon-button.active i.fa-retweet {
  1796. transition-duration: 0.9s;
  1797. background-position: 0 100%;
  1798. }
  1799. .status-card {
  1800. display: flex;
  1801. cursor: pointer;
  1802. font-size: 14px;
  1803. border: 1px solid lighten($ui-base-color, 8%);
  1804. border-radius: 4px;
  1805. color: $ui-base-lighter-color;
  1806. margin-top: 14px;
  1807. text-decoration: none;
  1808. overflow: hidden;
  1809. &:hover {
  1810. background: lighten($ui-base-color, 8%);
  1811. }
  1812. }
  1813. .status-card-video,
  1814. .status-card-rich,
  1815. .status-card-photo {
  1816. margin-top: 14px;
  1817. overflow: hidden;
  1818. iframe {
  1819. width: 100%;
  1820. height: auto;
  1821. }
  1822. }
  1823. .status-card-photo {
  1824. display: block;
  1825. text-decoration: none;
  1826. img {
  1827. display: block;
  1828. width: 100%;
  1829. height: auto;
  1830. margin: 0;
  1831. }
  1832. }
  1833. .status-card-video {
  1834. iframe {
  1835. width: 100%;
  1836. height: 100%;
  1837. }
  1838. }
  1839. .status-card__title {
  1840. display: block;
  1841. font-weight: 500;
  1842. margin-bottom: 5px;
  1843. color: $ui-primary-color;
  1844. overflow: hidden;
  1845. text-overflow: ellipsis;
  1846. white-space: nowrap;
  1847. }
  1848. .status-card__content {
  1849. flex: 1 1 auto;
  1850. overflow: hidden;
  1851. padding: 14px 14px 14px 8px;
  1852. }
  1853. .status-card__description {
  1854. color: $ui-primary-color;
  1855. }
  1856. .status-card__host {
  1857. display: block;
  1858. margin-top: 5px;
  1859. font-size: 13px;
  1860. }
  1861. .status-card__image {
  1862. flex: 0 0 100px;
  1863. background: lighten($ui-base-color, 8%);
  1864. }
  1865. .status-card.horizontal {
  1866. display: block;
  1867. .status-card__image {
  1868. width: 100%;
  1869. }
  1870. .status-card__image-image {
  1871. border-radius: 4px 4px 0 0;
  1872. }
  1873. }
  1874. .status-card__image-image {
  1875. border-radius: 4px 0 0 4px;
  1876. display: block;
  1877. height: auto;
  1878. margin: 0;
  1879. width: 100%;
  1880. }
  1881. .load-more {
  1882. display: block;
  1883. color: $ui-base-lighter-color;
  1884. background-color: transparent;
  1885. border: 0;
  1886. font-size: inherit;
  1887. text-align: center;
  1888. line-height: inherit;
  1889. margin: 0;
  1890. padding: 15px;
  1891. width: 100%;
  1892. clear: both;
  1893. &:hover {
  1894. background: lighten($ui-base-color, 2%);
  1895. }
  1896. }
  1897. .missing-indicator {
  1898. text-align: center;
  1899. font-size: 16px;
  1900. font-weight: 500;
  1901. color: lighten($ui-base-color, 16%);
  1902. background: $ui-base-color;
  1903. cursor: default;
  1904. display: flex;
  1905. flex: 1 1 auto;
  1906. align-items: center;
  1907. justify-content: center;
  1908. & > div {
  1909. background: url('../images/mastodon-not-found.png') no-repeat center -50px;
  1910. padding-top: 210px;
  1911. width: 100%;
  1912. }
  1913. }
  1914. .column-header__wrapper {
  1915. position: relative;
  1916. flex: 0 0 auto;
  1917. &.active {
  1918. &::before {
  1919. display: block;
  1920. content: "";
  1921. position: absolute;
  1922. top: 35px;
  1923. left: 0;
  1924. right: 0;
  1925. margin: 0 auto;
  1926. width: 60%;
  1927. pointer-events: none;
  1928. height: 28px;
  1929. z-index: 1;
  1930. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  1931. }
  1932. }
  1933. }
  1934. .column-header {
  1935. display: flex;
  1936. padding: 15px;
  1937. font-size: 16px;
  1938. background: lighten($ui-base-color, 4%);
  1939. flex: 0 0 auto;
  1940. cursor: pointer;
  1941. position: relative;
  1942. z-index: 2;
  1943. outline: 0;
  1944. &.active {
  1945. box-shadow: 0 1px 0 rgba($ui-highlight-color, 0.3);
  1946. .column-header__icon {
  1947. color: $ui-highlight-color;
  1948. text-shadow: 0 0 10px rgba($ui-highlight-color, 0.4);
  1949. }
  1950. }
  1951. &:focus,
  1952. &:active {
  1953. outline: 0;
  1954. }
  1955. }
  1956. .column-header__buttons {
  1957. height: 48px;
  1958. display: flex;
  1959. margin: -15px;
  1960. margin-left: 0;
  1961. }
  1962. .column-header__button {
  1963. background: lighten($ui-base-color, 4%);
  1964. border: 0;
  1965. color: $ui-primary-color;
  1966. cursor: pointer;
  1967. font-size: 16px;
  1968. padding: 0 15px;
  1969. &:hover {
  1970. color: lighten($ui-primary-color, 7%);
  1971. }
  1972. &.active {
  1973. color: $primary-text-color;
  1974. background: lighten($ui-base-color, 8%);
  1975. &:hover {
  1976. color: $primary-text-color;
  1977. background: lighten($ui-base-color, 8%);
  1978. }
  1979. }
  1980. }
  1981. .column-header__collapsible {
  1982. max-height: 70vh;
  1983. overflow: hidden;
  1984. overflow-y: auto;
  1985. color: $ui-primary-color;
  1986. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  1987. opacity: 1;
  1988. &.collapsed {
  1989. max-height: 0;
  1990. opacity: 0.5;
  1991. }
  1992. &.animating {
  1993. overflow-y: hidden;
  1994. }
  1995. }
  1996. .column-header__collapsible-inner {
  1997. background: lighten($ui-base-color, 8%);
  1998. padding: 15px;
  1999. }
  2000. .column-header__setting-btn {
  2001. &:hover {
  2002. color: lighten($ui-primary-color, 4%);
  2003. text-decoration: underline;
  2004. }
  2005. }
  2006. .column-header__setting-arrows {
  2007. float: right;
  2008. .column-header__setting-btn {
  2009. padding: 0 10px;
  2010. &:last-child {
  2011. padding-right: 0;
  2012. }
  2013. }
  2014. }
  2015. .column-header__title {
  2016. display: inline-block;
  2017. text-overflow: ellipsis;
  2018. overflow: hidden;
  2019. white-space: nowrap;
  2020. flex: 1;
  2021. }
  2022. .text-btn {
  2023. display: inline-block;
  2024. padding: 0;
  2025. font-family: inherit;
  2026. font-size: inherit;
  2027. color: inherit;
  2028. border: 0;
  2029. background: transparent;
  2030. cursor: pointer;
  2031. }
  2032. .column-header__icon {
  2033. display: inline-block;
  2034. margin-right: 5px;
  2035. }
  2036. .loading-indicator {
  2037. color: lighten($ui-base-color, 26%);
  2038. font-size: 12px;
  2039. font-weight: 400;
  2040. text-transform: uppercase;
  2041. overflow: visible;
  2042. position: absolute;
  2043. top: 50%;
  2044. left: 50%;
  2045. transform: translate(-50%, -50%);
  2046. span {
  2047. display: block;
  2048. float: left;
  2049. margin-left: 50%;
  2050. transform: translateX(-50%);
  2051. margin: 82px 0 0 50%;
  2052. white-space: nowrap;
  2053. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  2054. }
  2055. }
  2056. .loading-indicator__figure {
  2057. position: absolute;
  2058. top: 50%;
  2059. left: 50%;
  2060. transform: translate(-50%, -50%);
  2061. width: 0;
  2062. height: 0;
  2063. box-sizing: border-box;
  2064. border: 0 solid lighten($ui-base-color, 26%);
  2065. border-radius: 50%;
  2066. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  2067. }
  2068. @keyframes loader-figure {
  2069. 0% {
  2070. width: 0;
  2071. height: 0;
  2072. background-color: lighten($ui-base-color, 26%);
  2073. }
  2074. 29% {
  2075. background-color: lighten($ui-base-color, 26%);
  2076. }
  2077. 30% {
  2078. width: 42px;
  2079. height: 42px;
  2080. background-color: transparent;
  2081. border-width: 21px;
  2082. opacity: 1;
  2083. }
  2084. 100% {
  2085. width: 42px;
  2086. height: 42px;
  2087. border-width: 0;
  2088. opacity: 0;
  2089. background-color: transparent;
  2090. }
  2091. }
  2092. @keyframes loader-label {
  2093. 0% { opacity: 0.25; }
  2094. 30% { opacity: 1; }
  2095. 100% { opacity: 0.25; }
  2096. }
  2097. .video-error-cover {
  2098. align-items: center;
  2099. background: $base-overlay-background;
  2100. color: $primary-text-color;
  2101. cursor: pointer;
  2102. display: flex;
  2103. flex-direction: column;
  2104. height: 100%;
  2105. justify-content: center;
  2106. margin-top: 8px;
  2107. position: relative;
  2108. text-align: center;
  2109. z-index: 100;
  2110. }
  2111. .media-spoiler {
  2112. background: $base-overlay-background;
  2113. color: $ui-primary-color;
  2114. border: 0;
  2115. width: 100%;
  2116. height: 100%;
  2117. &:hover,
  2118. &:active,
  2119. &:focus {
  2120. color: lighten($ui-primary-color, 8%);
  2121. }
  2122. }
  2123. .media-spoiler__warning {
  2124. display: block;
  2125. font-size: 14px;
  2126. }
  2127. .media-spoiler__trigger {
  2128. display: block;
  2129. font-size: 11px;
  2130. font-weight: 500;
  2131. }
  2132. .spoiler-button {
  2133. display: none;
  2134. left: 4px;
  2135. position: absolute;
  2136. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  2137. top: 4px;
  2138. z-index: 100;
  2139. &.spoiler-button--visible {
  2140. display: block;
  2141. }
  2142. }
  2143. .modal-container--preloader {
  2144. background: lighten($ui-base-color, 8%);
  2145. }
  2146. .account--panel {
  2147. background: lighten($ui-base-color, 4%);
  2148. border-top: 1px solid lighten($ui-base-color, 8%);
  2149. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2150. display: flex;
  2151. flex-direction: row;
  2152. padding: 10px 0;
  2153. }
  2154. .account--panel__button,
  2155. .detailed-status__button {
  2156. flex: 1 1 auto;
  2157. text-align: center;
  2158. }
  2159. .column-settings__outer {
  2160. background: lighten($ui-base-color, 8%);
  2161. padding: 15px;
  2162. }
  2163. .column-settings__section {
  2164. color: $ui-primary-color;
  2165. cursor: default;
  2166. display: block;
  2167. font-weight: 500;
  2168. margin-bottom: 10px;
  2169. }
  2170. .column-settings__row {
  2171. .text-btn {
  2172. margin-bottom: 15px;
  2173. }
  2174. }
  2175. .modal-container__nav {
  2176. align-items: center;
  2177. background: rgba($base-overlay-background, 0.5);
  2178. box-sizing: border-box;
  2179. border: 0;
  2180. color: $primary-text-color;
  2181. cursor: pointer;
  2182. display: flex;
  2183. font-size: 24px;
  2184. height: 100%;
  2185. padding: 30px 15px;
  2186. position: absolute;
  2187. top: 0;
  2188. }
  2189. .modal-container__nav--left {
  2190. left: -61px;
  2191. }
  2192. .modal-container__nav--right {
  2193. right: -61px;
  2194. }
  2195. .account--follows-info {
  2196. color: $primary-text-color;
  2197. position: absolute;
  2198. top: 10px;
  2199. left: 10px;
  2200. opacity: 0.7;
  2201. display: inline-block;
  2202. vertical-align: top;
  2203. background-color: rgba($base-overlay-background, 0.4);
  2204. text-transform: uppercase;
  2205. font-size: 11px;
  2206. font-weight: 500;
  2207. padding: 4px;
  2208. border-radius: 4px;
  2209. }
  2210. .account--action-button {
  2211. position: absolute;
  2212. top: 10px;
  2213. right: 20px;
  2214. }
  2215. .setting-toggle {
  2216. display: block;
  2217. line-height: 24px;
  2218. }
  2219. .setting-toggle__label,
  2220. .setting-meta__label {
  2221. color: $ui-primary-color;
  2222. display: inline-block;
  2223. margin-bottom: 14px;
  2224. margin-left: 8px;
  2225. vertical-align: middle;
  2226. }
  2227. .setting-meta__label {
  2228. color: $ui-primary-color;
  2229. float: right;
  2230. }
  2231. .empty-column-indicator,
  2232. .error-column {
  2233. color: lighten($ui-base-color, 20%);
  2234. background: $ui-base-color;
  2235. text-align: center;
  2236. padding: 20px;
  2237. font-size: 15px;
  2238. font-weight: 400;
  2239. cursor: default;
  2240. display: flex;
  2241. flex: 1 1 auto;
  2242. align-items: center;
  2243. justify-content: center;
  2244. @supports(display: grid) { // hack to fix Chrome <57
  2245. contain: strict;
  2246. }
  2247. a {
  2248. color: $ui-highlight-color;
  2249. text-decoration: none;
  2250. &:hover {
  2251. text-decoration: underline;
  2252. }
  2253. }
  2254. }
  2255. .error-column {
  2256. flex-direction: column;
  2257. }
  2258. @keyframes heartbeat {
  2259. from {
  2260. transform: scale(1);
  2261. transform-origin: center center;
  2262. animation-timing-function: ease-out;
  2263. }
  2264. 10% {
  2265. transform: scale(0.91);
  2266. animation-timing-function: ease-in;
  2267. }
  2268. 17% {
  2269. transform: scale(0.98);
  2270. animation-timing-function: ease-out;
  2271. }
  2272. 33% {
  2273. transform: scale(0.87);
  2274. animation-timing-function: ease-in;
  2275. }
  2276. 45% {
  2277. transform: scale(1);
  2278. animation-timing-function: ease-out;
  2279. }
  2280. }
  2281. .pulse-loading {
  2282. animation: heartbeat 1.5s ease-in-out infinite both;
  2283. }
  2284. .emoji-picker-dropdown__menu {
  2285. background: $simple-background-color;
  2286. position: absolute;
  2287. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  2288. border-radius: 4px;
  2289. margin-top: 5px;
  2290. .emoji-mart-scroll {
  2291. transition: opacity 200ms ease;
  2292. }
  2293. &.selecting .emoji-mart-scroll {
  2294. opacity: 0.5;
  2295. }
  2296. }
  2297. .emoji-picker-dropdown__modifiers {
  2298. position: absolute;
  2299. top: 60px;
  2300. right: 11px;
  2301. cursor: pointer;
  2302. }
  2303. .emoji-picker-dropdown__modifiers__menu {
  2304. position: absolute;
  2305. z-index: 4;
  2306. top: -4px;
  2307. left: -8px;
  2308. background: $simple-background-color;
  2309. border-radius: 4px;
  2310. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  2311. overflow: hidden;
  2312. button {
  2313. display: block;
  2314. cursor: pointer;
  2315. border: 0;
  2316. padding: 4px 8px;
  2317. background: transparent;
  2318. &:hover,
  2319. &:focus,
  2320. &:active {
  2321. background: rgba($ui-secondary-color, 0.4);
  2322. }
  2323. }
  2324. .emoji-mart-emoji {
  2325. height: 22px;
  2326. }
  2327. }
  2328. .emoji-mart-emoji {
  2329. span {
  2330. background-repeat: no-repeat;
  2331. }
  2332. }
  2333. .upload-area {
  2334. align-items: center;
  2335. background: rgba($base-overlay-background, 0.8);
  2336. display: flex;
  2337. height: 100%;
  2338. justify-content: center;
  2339. left: 0;
  2340. opacity: 0;
  2341. position: absolute;
  2342. top: 0;
  2343. visibility: hidden;
  2344. width: 100%;
  2345. z-index: 2000;
  2346. * {
  2347. pointer-events: none;
  2348. }
  2349. }
  2350. .upload-area__drop {
  2351. width: 320px;
  2352. height: 160px;
  2353. display: flex;
  2354. box-sizing: border-box;
  2355. position: relative;
  2356. padding: 8px;
  2357. }
  2358. .upload-area__background {
  2359. position: absolute;
  2360. top: 0;
  2361. right: 0;
  2362. bottom: 0;
  2363. left: 0;
  2364. z-index: -1;
  2365. border-radius: 4px;
  2366. background: $ui-base-color;
  2367. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2368. }
  2369. .upload-area__content {
  2370. flex: 1;
  2371. display: flex;
  2372. align-items: center;
  2373. justify-content: center;
  2374. color: $ui-secondary-color;
  2375. font-size: 18px;
  2376. font-weight: 500;
  2377. border: 2px dashed $ui-base-lighter-color;
  2378. border-radius: 4px;
  2379. }
  2380. .upload-progress {
  2381. padding: 10px;
  2382. color: $ui-base-lighter-color;
  2383. overflow: hidden;
  2384. display: flex;
  2385. .fa {
  2386. font-size: 34px;
  2387. margin-right: 10px;
  2388. }
  2389. span {
  2390. font-size: 12px;
  2391. text-transform: uppercase;
  2392. font-weight: 500;
  2393. display: block;
  2394. }
  2395. }
  2396. .upload-progess__message {
  2397. flex: 1 1 auto;
  2398. }
  2399. .upload-progress__backdrop {
  2400. width: 100%;
  2401. height: 6px;
  2402. border-radius: 6px;
  2403. background: $ui-base-lighter-color;
  2404. position: relative;
  2405. margin-top: 5px;
  2406. }
  2407. .upload-progress__tracker {
  2408. position: absolute;
  2409. left: 0;
  2410. top: 0;
  2411. height: 6px;
  2412. background: $ui-highlight-color;
  2413. border-radius: 6px;
  2414. }
  2415. .emoji-button {
  2416. display: block;
  2417. font-size: 24px;
  2418. line-height: 24px;
  2419. margin-left: 2px;
  2420. width: 24px;
  2421. outline: 0;
  2422. cursor: pointer;
  2423. &:active,
  2424. &:focus {
  2425. outline: 0 !important;
  2426. }
  2427. img {
  2428. filter: grayscale(100%);
  2429. opacity: 0.8;
  2430. display: block;
  2431. margin: 0;
  2432. width: 22px;
  2433. height: 22px;
  2434. margin-top: 2px;
  2435. }
  2436. &:hover,
  2437. &:active,
  2438. &:focus {
  2439. img {
  2440. opacity: 1;
  2441. filter: none;
  2442. }
  2443. }
  2444. }
  2445. .dropdown--active .emoji-button img {
  2446. opacity: 1;
  2447. filter: none;
  2448. }
  2449. .privacy-dropdown__dropdown {
  2450. position: absolute;
  2451. background: $simple-background-color;
  2452. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  2453. border-radius: 4px;
  2454. margin-left: 40px;
  2455. overflow: hidden;
  2456. }
  2457. .privacy-dropdown__option {
  2458. color: $ui-base-color;
  2459. padding: 10px;
  2460. cursor: pointer;
  2461. display: flex;
  2462. &:hover,
  2463. &.active {
  2464. background: $ui-highlight-color;
  2465. color: $primary-text-color;
  2466. .privacy-dropdown__option__content {
  2467. color: $primary-text-color;
  2468. strong {
  2469. color: $primary-text-color;
  2470. }
  2471. }
  2472. }
  2473. &.active:hover {
  2474. background: lighten($ui-highlight-color, 4%);
  2475. }
  2476. }
  2477. .privacy-dropdown__option__icon {
  2478. display: flex;
  2479. align-items: center;
  2480. justify-content: center;
  2481. margin-right: 10px;
  2482. }
  2483. .privacy-dropdown__option__content {
  2484. flex: 1 1 auto;
  2485. color: darken($ui-primary-color, 24%);
  2486. strong {
  2487. font-weight: 500;
  2488. display: block;
  2489. color: $ui-base-color;
  2490. }
  2491. }
  2492. .privacy-dropdown.active {
  2493. .privacy-dropdown__value {
  2494. background: $simple-background-color;
  2495. border-radius: 4px 4px 0 0;
  2496. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2497. .icon-button {
  2498. transition: none;
  2499. }
  2500. &.active {
  2501. background: $ui-highlight-color;
  2502. .icon-button {
  2503. color: $primary-text-color;
  2504. }
  2505. }
  2506. }
  2507. .privacy-dropdown__dropdown {
  2508. display: block;
  2509. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2510. }
  2511. }
  2512. .search {
  2513. position: relative;
  2514. }
  2515. .search__input {
  2516. outline: 0;
  2517. box-sizing: border-box;
  2518. display: block;
  2519. width: 100%;
  2520. border: none;
  2521. padding: 10px;
  2522. padding-right: 30px;
  2523. font-family: inherit;
  2524. background: $ui-base-color;
  2525. color: $ui-primary-color;
  2526. font-size: 14px;
  2527. margin: 0;
  2528. &::-moz-focus-inner {
  2529. border: 0;
  2530. }
  2531. &::-moz-focus-inner,
  2532. &:focus,
  2533. &:active {
  2534. outline: 0 !important;
  2535. }
  2536. &:focus {
  2537. background: lighten($ui-base-color, 4%);
  2538. }
  2539. @media screen and (max-width: 600px) {
  2540. font-size: 16px;
  2541. }
  2542. }
  2543. .search__icon {
  2544. .fa {
  2545. position: absolute;
  2546. top: 10px;
  2547. right: 10px;
  2548. z-index: 2;
  2549. display: inline-block;
  2550. opacity: 0;
  2551. transition: all 100ms linear;
  2552. font-size: 18px;
  2553. width: 18px;
  2554. height: 18px;
  2555. color: $ui-secondary-color;
  2556. cursor: default;
  2557. pointer-events: none;
  2558. &.active {
  2559. pointer-events: auto;
  2560. opacity: 0.3;
  2561. }
  2562. }
  2563. .fa-search {
  2564. transform: rotate(90deg);
  2565. &.active {
  2566. pointer-events: none;
  2567. transform: rotate(0deg);
  2568. }
  2569. }
  2570. .fa-times-circle {
  2571. top: 11px;
  2572. transform: rotate(0deg);
  2573. cursor: pointer;
  2574. &.active {
  2575. transform: rotate(90deg);
  2576. }
  2577. &:hover {
  2578. color: $primary-text-color;
  2579. }
  2580. }
  2581. }
  2582. .search-results__header {
  2583. color: $ui-base-lighter-color;
  2584. background: lighten($ui-base-color, 2%);
  2585. border-bottom: 1px solid darken($ui-base-color, 4%);
  2586. padding: 15px 10px;
  2587. font-size: 14px;
  2588. font-weight: 500;
  2589. }
  2590. .search-results__hashtag {
  2591. display: block;
  2592. padding: 10px;
  2593. color: $ui-secondary-color;
  2594. text-decoration: none;
  2595. &:hover,
  2596. &:active,
  2597. &:focus {
  2598. color: lighten($ui-secondary-color, 4%);
  2599. text-decoration: underline;
  2600. }
  2601. }
  2602. .modal-root {
  2603. transition: opacity 0.3s linear;
  2604. will-change: opacity;
  2605. z-index: 9999;
  2606. }
  2607. .modal-root__overlay {
  2608. position: absolute;
  2609. top: 0;
  2610. left: 0;
  2611. right: 0;
  2612. bottom: 0;
  2613. background: rgba($base-overlay-background, 0.7);
  2614. }
  2615. .modal-root__container {
  2616. position: absolute;
  2617. top: 0;
  2618. left: 0;
  2619. width: 100%;
  2620. height: 100%;
  2621. display: flex;
  2622. flex-direction: column;
  2623. align-items: center;
  2624. justify-content: center;
  2625. align-content: space-around;
  2626. z-index: 9999;
  2627. pointer-events: none;
  2628. user-select: none;
  2629. }
  2630. .modal-root__modal {
  2631. pointer-events: auto;
  2632. display: flex;
  2633. z-index: 9999;
  2634. }
  2635. .media-modal {
  2636. max-width: 80vw;
  2637. max-height: 80vh;
  2638. position: relative;
  2639. .extended-video-player,
  2640. img,
  2641. canvas,
  2642. video {
  2643. max-width: 80vw;
  2644. max-height: 80vh;
  2645. width: auto;
  2646. height: auto;
  2647. margin: auto;
  2648. }
  2649. .extended-video-player,
  2650. video {
  2651. display: flex;
  2652. width: 80vw;
  2653. height: 80vh;
  2654. }
  2655. img,
  2656. canvas {
  2657. display: block;
  2658. background: url('../images/void.png') repeat;
  2659. object-fit: contain;
  2660. }
  2661. .react-swipeable-view-container {
  2662. max-width: 80vw;
  2663. }
  2664. }
  2665. .media-modal__content {
  2666. background: $base-overlay-background;
  2667. }
  2668. .media-modal__pagination {
  2669. width: 100%;
  2670. text-align: center;
  2671. position: absolute;
  2672. left: 0;
  2673. bottom: -40px;
  2674. }
  2675. .media-modal__page-dot {
  2676. display: inline-block;
  2677. }
  2678. .media-modal__button {
  2679. background-color: $white;
  2680. height: 12px;
  2681. width: 12px;
  2682. border-radius: 6px;
  2683. margin: 10px;
  2684. padding: 0;
  2685. border: 0;
  2686. font-size: 0;
  2687. }
  2688. .media-modal__button--active {
  2689. background-color: $ui-highlight-color;
  2690. }
  2691. .media-modal__close {
  2692. position: absolute;
  2693. right: 4px;
  2694. top: 4px;
  2695. z-index: 100;
  2696. }
  2697. .onboarding-modal,
  2698. .error-modal,
  2699. .embed-modal {
  2700. background: $ui-secondary-color;
  2701. color: $ui-base-color;
  2702. border-radius: 8px;
  2703. overflow: hidden;
  2704. display: flex;
  2705. flex-direction: column;
  2706. }
  2707. .onboarding-modal__pager {
  2708. height: 80vh;
  2709. width: 80vw;
  2710. max-width: 520px;
  2711. max-height: 420px;
  2712. .react-swipeable-view-container > div {
  2713. width: 100%;
  2714. height: 100%;
  2715. box-sizing: border-box;
  2716. padding: 25px;
  2717. display: none;
  2718. flex-direction: column;
  2719. align-items: center;
  2720. justify-content: center;
  2721. display: flex;
  2722. user-select: text;
  2723. }
  2724. }
  2725. .error-modal__body {
  2726. height: 80vh;
  2727. width: 80vw;
  2728. max-width: 520px;
  2729. max-height: 420px;
  2730. position: relative;
  2731. & > div {
  2732. position: absolute;
  2733. top: 0;
  2734. left: 0;
  2735. width: 100%;
  2736. height: 100%;
  2737. box-sizing: border-box;
  2738. padding: 25px;
  2739. display: none;
  2740. flex-direction: column;
  2741. align-items: center;
  2742. justify-content: center;
  2743. display: flex;
  2744. opacity: 0;
  2745. user-select: text;
  2746. }
  2747. }
  2748. .error-modal__body {
  2749. display: flex;
  2750. flex-direction: column;
  2751. justify-content: center;
  2752. align-items: center;
  2753. text-align: center;
  2754. }
  2755. @media screen and (max-width: 550px) {
  2756. .onboarding-modal {
  2757. width: 100%;
  2758. height: 100%;
  2759. border-radius: 0;
  2760. }
  2761. .onboarding-modal__pager {
  2762. width: 100%;
  2763. height: auto;
  2764. max-width: none;
  2765. max-height: none;
  2766. flex: 1 1 auto;
  2767. }
  2768. }
  2769. .onboarding-modal__paginator,
  2770. .error-modal__footer {
  2771. flex: 0 0 auto;
  2772. background: darken($ui-secondary-color, 8%);
  2773. display: flex;
  2774. padding: 25px;
  2775. & > div {
  2776. min-width: 33px;
  2777. }
  2778. .onboarding-modal__nav,
  2779. .error-modal__nav {
  2780. color: darken($ui-secondary-color, 34%);
  2781. background-color: transparent;
  2782. border: 0;
  2783. font-size: 14px;
  2784. font-weight: 500;
  2785. padding: 0;
  2786. line-height: inherit;
  2787. height: auto;
  2788. &:hover,
  2789. &:focus,
  2790. &:active {
  2791. color: darken($ui-secondary-color, 38%);
  2792. }
  2793. &.onboarding-modal__done,
  2794. &.onboarding-modal__next {
  2795. color: $ui-highlight-color;
  2796. }
  2797. }
  2798. }
  2799. .error-modal__footer {
  2800. justify-content: center;
  2801. }
  2802. .onboarding-modal__dots {
  2803. flex: 1 1 auto;
  2804. display: flex;
  2805. align-items: center;
  2806. justify-content: center;
  2807. }
  2808. .onboarding-modal__dot {
  2809. width: 14px;
  2810. height: 14px;
  2811. border-radius: 14px;
  2812. background: darken($ui-secondary-color, 16%);
  2813. margin: 0 3px;
  2814. cursor: pointer;
  2815. &:hover {
  2816. background: darken($ui-secondary-color, 18%);
  2817. }
  2818. &.active {
  2819. cursor: default;
  2820. background: darken($ui-secondary-color, 24%);
  2821. }
  2822. }
  2823. .onboarding-modal__page__wrapper {
  2824. pointer-events: none;
  2825. &.onboarding-modal__page__wrapper--active {
  2826. pointer-events: auto;
  2827. }
  2828. }
  2829. .onboarding-modal__page {
  2830. cursor: default;
  2831. line-height: 21px;
  2832. h1 {
  2833. font-size: 18px;
  2834. font-weight: 500;
  2835. color: $ui-base-color;
  2836. margin-bottom: 20px;
  2837. }
  2838. a {
  2839. color: $ui-highlight-color;
  2840. &:hover,
  2841. &:focus,
  2842. &:active {
  2843. color: lighten($ui-highlight-color, 4%);
  2844. }
  2845. }
  2846. p {
  2847. font-size: 16px;
  2848. color: lighten($ui-base-color, 8%);
  2849. margin-top: 10px;
  2850. margin-bottom: 10px;
  2851. &:last-child {
  2852. margin-bottom: 0;
  2853. }
  2854. strong {
  2855. font-weight: 500;
  2856. background: $ui-base-color;
  2857. color: $ui-secondary-color;
  2858. border-radius: 4px;
  2859. font-size: 14px;
  2860. padding: 3px 6px;
  2861. }
  2862. }
  2863. }
  2864. .onboarding-modal__page-one {
  2865. display: flex;
  2866. align-items: center;
  2867. }
  2868. .onboarding-modal__page-one__elephant-friend {
  2869. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2870. width: 155px;
  2871. height: 193px;
  2872. margin-right: 15px;
  2873. }
  2874. @media screen and (max-width: 400px) {
  2875. .onboarding-modal__page-one {
  2876. flex-direction: column;
  2877. align-items: normal;
  2878. }
  2879. .onboarding-modal__page-one__elephant-friend {
  2880. width: 100%;
  2881. height: 30vh;
  2882. max-height: 160px;
  2883. margin-bottom: 5vh;
  2884. }
  2885. }
  2886. .onboarding-modal__page-two,
  2887. .onboarding-modal__page-three,
  2888. .onboarding-modal__page-four,
  2889. .onboarding-modal__page-five {
  2890. p {
  2891. text-align: left;
  2892. }
  2893. .figure {
  2894. background: darken($ui-base-color, 8%);
  2895. color: $ui-secondary-color;
  2896. margin-bottom: 20px;
  2897. border-radius: 4px;
  2898. padding: 10px;
  2899. text-align: center;
  2900. font-size: 14px;
  2901. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2902. .onboarding-modal__image {
  2903. border-radius: 4px;
  2904. margin-bottom: 10px;
  2905. }
  2906. &.non-interactive {
  2907. pointer-events: none;
  2908. text-align: left;
  2909. }
  2910. }
  2911. }
  2912. .onboarding-modal__page-four__columns {
  2913. .row {
  2914. display: flex;
  2915. margin-bottom: 20px;
  2916. & > div {
  2917. flex: 1 1 0;
  2918. margin: 0 10px;
  2919. &:first-child {
  2920. margin-left: 0;
  2921. }
  2922. &:last-child {
  2923. margin-right: 0;
  2924. }
  2925. p {
  2926. text-align: center;
  2927. }
  2928. }
  2929. &:last-child {
  2930. margin-bottom: 0;
  2931. }
  2932. }
  2933. .column-header {
  2934. color: $primary-text-color;
  2935. }
  2936. }
  2937. @media screen and (max-width: 320px) and (max-height: 600px) {
  2938. .onboarding-modal__page p {
  2939. font-size: 14px;
  2940. line-height: 20px;
  2941. }
  2942. .onboarding-modal__page-two .figure,
  2943. .onboarding-modal__page-three .figure,
  2944. .onboarding-modal__page-four .figure,
  2945. .onboarding-modal__page-five .figure {
  2946. font-size: 12px;
  2947. margin-bottom: 10px;
  2948. }
  2949. .onboarding-modal__page-four__columns .row {
  2950. margin-bottom: 10px;
  2951. }
  2952. .onboarding-modal__page-four__columns .column-header {
  2953. padding: 5px;
  2954. font-size: 12px;
  2955. }
  2956. }
  2957. .onboarding-modal__image {
  2958. border-radius: 8px;
  2959. width: 70vw;
  2960. max-width: 450px;
  2961. max-height: auto;
  2962. display: block;
  2963. margin: auto;
  2964. margin-bottom: 20px;
  2965. }
  2966. .onboard-sliders {
  2967. display: inline-block;
  2968. max-width: 30px;
  2969. max-height: auto;
  2970. margin-left: 10px;
  2971. }
  2972. .boost-modal,
  2973. .confirmation-modal,
  2974. .report-modal,
  2975. .actions-modal {
  2976. background: lighten($ui-secondary-color, 8%);
  2977. color: $ui-base-color;
  2978. border-radius: 8px;
  2979. overflow: hidden;
  2980. max-width: 90vw;
  2981. width: 480px;
  2982. position: relative;
  2983. flex-direction: column;
  2984. .status__display-name {
  2985. display: block;
  2986. max-width: 100%;
  2987. padding-right: 25px;
  2988. }
  2989. .status__avatar {
  2990. height: 28px;
  2991. left: 10px;
  2992. position: absolute;
  2993. top: 10px;
  2994. width: 48px;
  2995. }
  2996. }
  2997. .actions-modal {
  2998. .status {
  2999. background: $white;
  3000. border-bottom-color: $ui-secondary-color;
  3001. padding-top: 10px;
  3002. padding-bottom: 10px;
  3003. }
  3004. .dropdown-menu__separator {
  3005. border-bottom-color: $ui-secondary-color;
  3006. }
  3007. }
  3008. .boost-modal__container {
  3009. overflow-x: scroll;
  3010. padding: 10px;
  3011. .status {
  3012. user-select: text;
  3013. border-bottom: 0;
  3014. }
  3015. }
  3016. .boost-modal__action-bar,
  3017. .confirmation-modal__action-bar,
  3018. .report-modal__action-bar {
  3019. display: flex;
  3020. justify-content: space-between;
  3021. background: $ui-secondary-color;
  3022. padding: 10px;
  3023. line-height: 36px;
  3024. & > div {
  3025. flex: 1 1 auto;
  3026. text-align: right;
  3027. color: lighten($ui-base-color, 33%);
  3028. padding-right: 10px;
  3029. }
  3030. .button {
  3031. flex: 0 0 auto;
  3032. }
  3033. }
  3034. .boost-modal__status-header {
  3035. font-size: 15px;
  3036. }
  3037. .boost-modal__status-time {
  3038. float: right;
  3039. font-size: 14px;
  3040. }
  3041. .confirmation-modal {
  3042. max-width: 85vw;
  3043. @media screen and (min-width: 480px) {
  3044. max-width: 380px;
  3045. }
  3046. }
  3047. .report-modal__statuses,
  3048. .report-modal__comment {
  3049. padding: 10px;
  3050. }
  3051. .report-modal__statuses {
  3052. min-height: 20vh;
  3053. max-height: 40vh;
  3054. overflow-y: auto;
  3055. overflow-x: hidden;
  3056. }
  3057. .report-modal__comment {
  3058. .setting-text {
  3059. margin-top: 10px;
  3060. }
  3061. }
  3062. .actions-modal {
  3063. .status {
  3064. overflow-y: auto;
  3065. max-height: 300px;
  3066. }
  3067. max-height: 80vh;
  3068. max-width: 80vw;
  3069. .actions-modal__item-label {
  3070. font-weight: 500;
  3071. }
  3072. ul {
  3073. overflow-y: auto;
  3074. flex-shrink: 0;
  3075. li:empty {
  3076. margin: 0;
  3077. }
  3078. li:not(:empty) {
  3079. a {
  3080. color: $ui-base-color;
  3081. display: flex;
  3082. padding: 12px 16px;
  3083. font-size: 15px;
  3084. align-items: center;
  3085. text-decoration: none;
  3086. &,
  3087. button {
  3088. transition: none;
  3089. }
  3090. &.active,
  3091. &:hover,
  3092. &:active,
  3093. &:focus {
  3094. &,
  3095. button {
  3096. background: $ui-highlight-color;
  3097. color: $primary-text-color;
  3098. }
  3099. }
  3100. button:first-child {
  3101. margin-right: 10px;
  3102. }
  3103. }
  3104. }
  3105. }
  3106. }
  3107. .confirmation-modal__action-bar {
  3108. .confirmation-modal__cancel-button {
  3109. background-color: transparent;
  3110. color: darken($ui-secondary-color, 34%);
  3111. font-size: 14px;
  3112. font-weight: 500;
  3113. &:hover,
  3114. &:focus,
  3115. &:active {
  3116. color: darken($ui-secondary-color, 38%);
  3117. }
  3118. }
  3119. }
  3120. .confirmation-modal__container,
  3121. .report-modal__target {
  3122. padding: 30px;
  3123. font-size: 16px;
  3124. text-align: center;
  3125. strong {
  3126. font-weight: 500;
  3127. }
  3128. }
  3129. .loading-bar {
  3130. background-color: $ui-highlight-color;
  3131. height: 3px;
  3132. position: absolute;
  3133. top: 0;
  3134. left: 0;
  3135. }
  3136. .media-gallery__gifv__label {
  3137. display: block;
  3138. position: absolute;
  3139. color: $primary-text-color;
  3140. background: rgba($base-overlay-background, 0.5);
  3141. bottom: 6px;
  3142. left: 6px;
  3143. padding: 2px 6px;
  3144. border-radius: 2px;
  3145. font-size: 11px;
  3146. font-weight: 600;
  3147. z-index: 1;
  3148. pointer-events: none;
  3149. opacity: 0.9;
  3150. transition: opacity 0.1s ease;
  3151. }
  3152. .media-gallery__gifv {
  3153. &.autoplay {
  3154. .media-gallery__gifv__label {
  3155. display: none;
  3156. }
  3157. }
  3158. &:hover {
  3159. .media-gallery__gifv__label {
  3160. opacity: 1;
  3161. }
  3162. }
  3163. }
  3164. .attachment-list {
  3165. display: flex;
  3166. font-size: 14px;
  3167. border: 1px solid lighten($ui-base-color, 8%);
  3168. border-radius: 4px;
  3169. margin-top: 14px;
  3170. overflow: hidden;
  3171. }
  3172. .attachment-list__icon {
  3173. flex: 0 0 auto;
  3174. color: $ui-base-lighter-color;
  3175. padding: 8px 18px;
  3176. cursor: default;
  3177. border-right: 1px solid lighten($ui-base-color, 8%);
  3178. display: flex;
  3179. flex-direction: column;
  3180. align-items: center;
  3181. justify-content: center;
  3182. font-size: 26px;
  3183. .fa {
  3184. display: block;
  3185. }
  3186. }
  3187. .attachment-list__list {
  3188. list-style: none;
  3189. padding: 4px 0;
  3190. padding-left: 8px;
  3191. display: flex;
  3192. flex-direction: column;
  3193. justify-content: center;
  3194. li {
  3195. display: block;
  3196. padding: 4px 0;
  3197. }
  3198. a {
  3199. text-decoration: none;
  3200. color: $ui-base-lighter-color;
  3201. font-weight: 500;
  3202. &:hover {
  3203. text-decoration: underline;
  3204. }
  3205. }
  3206. }
  3207. /* Media Gallery */
  3208. .media-gallery {
  3209. box-sizing: border-box;
  3210. margin-top: 8px;
  3211. overflow: hidden;
  3212. position: relative;
  3213. width: 100%;
  3214. }
  3215. .media-gallery__item {
  3216. border: none;
  3217. box-sizing: border-box;
  3218. display: block;
  3219. float: left;
  3220. position: relative;
  3221. &.standalone {
  3222. .media-gallery__item-gifv-thumbnail {
  3223. transform: none;
  3224. }
  3225. }
  3226. }
  3227. .media-gallery__item-thumbnail {
  3228. cursor: zoom-in;
  3229. display: block;
  3230. text-decoration: none;
  3231. height: 100%;
  3232. line-height: 0;
  3233. &,
  3234. img {
  3235. width: 100%;
  3236. height: 100%;
  3237. object-fit: cover;
  3238. }
  3239. }
  3240. .media-gallery__gifv {
  3241. height: 100%;
  3242. overflow: hidden;
  3243. position: relative;
  3244. width: 100%;
  3245. }
  3246. .media-gallery__item-gifv-thumbnail {
  3247. cursor: zoom-in;
  3248. height: 100%;
  3249. object-fit: cover;
  3250. position: relative;
  3251. top: 50%;
  3252. transform: translateY(-50%);
  3253. width: 100%;
  3254. z-index: 1;
  3255. }
  3256. .media-gallery__item-thumbnail-label {
  3257. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3258. clip: rect(1px, 1px, 1px, 1px);
  3259. overflow: hidden;
  3260. position: absolute;
  3261. }
  3262. /* End Media Gallery */
  3263. /* Status Video Player */
  3264. .status__video-player {
  3265. background: $base-overlay-background;
  3266. box-sizing: border-box;
  3267. cursor: default; /* May not be needed */
  3268. margin-top: 8px;
  3269. overflow: hidden;
  3270. position: relative;
  3271. }
  3272. .status__video-player-video {
  3273. height: 100%;
  3274. object-fit: cover;
  3275. position: relative;
  3276. top: 50%;
  3277. transform: translateY(-50%);
  3278. width: 100%;
  3279. z-index: 1;
  3280. }
  3281. .status__video-player-expand,
  3282. .status__video-player-mute {
  3283. color: $primary-text-color;
  3284. opacity: 0.8;
  3285. position: absolute;
  3286. right: 4px;
  3287. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3288. }
  3289. .status__video-player-spoiler {
  3290. display: none;
  3291. color: $primary-text-color;
  3292. left: 4px;
  3293. position: absolute;
  3294. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3295. top: 4px;
  3296. z-index: 100;
  3297. &.status__video-player-spoiler--visible {
  3298. display: block;
  3299. }
  3300. }
  3301. .status__video-player-expand {
  3302. bottom: 4px;
  3303. z-index: 100;
  3304. }
  3305. .status__video-player-mute {
  3306. top: 4px;
  3307. z-index: 5;
  3308. }
  3309. .video-player {
  3310. overflow: hidden;
  3311. position: relative;
  3312. background: $base-shadow-color;
  3313. max-width: 100%;
  3314. video {
  3315. height: 100%;
  3316. width: 100%;
  3317. z-index: 1;
  3318. }
  3319. &.fullscreen {
  3320. width: 100% !important;
  3321. height: 100% !important;
  3322. margin: 0;
  3323. video {
  3324. max-width: 100% !important;
  3325. max-height: 100% !important;
  3326. }
  3327. }
  3328. &.inline {
  3329. video {
  3330. object-fit: cover;
  3331. position: relative;
  3332. top: 50%;
  3333. transform: translateY(-50%);
  3334. }
  3335. }
  3336. &__controls {
  3337. position: absolute;
  3338. z-index: 2;
  3339. bottom: 0;
  3340. left: 0;
  3341. right: 0;
  3342. box-sizing: border-box;
  3343. background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 60%, transparent);
  3344. padding: 0 10px;
  3345. opacity: 0;
  3346. transition: opacity .1s ease;
  3347. &.active {
  3348. opacity: 1;
  3349. }
  3350. }
  3351. &.inactive {
  3352. video,
  3353. .video-player__controls {
  3354. visibility: hidden;
  3355. }
  3356. }
  3357. &__spoiler {
  3358. display: none;
  3359. position: absolute;
  3360. top: 0;
  3361. left: 0;
  3362. width: 100%;
  3363. height: 100%;
  3364. z-index: 4;
  3365. border: 0;
  3366. background: $base-shadow-color;
  3367. color: $ui-primary-color;
  3368. transition: none;
  3369. pointer-events: none;
  3370. &.active {
  3371. display: block;
  3372. pointer-events: auto;
  3373. &:hover,
  3374. &:active,
  3375. &:focus {
  3376. color: lighten($ui-primary-color, 8%);
  3377. }
  3378. }
  3379. &__title {
  3380. display: block;
  3381. font-size: 14px;
  3382. }
  3383. &__subtitle {
  3384. display: block;
  3385. font-size: 11px;
  3386. font-weight: 500;
  3387. }
  3388. }
  3389. &__buttons {
  3390. padding-bottom: 10px;
  3391. font-size: 16px;
  3392. &.left {
  3393. float: left;
  3394. button {
  3395. padding-right: 10px;
  3396. }
  3397. }
  3398. &.right {
  3399. float: right;
  3400. button {
  3401. padding-left: 10px;
  3402. }
  3403. }
  3404. button {
  3405. background: transparent;
  3406. padding: 0;
  3407. border: 0;
  3408. color: $white;
  3409. &:active,
  3410. &:hover,
  3411. &:focus {
  3412. color: $ui-highlight-color;
  3413. }
  3414. }
  3415. }
  3416. &__seek {
  3417. cursor: pointer;
  3418. height: 24px;
  3419. position: relative;
  3420. &::before {
  3421. content: "";
  3422. width: 100%;
  3423. background: rgba($white, 0.35);
  3424. display: block;
  3425. position: absolute;
  3426. height: 4px;
  3427. top: 10px;
  3428. }
  3429. &__progress,
  3430. &__buffer {
  3431. display: block;
  3432. position: absolute;
  3433. height: 4px;
  3434. top: 10px;
  3435. background: $ui-highlight-color;
  3436. }
  3437. &__buffer {
  3438. background: rgba($white, 0.2);
  3439. }
  3440. &__handle {
  3441. position: absolute;
  3442. z-index: 3;
  3443. opacity: 0;
  3444. border-radius: 50%;
  3445. width: 12px;
  3446. height: 12px;
  3447. top: 6px;
  3448. margin-left: -6px;
  3449. transition: opacity .1s ease;
  3450. background: $ui-highlight-color;
  3451. pointer-events: none;
  3452. &.active {
  3453. opacity: 1;
  3454. }
  3455. }
  3456. &:hover {
  3457. .video-player__seek__handle {
  3458. opacity: 1;
  3459. }
  3460. }
  3461. }
  3462. }
  3463. .media-spoiler-video {
  3464. background-size: cover;
  3465. background-repeat: no-repeat;
  3466. background-position: center;
  3467. cursor: pointer;
  3468. margin-top: 8px;
  3469. position: relative;
  3470. border: 0;
  3471. display: block;
  3472. }
  3473. .media-spoiler-video-play-icon {
  3474. border-radius: 100px;
  3475. color: rgba($primary-text-color, 0.8);
  3476. font-size: 36px;
  3477. left: 50%;
  3478. padding: 5px;
  3479. position: absolute;
  3480. top: 50%;
  3481. transform: translate(-50%, -50%);
  3482. }
  3483. /* End Video Player */
  3484. .account-gallery__container {
  3485. margin: -2px;
  3486. padding: 4px;
  3487. display: flex;
  3488. flex-wrap: wrap;
  3489. }
  3490. .account-gallery__item {
  3491. flex: 1 1 auto;
  3492. width: calc(100% / 3 - 4px);
  3493. height: 95px;
  3494. margin: 2px;
  3495. a {
  3496. display: block;
  3497. width: 100%;
  3498. height: 100%;
  3499. background-color: $base-overlay-background;
  3500. background-size: cover;
  3501. background-position: center;
  3502. position: relative;
  3503. color: inherit;
  3504. text-decoration: none;
  3505. &:hover,
  3506. &:active,
  3507. &:focus {
  3508. outline: 0;
  3509. }
  3510. }
  3511. }
  3512. .account-section-headline {
  3513. color: $ui-base-lighter-color;
  3514. background: lighten($ui-base-color, 2%);
  3515. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3516. padding: 15px 10px;
  3517. font-size: 14px;
  3518. font-weight: 500;
  3519. position: relative;
  3520. cursor: default;
  3521. &::before,
  3522. &::after {
  3523. display: block;
  3524. content: "";
  3525. position: absolute;
  3526. bottom: 0;
  3527. left: 18px;
  3528. width: 0;
  3529. height: 0;
  3530. border-style: solid;
  3531. border-width: 0 10px 10px;
  3532. border-color: transparent transparent lighten($ui-base-color, 4%);
  3533. }
  3534. &::after {
  3535. bottom: -1px;
  3536. border-color: transparent transparent $ui-base-color;
  3537. }
  3538. }
  3539. ::-webkit-scrollbar-thumb {
  3540. border-radius: 0;
  3541. }
  3542. .search-popout {
  3543. background: $simple-background-color;
  3544. border-radius: 4px;
  3545. padding: 10px 14px;
  3546. padding-bottom: 14px;
  3547. margin-top: 10px;
  3548. color: $ui-primary-color;
  3549. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  3550. h4 {
  3551. text-transform: uppercase;
  3552. color: $ui-primary-color;
  3553. font-size: 13px;
  3554. font-weight: 500;
  3555. margin-bottom: 10px;
  3556. }
  3557. li {
  3558. padding: 4px 0;
  3559. }
  3560. ul {
  3561. margin-bottom: 10px;
  3562. }
  3563. em {
  3564. font-weight: 500;
  3565. color: $ui-base-color;
  3566. }
  3567. }
  3568. noscript {
  3569. text-align: center;
  3570. img {
  3571. width: 200px;
  3572. opacity: 0.5;
  3573. animation: flicker 4s infinite;
  3574. }
  3575. div {
  3576. font-size: 14px;
  3577. margin: 30px auto;
  3578. color: $ui-secondary-color;
  3579. max-width: 400px;
  3580. a {
  3581. color: $ui-highlight-color;
  3582. text-decoration: underline;
  3583. &:hover {
  3584. text-decoration: none;
  3585. }
  3586. }
  3587. }
  3588. }
  3589. @keyframes flicker {
  3590. 0% { opacity: 1; }
  3591. 30% { opacity: 0.75; }
  3592. 100% { opacity: 1; }
  3593. }
  3594. @media screen and (max-width: 630px) and (max-height: 400px) {
  3595. $duration: 400ms;
  3596. $delay: 100ms;
  3597. .tabs-bar,
  3598. .search {
  3599. will-change: margin-top;
  3600. transition: margin-top $duration $delay;
  3601. }
  3602. .navigation-bar {
  3603. will-change: padding-bottom;
  3604. transition: padding-bottom $duration $delay;
  3605. }
  3606. .navigation-bar {
  3607. & > a:first-child {
  3608. will-change: margin-top, margin-left, width;
  3609. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay);
  3610. }
  3611. & > .navigation-bar__profile-edit {
  3612. will-change: margin-top;
  3613. transition: margin-top $duration $delay;
  3614. }
  3615. & > .icon-button {
  3616. will-change: opacity;
  3617. transition: opacity $duration $delay;
  3618. }
  3619. }
  3620. .is-composing {
  3621. .tabs-bar,
  3622. .search {
  3623. margin-top: -50px;
  3624. }
  3625. .navigation-bar {
  3626. padding-bottom: 0;
  3627. & > a:first-child {
  3628. margin-top: -50px;
  3629. margin-left: -40px;
  3630. }
  3631. .navigation-bar__profile {
  3632. padding-top: 2px;
  3633. }
  3634. .navigation-bar__profile-edit {
  3635. position: absolute;
  3636. margin-top: -50px;
  3637. }
  3638. .icon-button {
  3639. pointer-events: auto;
  3640. opacity: 1;
  3641. }
  3642. }
  3643. }
  3644. }
  3645. .embed-modal {
  3646. max-width: 80vw;
  3647. max-height: 80vh;
  3648. h4 {
  3649. padding: 30px;
  3650. font-weight: 500;
  3651. font-size: 16px;
  3652. text-align: center;
  3653. }
  3654. .embed-modal__container {
  3655. padding: 10px;
  3656. .hint {
  3657. margin-bottom: 15px;
  3658. }
  3659. .embed-modal__html {
  3660. color: $ui-secondary-color;
  3661. outline: 0;
  3662. box-sizing: border-box;
  3663. display: block;
  3664. width: 100%;
  3665. border: none;
  3666. padding: 10px;
  3667. font-family: 'mastodon-font-monospace', monospace;
  3668. background: $ui-base-color;
  3669. color: $ui-primary-color;
  3670. font-size: 14px;
  3671. margin: 0;
  3672. margin-bottom: 15px;
  3673. &::-moz-focus-inner {
  3674. border: 0;
  3675. }
  3676. &::-moz-focus-inner,
  3677. &:focus,
  3678. &:active {
  3679. outline: 0 !important;
  3680. }
  3681. &:focus {
  3682. background: lighten($ui-base-color, 4%);
  3683. }
  3684. @media screen and (max-width: 600px) {
  3685. font-size: 16px;
  3686. }
  3687. }
  3688. .embed-modal__iframe {
  3689. width: 400px;
  3690. max-width: 100%;
  3691. overflow: hidden;
  3692. border: 0;
  3693. }
  3694. }
  3695. }