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.

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