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.

4141 lines
68 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: 1025px) {
  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: 1 1 auto;
  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. width: 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 5px 0;
  1054. border-top-color: $ui-secondary-color;
  1055. }
  1056. &.bottom {
  1057. top: -5px;
  1058. margin-left: -13px;
  1059. border-width: 0 5px 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: 1024px) {
  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: 1025px) {
  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: 1025px) {
  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: 1025px) {
  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. display: none;
  1583. position: absolute;
  1584. top: 100%;
  1585. width: 100%;
  1586. z-index: 99;
  1587. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1588. background: $ui-secondary-color;
  1589. color: $ui-base-color;
  1590. font-size: 14px;
  1591. &.autosuggest-textarea__suggestions--visible {
  1592. display: block;
  1593. }
  1594. }
  1595. .autosuggest-textarea__suggestions__item {
  1596. padding: 10px;
  1597. cursor: pointer;
  1598. &:hover {
  1599. background: darken($ui-secondary-color, 10%);
  1600. }
  1601. &.selected {
  1602. background: $ui-highlight-color;
  1603. color: $base-border-color;
  1604. }
  1605. }
  1606. .autosuggest-account {
  1607. overflow: hidden;
  1608. }
  1609. .autosuggest-account-icon {
  1610. float: left;
  1611. margin-right: 5px;
  1612. }
  1613. .autosuggest-status {
  1614. overflow: hidden;
  1615. white-space: nowrap;
  1616. text-overflow: ellipsis;
  1617. strong {
  1618. font-weight: 500;
  1619. }
  1620. }
  1621. .character-counter__wrapper {
  1622. line-height: 36px;
  1623. margin: 0 16px 0 8px;
  1624. padding-top: 10px;
  1625. }
  1626. .character-counter {
  1627. cursor: default;
  1628. font-size: 16px;
  1629. }
  1630. .character-counter--over {
  1631. color: $warning-red;
  1632. }
  1633. .getting-started__wrapper {
  1634. position: relative;
  1635. overflow-y: auto;
  1636. }
  1637. .getting-started__footer {
  1638. display: flex;
  1639. flex-direction: column;
  1640. }
  1641. .getting-started {
  1642. box-sizing: border-box;
  1643. padding-bottom: 235px;
  1644. background: url('../images/mastodon-getting-started.png') no-repeat 0 100%;
  1645. flex: 1 0 auto;
  1646. p {
  1647. color: $ui-secondary-color;
  1648. }
  1649. a {
  1650. color: $ui-base-lighter-color;
  1651. }
  1652. }
  1653. .setting-text {
  1654. color: $ui-primary-color;
  1655. background: transparent;
  1656. border: none;
  1657. border-bottom: 2px solid $ui-primary-color;
  1658. box-sizing: border-box;
  1659. display: block;
  1660. font-family: inherit;
  1661. margin-bottom: 10px;
  1662. padding: 7px 0;
  1663. width: 100%;
  1664. &:focus,
  1665. &:active {
  1666. color: $primary-text-color;
  1667. border-bottom-color: $ui-highlight-color;
  1668. }
  1669. @media screen and (max-width: 600px) {
  1670. font-size: 16px;
  1671. }
  1672. &.light {
  1673. color: $ui-base-color;
  1674. border-bottom: 2px solid lighten($ui-base-color, 27%);
  1675. &:focus,
  1676. &:active {
  1677. color: $ui-base-color;
  1678. border-bottom-color: $ui-highlight-color;
  1679. }
  1680. }
  1681. }
  1682. @import 'boost';
  1683. button.icon-button i.fa-retweet {
  1684. background-position: 0 0;
  1685. height: 19px;
  1686. transition: background-position 0.9s steps(10);
  1687. transition-duration: 0s;
  1688. vertical-align: middle;
  1689. width: 22px;
  1690. &::before {
  1691. display: none !important;
  1692. }
  1693. }
  1694. button.icon-button.active i.fa-retweet {
  1695. transition-duration: 0.9s;
  1696. background-position: 0 100%;
  1697. }
  1698. .status-card {
  1699. display: flex;
  1700. cursor: pointer;
  1701. font-size: 14px;
  1702. border: 1px solid lighten($ui-base-color, 8%);
  1703. border-radius: 4px;
  1704. color: $ui-base-lighter-color;
  1705. margin-top: 14px;
  1706. text-decoration: none;
  1707. overflow: hidden;
  1708. &:hover {
  1709. background: lighten($ui-base-color, 8%);
  1710. }
  1711. }
  1712. .status-card-video,
  1713. .status-card-rich,
  1714. .status-card-photo {
  1715. margin-top: 14px;
  1716. overflow: hidden;
  1717. iframe {
  1718. width: 100%;
  1719. height: auto;
  1720. }
  1721. }
  1722. .status-card-photo {
  1723. display: block;
  1724. text-decoration: none;
  1725. img {
  1726. display: block;
  1727. width: 100%;
  1728. height: auto;
  1729. margin: 0;
  1730. }
  1731. }
  1732. .status-card-video {
  1733. position: relative;
  1734. width: 100%;
  1735. height: auto;
  1736. padding-top: 56.25%;
  1737. iframe {
  1738. position: absolute;
  1739. top: 0;
  1740. left: 0;
  1741. bottom: 0;
  1742. right: 0;
  1743. width: 1px;
  1744. min-width: 100%;
  1745. height: 1px;
  1746. min-height: 100%;
  1747. margin: auto;
  1748. }
  1749. }
  1750. .status-card__title {
  1751. display: block;
  1752. font-weight: 500;
  1753. margin-bottom: 5px;
  1754. color: $ui-primary-color;
  1755. overflow: hidden;
  1756. text-overflow: ellipsis;
  1757. white-space: nowrap;
  1758. }
  1759. .status-card__content {
  1760. flex: 1 1 auto;
  1761. overflow: hidden;
  1762. padding: 14px 14px 14px 8px;
  1763. }
  1764. .status-card__description {
  1765. color: $ui-primary-color;
  1766. }
  1767. .status-card__host {
  1768. display: block;
  1769. margin-top: 5px;
  1770. font-size: 13px;
  1771. }
  1772. .status-card__image {
  1773. flex: 0 0 100px;
  1774. background: lighten($ui-base-color, 8%);
  1775. }
  1776. .status-card.horizontal {
  1777. display: block;
  1778. .status-card__image {
  1779. width: 100%;
  1780. }
  1781. .status-card__image-image {
  1782. border-radius: 4px 4px 0 0;
  1783. }
  1784. }
  1785. .status-card__image-image {
  1786. border-radius: 4px 0 0 4px;
  1787. display: block;
  1788. height: auto;
  1789. margin: 0;
  1790. width: 100%;
  1791. }
  1792. .load-more {
  1793. display: block;
  1794. color: $ui-base-lighter-color;
  1795. background-color: transparent;
  1796. border: 0;
  1797. font-size: inherit;
  1798. text-align: center;
  1799. line-height: inherit;
  1800. margin: 0;
  1801. padding: 15px;
  1802. width: 100%;
  1803. clear: both;
  1804. &:hover {
  1805. background: lighten($ui-base-color, 2%);
  1806. }
  1807. }
  1808. .missing-indicator {
  1809. text-align: center;
  1810. font-size: 16px;
  1811. font-weight: 500;
  1812. color: lighten($ui-base-color, 16%);
  1813. background: $ui-base-color;
  1814. cursor: default;
  1815. display: flex;
  1816. flex: 1 1 auto;
  1817. align-items: center;
  1818. justify-content: center;
  1819. & > div {
  1820. background: url('../images/mastodon-not-found.png') no-repeat center -50px;
  1821. padding-top: 210px;
  1822. width: 100%;
  1823. }
  1824. }
  1825. .column-header__wrapper {
  1826. position: relative;
  1827. flex: 0 0 auto;
  1828. &.active {
  1829. &::before {
  1830. display: block;
  1831. content: "";
  1832. position: absolute;
  1833. top: 35px;
  1834. left: 0;
  1835. right: 0;
  1836. margin: 0 auto;
  1837. width: 60%;
  1838. pointer-events: none;
  1839. height: 28px;
  1840. z-index: 1;
  1841. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  1842. }
  1843. }
  1844. }
  1845. .column-header {
  1846. padding: 15px;
  1847. font-size: 16px;
  1848. background: lighten($ui-base-color, 4%);
  1849. flex: 0 0 auto;
  1850. cursor: pointer;
  1851. position: relative;
  1852. z-index: 2;
  1853. outline: 0;
  1854. &.active {
  1855. box-shadow: 0 1px 0 rgba($ui-highlight-color, 0.3);
  1856. .column-header__icon {
  1857. color: $ui-highlight-color;
  1858. text-shadow: 0 0 10px rgba($ui-highlight-color, 0.4);
  1859. }
  1860. }
  1861. &:focus,
  1862. &:active {
  1863. outline: 0;
  1864. }
  1865. }
  1866. .column-header__buttons {
  1867. position: absolute;
  1868. right: 0;
  1869. top: 0;
  1870. height: 100%;
  1871. display: flex;
  1872. height: 48px;
  1873. }
  1874. .column-header__button {
  1875. background: lighten($ui-base-color, 4%);
  1876. border: 0;
  1877. color: $ui-primary-color;
  1878. cursor: pointer;
  1879. font-size: 16px;
  1880. padding: 0 15px;
  1881. &:hover {
  1882. color: lighten($ui-primary-color, 7%);
  1883. }
  1884. &.active {
  1885. color: $primary-text-color;
  1886. background: lighten($ui-base-color, 8%);
  1887. &:hover {
  1888. color: $primary-text-color;
  1889. background: lighten($ui-base-color, 8%);
  1890. }
  1891. }
  1892. }
  1893. .column-header__collapsible {
  1894. max-height: 70vh;
  1895. overflow: hidden;
  1896. overflow-y: auto;
  1897. color: $ui-primary-color;
  1898. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  1899. opacity: 1;
  1900. &.collapsed {
  1901. max-height: 0;
  1902. opacity: 0.5;
  1903. }
  1904. &.animating {
  1905. overflow-y: hidden;
  1906. }
  1907. }
  1908. .column-header__collapsible-inner {
  1909. background: lighten($ui-base-color, 8%);
  1910. padding: 15px;
  1911. }
  1912. .column-header__setting-btn {
  1913. &:hover {
  1914. color: lighten($ui-primary-color, 4%);
  1915. text-decoration: underline;
  1916. }
  1917. }
  1918. .column-header__setting-arrows {
  1919. float: right;
  1920. .column-header__setting-btn {
  1921. padding: 0 10px;
  1922. &:last-child {
  1923. padding-right: 0;
  1924. }
  1925. }
  1926. }
  1927. .text-btn {
  1928. display: inline-block;
  1929. padding: 0;
  1930. font-family: inherit;
  1931. font-size: inherit;
  1932. color: inherit;
  1933. border: 0;
  1934. background: transparent;
  1935. cursor: pointer;
  1936. }
  1937. .column-header__icon {
  1938. display: inline-block;
  1939. margin-right: 5px;
  1940. }
  1941. .loading-indicator {
  1942. color: lighten($ui-base-color, 26%);
  1943. font-size: 12px;
  1944. font-weight: 400;
  1945. text-transform: uppercase;
  1946. overflow: visible;
  1947. position: absolute;
  1948. top: 50%;
  1949. left: 50%;
  1950. transform: translate(-50%, -50%);
  1951. span {
  1952. display: block;
  1953. float: left;
  1954. margin-left: 50%;
  1955. transform: translateX(-50%);
  1956. margin: 82px 0 0 50%;
  1957. white-space: nowrap;
  1958. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1959. }
  1960. }
  1961. .loading-indicator__figure {
  1962. position: absolute;
  1963. top: 50%;
  1964. left: 50%;
  1965. transform: translate(-50%, -50%);
  1966. width: 0;
  1967. height: 0;
  1968. box-sizing: border-box;
  1969. border: 0 solid lighten($ui-base-color, 26%);
  1970. border-radius: 50%;
  1971. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1972. }
  1973. @keyframes loader-figure {
  1974. 0% {
  1975. width: 0;
  1976. height: 0;
  1977. background-color: lighten($ui-base-color, 26%);
  1978. }
  1979. 29% {
  1980. background-color: lighten($ui-base-color, 26%);
  1981. }
  1982. 30% {
  1983. width: 42px;
  1984. height: 42px;
  1985. background-color: transparent;
  1986. border-width: 21px;
  1987. opacity: 1;
  1988. }
  1989. 100% {
  1990. width: 42px;
  1991. height: 42px;
  1992. border-width: 0;
  1993. opacity: 0;
  1994. background-color: transparent;
  1995. }
  1996. }
  1997. @keyframes loader-label {
  1998. 0% { opacity: 0.25; }
  1999. 30% { opacity: 1; }
  2000. 100% { opacity: 0.25; }
  2001. }
  2002. .video-error-cover {
  2003. align-items: center;
  2004. background: $base-overlay-background;
  2005. color: $primary-text-color;
  2006. cursor: pointer;
  2007. display: flex;
  2008. flex-direction: column;
  2009. height: 100%;
  2010. justify-content: center;
  2011. margin-top: 8px;
  2012. position: relative;
  2013. text-align: center;
  2014. z-index: 100;
  2015. }
  2016. .media-spoiler {
  2017. background: $base-overlay-background;
  2018. color: $ui-primary-color;
  2019. border: 0;
  2020. width: 100%;
  2021. height: 100%;
  2022. &:hover,
  2023. &:active,
  2024. &:focus {
  2025. color: lighten($ui-primary-color, 8%);
  2026. }
  2027. }
  2028. .media-spoiler__warning {
  2029. display: block;
  2030. font-size: 14px;
  2031. }
  2032. .media-spoiler__trigger {
  2033. display: block;
  2034. font-size: 11px;
  2035. font-weight: 500;
  2036. }
  2037. .spoiler-button {
  2038. display: none;
  2039. left: 4px;
  2040. position: absolute;
  2041. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  2042. top: 4px;
  2043. z-index: 100;
  2044. &.spoiler-button--visible {
  2045. display: block;
  2046. }
  2047. }
  2048. .modal-container--preloader {
  2049. background: lighten($ui-base-color, 8%);
  2050. }
  2051. .account--panel {
  2052. background: lighten($ui-base-color, 4%);
  2053. border-top: 1px solid lighten($ui-base-color, 8%);
  2054. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2055. display: flex;
  2056. flex-direction: row;
  2057. padding: 10px 0;
  2058. }
  2059. .account--panel__button,
  2060. .detailed-status__button {
  2061. flex: 1 1 auto;
  2062. text-align: center;
  2063. }
  2064. .column-settings__outer {
  2065. background: lighten($ui-base-color, 8%);
  2066. padding: 15px;
  2067. }
  2068. .column-settings__section {
  2069. color: $ui-primary-color;
  2070. cursor: default;
  2071. display: block;
  2072. font-weight: 500;
  2073. margin-bottom: 10px;
  2074. }
  2075. .column-settings__row {
  2076. .text-btn {
  2077. margin-bottom: 15px;
  2078. }
  2079. }
  2080. .modal-container__nav {
  2081. align-items: center;
  2082. background: rgba($base-overlay-background, 0.5);
  2083. box-sizing: border-box;
  2084. border: 0;
  2085. color: $primary-text-color;
  2086. cursor: pointer;
  2087. display: flex;
  2088. font-size: 24px;
  2089. height: 100%;
  2090. padding: 30px 15px;
  2091. position: absolute;
  2092. top: 0;
  2093. }
  2094. .modal-container__nav--left {
  2095. left: -61px;
  2096. }
  2097. .modal-container__nav--right {
  2098. right: -61px;
  2099. }
  2100. .account--follows-info {
  2101. color: $primary-text-color;
  2102. position: absolute;
  2103. top: 10px;
  2104. right: 10px;
  2105. opacity: 0.7;
  2106. display: inline-block;
  2107. vertical-align: top;
  2108. background-color: rgba($base-overlay-background, 0.4);
  2109. text-transform: uppercase;
  2110. font-size: 11px;
  2111. font-weight: 500;
  2112. padding: 4px;
  2113. border-radius: 4px;
  2114. }
  2115. .account--action-button {
  2116. position: absolute;
  2117. top: 10px;
  2118. left: 20px;
  2119. }
  2120. .setting-toggle {
  2121. display: block;
  2122. line-height: 24px;
  2123. }
  2124. .setting-toggle__label,
  2125. .setting-meta__label {
  2126. color: $ui-primary-color;
  2127. display: inline-block;
  2128. margin-bottom: 14px;
  2129. margin-left: 8px;
  2130. vertical-align: middle;
  2131. }
  2132. .setting-meta__label {
  2133. color: $ui-primary-color;
  2134. float: right;
  2135. }
  2136. .empty-column-indicator,
  2137. .error-column {
  2138. color: lighten($ui-base-color, 20%);
  2139. background: $ui-base-color;
  2140. text-align: center;
  2141. padding: 20px;
  2142. font-size: 15px;
  2143. font-weight: 400;
  2144. cursor: default;
  2145. display: flex;
  2146. flex: 1 1 auto;
  2147. align-items: center;
  2148. justify-content: center;
  2149. @supports(display: grid) { // hack to fix Chrome <57
  2150. contain: strict;
  2151. }
  2152. a {
  2153. color: $ui-highlight-color;
  2154. text-decoration: none;
  2155. &:hover {
  2156. text-decoration: underline;
  2157. }
  2158. }
  2159. }
  2160. .error-column {
  2161. flex-direction: column;
  2162. }
  2163. @keyframes pulse {
  2164. 0% {
  2165. opacity: 1;
  2166. }
  2167. 100% {
  2168. opacity: 0.5;
  2169. }
  2170. }
  2171. .pulse-loading {
  2172. animation: pulse 1s ease-in-out infinite;
  2173. animation-direction: alternate;
  2174. }
  2175. .emoji-picker-dropdown__menu {
  2176. background: $simple-background-color;
  2177. position: absolute;
  2178. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  2179. border-radius: 4px;
  2180. margin-top: 5px;
  2181. .emoji-mart-scroll {
  2182. transition: opacity 200ms ease;
  2183. }
  2184. &.selecting .emoji-mart-scroll {
  2185. opacity: 0.5;
  2186. }
  2187. }
  2188. .emoji-picker-dropdown__modifiers {
  2189. position: absolute;
  2190. top: 60px;
  2191. right: 11px;
  2192. cursor: pointer;
  2193. }
  2194. .emoji-picker-dropdown__modifiers__menu {
  2195. position: absolute;
  2196. z-index: 4;
  2197. top: -4px;
  2198. left: -8px;
  2199. background: $simple-background-color;
  2200. border-radius: 4px;
  2201. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  2202. overflow: hidden;
  2203. button {
  2204. display: block;
  2205. cursor: pointer;
  2206. border: 0;
  2207. padding: 4px 8px;
  2208. background: transparent;
  2209. &:hover,
  2210. &:focus,
  2211. &:active {
  2212. background: rgba($ui-secondary-color, 0.4);
  2213. }
  2214. }
  2215. .emoji-mart-emoji {
  2216. height: 22px;
  2217. }
  2218. }
  2219. .upload-area {
  2220. align-items: center;
  2221. background: rgba($base-overlay-background, 0.8);
  2222. display: flex;
  2223. height: 100%;
  2224. justify-content: center;
  2225. left: 0;
  2226. opacity: 0;
  2227. position: absolute;
  2228. top: 0;
  2229. visibility: hidden;
  2230. width: 100%;
  2231. z-index: 2000;
  2232. * {
  2233. pointer-events: none;
  2234. }
  2235. }
  2236. .upload-area__drop {
  2237. width: 320px;
  2238. height: 160px;
  2239. display: flex;
  2240. box-sizing: border-box;
  2241. position: relative;
  2242. padding: 8px;
  2243. }
  2244. .upload-area__background {
  2245. position: absolute;
  2246. top: 0;
  2247. right: 0;
  2248. bottom: 0;
  2249. left: 0;
  2250. z-index: -1;
  2251. border-radius: 4px;
  2252. background: $ui-base-color;
  2253. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2254. }
  2255. .upload-area__content {
  2256. flex: 1;
  2257. display: flex;
  2258. align-items: center;
  2259. justify-content: center;
  2260. color: $ui-secondary-color;
  2261. font-size: 18px;
  2262. font-weight: 500;
  2263. border: 2px dashed $ui-base-lighter-color;
  2264. border-radius: 4px;
  2265. }
  2266. .upload-progress {
  2267. padding: 10px;
  2268. color: $ui-base-lighter-color;
  2269. overflow: hidden;
  2270. display: flex;
  2271. .fa {
  2272. font-size: 34px;
  2273. margin-right: 10px;
  2274. }
  2275. span {
  2276. font-size: 12px;
  2277. text-transform: uppercase;
  2278. font-weight: 500;
  2279. display: block;
  2280. }
  2281. }
  2282. .upload-progess__message {
  2283. flex: 1 1 auto;
  2284. }
  2285. .upload-progress__backdrop {
  2286. width: 100%;
  2287. height: 6px;
  2288. border-radius: 6px;
  2289. background: $ui-base-lighter-color;
  2290. position: relative;
  2291. margin-top: 5px;
  2292. }
  2293. .upload-progress__tracker {
  2294. position: absolute;
  2295. left: 0;
  2296. top: 0;
  2297. height: 6px;
  2298. background: $ui-highlight-color;
  2299. border-radius: 6px;
  2300. }
  2301. .emoji-button {
  2302. display: block;
  2303. font-size: 24px;
  2304. line-height: 24px;
  2305. margin-left: 2px;
  2306. width: 24px;
  2307. outline: 0;
  2308. cursor: pointer;
  2309. &:active,
  2310. &:focus {
  2311. outline: 0 !important;
  2312. }
  2313. img {
  2314. filter: grayscale(100%);
  2315. opacity: 0.8;
  2316. display: block;
  2317. margin: 0;
  2318. width: 22px;
  2319. height: 22px;
  2320. margin-top: 2px;
  2321. }
  2322. &:hover,
  2323. &:active,
  2324. &:focus {
  2325. img {
  2326. opacity: 1;
  2327. filter: none;
  2328. }
  2329. }
  2330. }
  2331. .dropdown--active .emoji-button img {
  2332. opacity: 1;
  2333. filter: none;
  2334. }
  2335. .privacy-dropdown {
  2336. position: relative;
  2337. }
  2338. .privacy-dropdown__dropdown {
  2339. display: none;
  2340. position: absolute;
  2341. left: 0;
  2342. top: 27px;
  2343. width: 230px;
  2344. background: $simple-background-color;
  2345. border-radius: 0 4px 4px;
  2346. z-index: 2;
  2347. overflow: hidden;
  2348. }
  2349. .privacy-dropdown__option {
  2350. color: $ui-base-color;
  2351. padding: 10px;
  2352. cursor: pointer;
  2353. display: flex;
  2354. &:hover,
  2355. &.active {
  2356. background: $ui-highlight-color;
  2357. color: $primary-text-color;
  2358. .privacy-dropdown__option__content {
  2359. color: $primary-text-color;
  2360. strong {
  2361. color: $primary-text-color;
  2362. }
  2363. }
  2364. }
  2365. &.active:hover {
  2366. background: lighten($ui-highlight-color, 4%);
  2367. }
  2368. }
  2369. .privacy-dropdown__option__icon {
  2370. display: flex;
  2371. align-items: center;
  2372. justify-content: center;
  2373. margin-right: 10px;
  2374. }
  2375. .privacy-dropdown__option__content {
  2376. flex: 1 1 auto;
  2377. color: darken($ui-primary-color, 24%);
  2378. strong {
  2379. font-weight: 500;
  2380. display: block;
  2381. color: $ui-base-color;
  2382. }
  2383. }
  2384. .privacy-dropdown.active {
  2385. .privacy-dropdown__value {
  2386. background: $simple-background-color;
  2387. border-radius: 4px 4px 0 0;
  2388. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2389. }
  2390. .privacy-dropdown__dropdown {
  2391. display: block;
  2392. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2393. }
  2394. }
  2395. .search {
  2396. position: relative;
  2397. }
  2398. .search__input {
  2399. outline: 0;
  2400. box-sizing: border-box;
  2401. display: block;
  2402. width: 100%;
  2403. border: none;
  2404. padding: 10px;
  2405. padding-right: 30px;
  2406. font-family: inherit;
  2407. background: $ui-base-color;
  2408. color: $ui-primary-color;
  2409. font-size: 14px;
  2410. margin: 0;
  2411. &::-moz-focus-inner {
  2412. border: 0;
  2413. }
  2414. &::-moz-focus-inner,
  2415. &:focus,
  2416. &:active {
  2417. outline: 0 !important;
  2418. }
  2419. &:focus {
  2420. background: lighten($ui-base-color, 4%);
  2421. }
  2422. @media screen and (max-width: 600px) {
  2423. font-size: 16px;
  2424. }
  2425. }
  2426. .search__icon {
  2427. .fa {
  2428. position: absolute;
  2429. top: 10px;
  2430. right: 10px;
  2431. z-index: 2;
  2432. display: inline-block;
  2433. opacity: 0;
  2434. transition: all 100ms linear;
  2435. font-size: 18px;
  2436. width: 18px;
  2437. height: 18px;
  2438. color: $ui-secondary-color;
  2439. cursor: default;
  2440. pointer-events: none;
  2441. &.active {
  2442. pointer-events: auto;
  2443. opacity: 0.3;
  2444. }
  2445. }
  2446. .fa-search {
  2447. transform: translateZ(0) rotate(90deg);
  2448. &.active {
  2449. pointer-events: none;
  2450. transform: translateZ(0) rotate(0deg);
  2451. }
  2452. }
  2453. .fa-times-circle {
  2454. top: 11px;
  2455. transform: translateZ(0) rotate(0deg);
  2456. cursor: pointer;
  2457. &.active {
  2458. transform: translateZ(0) rotate(90deg);
  2459. }
  2460. &:hover {
  2461. color: $primary-text-color;
  2462. }
  2463. }
  2464. }
  2465. .search-results__header {
  2466. color: $ui-base-lighter-color;
  2467. background: lighten($ui-base-color, 2%);
  2468. border-bottom: 1px solid darken($ui-base-color, 4%);
  2469. padding: 15px 10px;
  2470. font-size: 14px;
  2471. font-weight: 500;
  2472. }
  2473. .search-results__hashtag {
  2474. display: block;
  2475. padding: 10px;
  2476. color: $ui-secondary-color;
  2477. text-decoration: none;
  2478. &:hover,
  2479. &:active,
  2480. &:focus {
  2481. color: lighten($ui-secondary-color, 4%);
  2482. text-decoration: underline;
  2483. }
  2484. }
  2485. .modal-root__overlay {
  2486. position: absolute;
  2487. top: 0;
  2488. left: 0;
  2489. right: 0;
  2490. bottom: 0;
  2491. z-index: 9999;
  2492. opacity: 0;
  2493. background: rgba($base-overlay-background, 0.7);
  2494. transform: translateZ(0);
  2495. }
  2496. .modal-root__container {
  2497. position: absolute;
  2498. top: 0;
  2499. left: 0;
  2500. width: 100%;
  2501. height: 100%;
  2502. display: flex;
  2503. flex-direction: column;
  2504. align-items: center;
  2505. justify-content: center;
  2506. align-content: space-around;
  2507. z-index: 9999;
  2508. opacity: 0;
  2509. pointer-events: none;
  2510. user-select: none;
  2511. }
  2512. .modal-root__modal {
  2513. pointer-events: auto;
  2514. display: flex;
  2515. z-index: 9999;
  2516. }
  2517. .media-modal {
  2518. max-width: 80vw;
  2519. max-height: 80vh;
  2520. position: relative;
  2521. .extended-video-player,
  2522. img,
  2523. canvas,
  2524. video {
  2525. max-width: 80vw;
  2526. max-height: 80vh;
  2527. width: auto;
  2528. height: auto;
  2529. margin: auto;
  2530. }
  2531. .extended-video-player,
  2532. video {
  2533. display: flex;
  2534. width: 80vw;
  2535. height: 80vh;
  2536. }
  2537. img,
  2538. canvas {
  2539. display: block;
  2540. background: url('../images/void.png') repeat;
  2541. object-fit: contain;
  2542. }
  2543. .react-swipeable-view-container {
  2544. max-width: 80vw;
  2545. }
  2546. }
  2547. .media-modal__content {
  2548. background: $base-overlay-background;
  2549. }
  2550. .media-modal__close {
  2551. position: absolute;
  2552. right: 4px;
  2553. top: 4px;
  2554. z-index: 100;
  2555. }
  2556. .onboarding-modal,
  2557. .error-modal,
  2558. .embed-modal {
  2559. background: $ui-secondary-color;
  2560. color: $ui-base-color;
  2561. border-radius: 8px;
  2562. overflow: hidden;
  2563. display: flex;
  2564. flex-direction: column;
  2565. }
  2566. .onboarding-modal__pager {
  2567. height: 80vh;
  2568. width: 80vw;
  2569. max-width: 520px;
  2570. max-height: 420px;
  2571. .react-swipeable-view-container > div {
  2572. width: 100%;
  2573. height: 100%;
  2574. box-sizing: border-box;
  2575. padding: 25px;
  2576. display: none;
  2577. flex-direction: column;
  2578. align-items: center;
  2579. justify-content: center;
  2580. display: flex;
  2581. user-select: text;
  2582. }
  2583. }
  2584. .error-modal__body {
  2585. height: 80vh;
  2586. width: 80vw;
  2587. max-width: 520px;
  2588. max-height: 420px;
  2589. position: relative;
  2590. & > div {
  2591. position: absolute;
  2592. top: 0;
  2593. left: 0;
  2594. width: 100%;
  2595. height: 100%;
  2596. box-sizing: border-box;
  2597. padding: 25px;
  2598. display: none;
  2599. flex-direction: column;
  2600. align-items: center;
  2601. justify-content: center;
  2602. display: flex;
  2603. opacity: 0;
  2604. user-select: text;
  2605. }
  2606. }
  2607. .error-modal__body {
  2608. display: flex;
  2609. flex-direction: column;
  2610. justify-content: center;
  2611. align-items: center;
  2612. text-align: center;
  2613. }
  2614. @media screen and (max-width: 550px) {
  2615. .onboarding-modal {
  2616. width: 100%;
  2617. height: 100%;
  2618. border-radius: 0;
  2619. }
  2620. .onboarding-modal__pager {
  2621. width: 100%;
  2622. height: auto;
  2623. max-width: none;
  2624. max-height: none;
  2625. flex: 1 1 auto;
  2626. }
  2627. }
  2628. .onboarding-modal__paginator,
  2629. .error-modal__footer {
  2630. flex: 0 0 auto;
  2631. background: darken($ui-secondary-color, 8%);
  2632. display: flex;
  2633. padding: 25px;
  2634. & > div {
  2635. min-width: 33px;
  2636. }
  2637. .onboarding-modal__nav,
  2638. .error-modal__nav {
  2639. color: darken($ui-secondary-color, 34%);
  2640. background-color: transparent;
  2641. border: 0;
  2642. font-size: 14px;
  2643. font-weight: 500;
  2644. padding: 0;
  2645. line-height: inherit;
  2646. height: auto;
  2647. &:hover,
  2648. &:focus,
  2649. &:active {
  2650. color: darken($ui-secondary-color, 38%);
  2651. }
  2652. &.onboarding-modal__done,
  2653. &.onboarding-modal__next {
  2654. color: $ui-highlight-color;
  2655. }
  2656. }
  2657. }
  2658. .error-modal__footer {
  2659. justify-content: center;
  2660. }
  2661. .onboarding-modal__dots {
  2662. flex: 1 1 auto;
  2663. display: flex;
  2664. align-items: center;
  2665. justify-content: center;
  2666. }
  2667. .onboarding-modal__dot {
  2668. width: 14px;
  2669. height: 14px;
  2670. border-radius: 14px;
  2671. background: darken($ui-secondary-color, 16%);
  2672. margin: 0 3px;
  2673. cursor: pointer;
  2674. &:hover {
  2675. background: darken($ui-secondary-color, 18%);
  2676. }
  2677. &.active {
  2678. cursor: default;
  2679. background: darken($ui-secondary-color, 24%);
  2680. }
  2681. }
  2682. .onboarding-modal__page__wrapper {
  2683. pointer-events: none;
  2684. &.onboarding-modal__page__wrapper--active {
  2685. pointer-events: auto;
  2686. }
  2687. }
  2688. .onboarding-modal__page {
  2689. cursor: default;
  2690. line-height: 21px;
  2691. h1 {
  2692. font-size: 18px;
  2693. font-weight: 500;
  2694. color: $ui-base-color;
  2695. margin-bottom: 20px;
  2696. }
  2697. a {
  2698. color: $ui-highlight-color;
  2699. &:hover,
  2700. &:focus,
  2701. &:active {
  2702. color: lighten($ui-highlight-color, 4%);
  2703. }
  2704. }
  2705. p {
  2706. font-size: 16px;
  2707. color: lighten($ui-base-color, 8%);
  2708. margin-top: 10px;
  2709. margin-bottom: 10px;
  2710. &:last-child {
  2711. margin-bottom: 0;
  2712. }
  2713. strong {
  2714. font-weight: 500;
  2715. background: $ui-base-color;
  2716. color: $ui-secondary-color;
  2717. border-radius: 4px;
  2718. font-size: 14px;
  2719. padding: 3px 6px;
  2720. }
  2721. }
  2722. }
  2723. .onboarding-modal__page-one {
  2724. display: flex;
  2725. align-items: center;
  2726. }
  2727. .onboarding-modal__page-one__elephant-friend {
  2728. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2729. width: 155px;
  2730. height: 193px;
  2731. margin-right: 15px;
  2732. }
  2733. @media screen and (max-width: 400px) {
  2734. .onboarding-modal__page-one {
  2735. flex-direction: column;
  2736. align-items: normal;
  2737. }
  2738. .onboarding-modal__page-one__elephant-friend {
  2739. width: 100%;
  2740. height: 30vh;
  2741. max-height: 160px;
  2742. margin-bottom: 5vh;
  2743. }
  2744. }
  2745. .onboarding-modal__page-two,
  2746. .onboarding-modal__page-three,
  2747. .onboarding-modal__page-four,
  2748. .onboarding-modal__page-five {
  2749. p {
  2750. text-align: left;
  2751. }
  2752. .figure {
  2753. background: darken($ui-base-color, 8%);
  2754. color: $ui-secondary-color;
  2755. margin-bottom: 20px;
  2756. border-radius: 4px;
  2757. padding: 10px;
  2758. text-align: center;
  2759. font-size: 14px;
  2760. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2761. .onboarding-modal__image {
  2762. border-radius: 4px;
  2763. margin-bottom: 10px;
  2764. }
  2765. &.non-interactive {
  2766. pointer-events: none;
  2767. text-align: left;
  2768. }
  2769. }
  2770. }
  2771. .onboarding-modal__page-four__columns {
  2772. .row {
  2773. display: flex;
  2774. margin-bottom: 20px;
  2775. & > div {
  2776. flex: 1 1 0;
  2777. margin: 0 10px;
  2778. &:first-child {
  2779. margin-left: 0;
  2780. }
  2781. &:last-child {
  2782. margin-right: 0;
  2783. }
  2784. p {
  2785. text-align: center;
  2786. }
  2787. }
  2788. &:last-child {
  2789. margin-bottom: 0;
  2790. }
  2791. }
  2792. .column-header {
  2793. color: $primary-text-color;
  2794. }
  2795. }
  2796. @media screen and (max-width: 320px) and (max-height: 600px) {
  2797. .onboarding-modal__page p {
  2798. font-size: 14px;
  2799. line-height: 20px;
  2800. }
  2801. .onboarding-modal__page-two .figure,
  2802. .onboarding-modal__page-three .figure,
  2803. .onboarding-modal__page-four .figure,
  2804. .onboarding-modal__page-five .figure {
  2805. font-size: 12px;
  2806. margin-bottom: 10px;
  2807. }
  2808. .onboarding-modal__page-four__columns .row {
  2809. margin-bottom: 10px;
  2810. }
  2811. .onboarding-modal__page-four__columns .column-header {
  2812. padding: 5px;
  2813. font-size: 12px;
  2814. }
  2815. }
  2816. .onboarding-modal__image {
  2817. border-radius: 8px;
  2818. width: 70vw;
  2819. max-width: 450px;
  2820. max-height: auto;
  2821. display: block;
  2822. margin: auto;
  2823. margin-bottom: 20px;
  2824. }
  2825. .onboard-sliders {
  2826. display: inline-block;
  2827. max-width: 30px;
  2828. max-height: auto;
  2829. margin-left: 10px;
  2830. }
  2831. .boost-modal,
  2832. .confirmation-modal,
  2833. .report-modal,
  2834. .actions-modal {
  2835. background: lighten($ui-secondary-color, 8%);
  2836. color: $ui-base-color;
  2837. border-radius: 8px;
  2838. overflow: hidden;
  2839. max-width: 90vw;
  2840. width: 480px;
  2841. position: relative;
  2842. flex-direction: column;
  2843. .status__display-name {
  2844. display: block;
  2845. max-width: 100%;
  2846. padding-right: 25px;
  2847. }
  2848. .status__avatar {
  2849. height: 28px;
  2850. left: 10px;
  2851. position: absolute;
  2852. top: 10px;
  2853. width: 48px;
  2854. }
  2855. }
  2856. .actions-modal {
  2857. .status {
  2858. background: $white;
  2859. border-bottom-color: $ui-secondary-color;
  2860. padding-top: 10px;
  2861. padding-bottom: 10px;
  2862. }
  2863. .dropdown-menu__separator {
  2864. border-bottom-color: $ui-secondary-color;
  2865. }
  2866. }
  2867. .boost-modal__container {
  2868. overflow-x: scroll;
  2869. padding: 10px;
  2870. .status {
  2871. user-select: text;
  2872. border-bottom: 0;
  2873. }
  2874. }
  2875. .boost-modal__action-bar,
  2876. .confirmation-modal__action-bar,
  2877. .report-modal__action-bar {
  2878. display: flex;
  2879. justify-content: space-between;
  2880. background: $ui-secondary-color;
  2881. padding: 10px;
  2882. line-height: 36px;
  2883. & > div {
  2884. flex: 1 1 auto;
  2885. text-align: right;
  2886. color: lighten($ui-base-color, 33%);
  2887. padding-right: 10px;
  2888. }
  2889. .button {
  2890. flex: 0 0 auto;
  2891. }
  2892. }
  2893. .boost-modal__status-header {
  2894. font-size: 15px;
  2895. }
  2896. .boost-modal__status-time {
  2897. float: right;
  2898. font-size: 14px;
  2899. }
  2900. .confirmation-modal {
  2901. max-width: 85vw;
  2902. @media screen and (min-width: 480px) {
  2903. max-width: 380px;
  2904. }
  2905. }
  2906. .report-modal__statuses,
  2907. .report-modal__comment {
  2908. padding: 10px;
  2909. }
  2910. .report-modal__statuses {
  2911. min-height: 20vh;
  2912. max-height: 40vh;
  2913. overflow-y: auto;
  2914. overflow-x: hidden;
  2915. }
  2916. .report-modal__comment {
  2917. .setting-text {
  2918. margin-top: 10px;
  2919. }
  2920. }
  2921. .actions-modal {
  2922. .status {
  2923. overflow-y: auto;
  2924. max-height: 300px;
  2925. }
  2926. max-height: 80vh;
  2927. max-width: 80vw;
  2928. .actions-modal__item-label {
  2929. font-weight: 500;
  2930. }
  2931. ul {
  2932. overflow-y: auto;
  2933. flex-shrink: 0;
  2934. li:empty {
  2935. margin: 0;
  2936. }
  2937. li:not(:empty) {
  2938. a {
  2939. color: $ui-base-color;
  2940. display: flex;
  2941. padding: 12px 16px;
  2942. font-size: 15px;
  2943. align-items: center;
  2944. text-decoration: none;
  2945. &,
  2946. button {
  2947. transition: none;
  2948. }
  2949. &.active,
  2950. &:hover,
  2951. &:active,
  2952. &:focus {
  2953. &,
  2954. button {
  2955. background: $ui-highlight-color;
  2956. color: $primary-text-color;
  2957. }
  2958. }
  2959. button:first-child {
  2960. margin-right: 10px;
  2961. }
  2962. }
  2963. }
  2964. }
  2965. }
  2966. .confirmation-modal__action-bar {
  2967. .confirmation-modal__cancel-button {
  2968. background-color: transparent;
  2969. color: darken($ui-secondary-color, 34%);
  2970. font-size: 14px;
  2971. font-weight: 500;
  2972. &:hover,
  2973. &:focus,
  2974. &:active {
  2975. color: darken($ui-secondary-color, 38%);
  2976. }
  2977. }
  2978. }
  2979. .confirmation-modal__container,
  2980. .report-modal__target {
  2981. padding: 30px;
  2982. font-size: 16px;
  2983. text-align: center;
  2984. strong {
  2985. font-weight: 500;
  2986. }
  2987. }
  2988. .loading-bar {
  2989. background-color: $ui-highlight-color;
  2990. height: 3px;
  2991. position: absolute;
  2992. top: 0;
  2993. left: 0;
  2994. }
  2995. .media-gallery__gifv__label {
  2996. display: block;
  2997. position: absolute;
  2998. color: $primary-text-color;
  2999. background: rgba($base-overlay-background, 0.5);
  3000. bottom: 6px;
  3001. left: 6px;
  3002. padding: 2px 6px;
  3003. border-radius: 2px;
  3004. font-size: 11px;
  3005. font-weight: 600;
  3006. z-index: 1;
  3007. pointer-events: none;
  3008. opacity: 0.9;
  3009. transition: opacity 0.1s ease;
  3010. }
  3011. .media-gallery__gifv {
  3012. &.autoplay {
  3013. .media-gallery__gifv__label {
  3014. display: none;
  3015. }
  3016. }
  3017. &:hover {
  3018. .media-gallery__gifv__label {
  3019. opacity: 1;
  3020. }
  3021. }
  3022. }
  3023. .attachment-list {
  3024. display: flex;
  3025. font-size: 14px;
  3026. border: 1px solid lighten($ui-base-color, 8%);
  3027. border-radius: 4px;
  3028. margin-top: 14px;
  3029. overflow: hidden;
  3030. }
  3031. .attachment-list__icon {
  3032. flex: 0 0 auto;
  3033. color: $ui-base-lighter-color;
  3034. padding: 8px 18px;
  3035. cursor: default;
  3036. border-right: 1px solid lighten($ui-base-color, 8%);
  3037. display: flex;
  3038. flex-direction: column;
  3039. align-items: center;
  3040. justify-content: center;
  3041. font-size: 26px;
  3042. .fa {
  3043. display: block;
  3044. }
  3045. }
  3046. .attachment-list__list {
  3047. list-style: none;
  3048. padding: 4px 0;
  3049. padding-left: 8px;
  3050. display: flex;
  3051. flex-direction: column;
  3052. justify-content: center;
  3053. li {
  3054. display: block;
  3055. padding: 4px 0;
  3056. }
  3057. a {
  3058. text-decoration: none;
  3059. color: $ui-base-lighter-color;
  3060. font-weight: 500;
  3061. &:hover {
  3062. text-decoration: underline;
  3063. }
  3064. }
  3065. }
  3066. /* Media Gallery */
  3067. .media-gallery {
  3068. box-sizing: border-box;
  3069. margin-top: 8px;
  3070. overflow: hidden;
  3071. position: relative;
  3072. width: 100%;
  3073. }
  3074. .media-gallery__item {
  3075. border: none;
  3076. box-sizing: border-box;
  3077. display: block;
  3078. float: left;
  3079. position: relative;
  3080. }
  3081. .media-gallery__item-thumbnail {
  3082. cursor: zoom-in;
  3083. display: block;
  3084. text-decoration: none;
  3085. height: 100%;
  3086. &,
  3087. img {
  3088. width: 100%;
  3089. height: 100%;
  3090. object-fit: cover;
  3091. }
  3092. }
  3093. .media-gallery__gifv {
  3094. height: 100%;
  3095. overflow: hidden;
  3096. position: relative;
  3097. width: 100%;
  3098. }
  3099. .media-gallery__item-gifv-thumbnail {
  3100. cursor: zoom-in;
  3101. height: 100%;
  3102. object-fit: cover;
  3103. position: relative;
  3104. top: 50%;
  3105. transform: translateY(-50%);
  3106. width: 100%;
  3107. z-index: 1;
  3108. }
  3109. .media-gallery__item-thumbnail-label {
  3110. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3111. clip: rect(1px, 1px, 1px, 1px);
  3112. overflow: hidden;
  3113. position: absolute;
  3114. }
  3115. /* End Media Gallery */
  3116. /* Status Video Player */
  3117. .status__video-player {
  3118. background: $base-overlay-background;
  3119. box-sizing: border-box;
  3120. cursor: default; /* May not be needed */
  3121. margin-top: 8px;
  3122. overflow: hidden;
  3123. position: relative;
  3124. }
  3125. .status__video-player-video {
  3126. height: 100%;
  3127. object-fit: cover;
  3128. position: relative;
  3129. top: 50%;
  3130. transform: translateY(-50%);
  3131. width: 100%;
  3132. z-index: 1;
  3133. }
  3134. .status__video-player-expand,
  3135. .status__video-player-mute {
  3136. color: $primary-text-color;
  3137. opacity: 0.8;
  3138. position: absolute;
  3139. right: 4px;
  3140. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3141. }
  3142. .status__video-player-spoiler {
  3143. display: none;
  3144. color: $primary-text-color;
  3145. left: 4px;
  3146. position: absolute;
  3147. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3148. top: 4px;
  3149. z-index: 100;
  3150. &.status__video-player-spoiler--visible {
  3151. display: block;
  3152. }
  3153. }
  3154. .status__video-player-expand {
  3155. bottom: 4px;
  3156. z-index: 100;
  3157. }
  3158. .status__video-player-mute {
  3159. top: 4px;
  3160. z-index: 5;
  3161. }
  3162. .video-player {
  3163. overflow: hidden;
  3164. position: relative;
  3165. background: $base-shadow-color;
  3166. max-width: 100%;
  3167. video {
  3168. height: 100%;
  3169. width: 100%;
  3170. z-index: 1;
  3171. }
  3172. &.fullscreen {
  3173. width: 100% !important;
  3174. height: 100% !important;
  3175. margin: 0;
  3176. video {
  3177. max-width: 100% !important;
  3178. max-height: 100% !important;
  3179. }
  3180. }
  3181. &.inline {
  3182. video {
  3183. object-fit: cover;
  3184. position: relative;
  3185. top: 50%;
  3186. transform: translateY(-50%);
  3187. }
  3188. }
  3189. &__controls {
  3190. position: absolute;
  3191. z-index: 2;
  3192. bottom: 0;
  3193. left: 0;
  3194. right: 0;
  3195. box-sizing: border-box;
  3196. background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 60%, transparent);
  3197. padding: 0 10px;
  3198. opacity: 0;
  3199. transition: opacity .1s ease;
  3200. &.active {
  3201. opacity: 1;
  3202. }
  3203. }
  3204. &.inactive {
  3205. video,
  3206. .video-player__controls {
  3207. visibility: hidden;
  3208. }
  3209. }
  3210. &__spoiler {
  3211. display: none;
  3212. position: absolute;
  3213. top: 0;
  3214. left: 0;
  3215. width: 100%;
  3216. height: 100%;
  3217. z-index: 4;
  3218. border: 0;
  3219. background: $base-shadow-color;
  3220. color: $ui-primary-color;
  3221. transition: none;
  3222. pointer-events: none;
  3223. &.active {
  3224. display: block;
  3225. pointer-events: auto;
  3226. &:hover,
  3227. &:active,
  3228. &:focus {
  3229. color: lighten($ui-primary-color, 8%);
  3230. }
  3231. }
  3232. &__title {
  3233. display: block;
  3234. font-size: 14px;
  3235. }
  3236. &__subtitle {
  3237. display: block;
  3238. font-size: 11px;
  3239. font-weight: 500;
  3240. }
  3241. }
  3242. &__buttons {
  3243. padding-bottom: 10px;
  3244. font-size: 16px;
  3245. &.left {
  3246. float: left;
  3247. button {
  3248. padding-right: 10px;
  3249. }
  3250. }
  3251. &.right {
  3252. float: right;
  3253. button {
  3254. padding-left: 10px;
  3255. }
  3256. }
  3257. button {
  3258. background: transparent;
  3259. padding: 0;
  3260. border: 0;
  3261. color: $white;
  3262. &:active,
  3263. &:hover,
  3264. &:focus {
  3265. color: $ui-highlight-color;
  3266. }
  3267. }
  3268. }
  3269. &__seek {
  3270. cursor: pointer;
  3271. height: 24px;
  3272. position: relative;
  3273. &::before {
  3274. content: "";
  3275. width: 100%;
  3276. background: rgba($white, 0.35);
  3277. display: block;
  3278. position: absolute;
  3279. height: 4px;
  3280. top: 10px;
  3281. }
  3282. &__progress {
  3283. display: block;
  3284. position: absolute;
  3285. height: 4px;
  3286. top: 10px;
  3287. background: $ui-highlight-color;
  3288. }
  3289. &__handle {
  3290. position: absolute;
  3291. z-index: 3;
  3292. opacity: 0;
  3293. border-radius: 50%;
  3294. width: 12px;
  3295. height: 12px;
  3296. top: 6px;
  3297. margin-left: -6px;
  3298. transition: opacity .1s ease;
  3299. background: $ui-highlight-color;
  3300. pointer-events: none;
  3301. &.active {
  3302. opacity: 1;
  3303. }
  3304. }
  3305. &:hover {
  3306. .video-player__seek__handle {
  3307. opacity: 1;
  3308. }
  3309. }
  3310. }
  3311. }
  3312. .media-spoiler-video {
  3313. background-size: cover;
  3314. background-repeat: no-repeat;
  3315. background-position: center;
  3316. cursor: pointer;
  3317. margin-top: 8px;
  3318. position: relative;
  3319. border: 0;
  3320. display: block;
  3321. }
  3322. .media-spoiler-video-play-icon {
  3323. border-radius: 100px;
  3324. color: rgba($primary-text-color, 0.8);
  3325. font-size: 36px;
  3326. left: 50%;
  3327. padding: 5px;
  3328. position: absolute;
  3329. top: 50%;
  3330. transform: translate(-50%, -50%);
  3331. }
  3332. /* End Video Player */
  3333. .account-gallery__container {
  3334. margin: -2px;
  3335. padding: 4px;
  3336. }
  3337. .account-gallery__item {
  3338. float: left;
  3339. width: 96px;
  3340. height: 96px;
  3341. margin: 2px;
  3342. a {
  3343. display: block;
  3344. width: 100%;
  3345. height: 100%;
  3346. background-color: $base-overlay-background;
  3347. background-size: cover;
  3348. background-position: center;
  3349. position: relative;
  3350. }
  3351. }
  3352. .account-section-headline {
  3353. color: $ui-base-lighter-color;
  3354. background: lighten($ui-base-color, 2%);
  3355. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3356. padding: 15px 10px;
  3357. font-size: 14px;
  3358. font-weight: 500;
  3359. position: relative;
  3360. cursor: default;
  3361. &::before,
  3362. &::after {
  3363. display: block;
  3364. content: "";
  3365. position: absolute;
  3366. bottom: 0;
  3367. left: 18px;
  3368. width: 0;
  3369. height: 0;
  3370. border-style: solid;
  3371. border-width: 0 10px 10px;
  3372. border-color: transparent transparent lighten($ui-base-color, 4%);
  3373. }
  3374. &::after {
  3375. bottom: -1px;
  3376. border-color: transparent transparent $ui-base-color;
  3377. }
  3378. }
  3379. ::-webkit-scrollbar-thumb {
  3380. border-radius: 0;
  3381. }
  3382. noscript {
  3383. text-align: center;
  3384. img {
  3385. width: 200px;
  3386. opacity: 0.5;
  3387. animation: flicker 4s infinite;
  3388. }
  3389. div {
  3390. font-size: 14px;
  3391. margin: 30px auto;
  3392. color: $ui-secondary-color;
  3393. max-width: 400px;
  3394. a {
  3395. color: $ui-highlight-color;
  3396. text-decoration: underline;
  3397. &:hover {
  3398. text-decoration: none;
  3399. }
  3400. }
  3401. }
  3402. }
  3403. @keyframes flicker {
  3404. 0% { opacity: 1; }
  3405. 30% { opacity: 0.75; }
  3406. 100% { opacity: 1; }
  3407. }
  3408. @media screen and (max-width: 1024px) and (max-height: 400px) {
  3409. $duration: 400ms;
  3410. $delay: 100ms;
  3411. .tabs-bar,
  3412. .search {
  3413. will-change: margin-top;
  3414. transition: margin-top $duration $delay;
  3415. }
  3416. .navigation-bar {
  3417. will-change: padding-bottom;
  3418. transition: padding-bottom $duration $delay;
  3419. }
  3420. .navigation-bar {
  3421. & > a:first-child {
  3422. will-change: margin-top, margin-left, width;
  3423. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay);
  3424. }
  3425. & > .navigation-bar__profile-edit {
  3426. will-change: margin-top;
  3427. transition: margin-top $duration $delay;
  3428. }
  3429. & > .icon-button {
  3430. will-change: opacity;
  3431. transition: opacity $duration $delay;
  3432. }
  3433. }
  3434. .is-composing {
  3435. .tabs-bar,
  3436. .search {
  3437. margin-top: -50px;
  3438. }
  3439. .navigation-bar {
  3440. padding-bottom: 0;
  3441. & > a:first-child {
  3442. margin-top: -50px;
  3443. margin-left: -40px;
  3444. }
  3445. .navigation-bar__profile {
  3446. padding-top: 2px;
  3447. }
  3448. .navigation-bar__profile-edit {
  3449. position: absolute;
  3450. margin-top: -50px;
  3451. }
  3452. .icon-button {
  3453. pointer-events: auto;
  3454. opacity: 1;
  3455. }
  3456. }
  3457. }
  3458. }
  3459. .embed-modal {
  3460. max-width: 80vw;
  3461. max-height: 80vh;
  3462. h4 {
  3463. padding: 30px;
  3464. font-weight: 500;
  3465. font-size: 16px;
  3466. text-align: center;
  3467. }
  3468. .embed-modal__container {
  3469. padding: 10px;
  3470. .hint {
  3471. margin-bottom: 15px;
  3472. }
  3473. .embed-modal__html {
  3474. color: $ui-secondary-color;
  3475. outline: 0;
  3476. box-sizing: border-box;
  3477. display: block;
  3478. width: 100%;
  3479. border: none;
  3480. padding: 10px;
  3481. font-family: 'mastodon-font-monospace', monospace;
  3482. background: $ui-base-color;
  3483. color: $ui-primary-color;
  3484. font-size: 14px;
  3485. margin: 0;
  3486. margin-bottom: 15px;
  3487. &::-moz-focus-inner {
  3488. border: 0;
  3489. }
  3490. &::-moz-focus-inner,
  3491. &:focus,
  3492. &:active {
  3493. outline: 0 !important;
  3494. }
  3495. &:focus {
  3496. background: lighten($ui-base-color, 4%);
  3497. }
  3498. @media screen and (max-width: 600px) {
  3499. font-size: 16px;
  3500. }
  3501. }
  3502. .embed-modal__iframe {
  3503. width: 400px;
  3504. max-width: 100%;
  3505. overflow: hidden;
  3506. border: 0;
  3507. }
  3508. }
  3509. }