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.

4339 lines
72 KiB

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