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.

4220 lines
70 KiB

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