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.

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