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.

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