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.

4283 lines
71 KiB

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