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.

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