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.

3951 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
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
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
  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. }
  885. strong {
  886. font-size: 16px;
  887. color: $primary-text-color;
  888. }
  889. }
  890. .detailed-status__display-avatar {
  891. float: left;
  892. margin-right: 10px;
  893. }
  894. .status__avatar {
  895. height: 48px;
  896. left: 10px;
  897. position: absolute;
  898. top: 10px;
  899. width: 48px;
  900. }
  901. .muted {
  902. .status__content p,
  903. .status__content a {
  904. color: $ui-base-lighter-color;
  905. }
  906. .status__display-name strong {
  907. color: $ui-base-lighter-color;
  908. }
  909. .status__avatar {
  910. opacity: 0.5;
  911. }
  912. a.status__content__spoiler-link {
  913. background: $ui-base-lighter-color;
  914. color: lighten($ui-base-color, 4%);
  915. &:hover {
  916. background: lighten($ui-base-color, 29%);
  917. text-decoration: none;
  918. }
  919. }
  920. }
  921. .notification__message {
  922. margin-left: 68px;
  923. padding: 8px 0;
  924. padding-bottom: 0;
  925. cursor: default;
  926. color: $ui-primary-color;
  927. font-size: 15px;
  928. position: relative;
  929. .fa {
  930. color: $ui-highlight-color;
  931. }
  932. }
  933. .notification__favourite-icon-wrapper {
  934. left: -26px;
  935. position: absolute;
  936. .star-icon {
  937. color: $gold-star;
  938. }
  939. }
  940. .star-icon.active {
  941. color: $gold-star;
  942. }
  943. .notification__display-name {
  944. color: inherit;
  945. font-weight: 500;
  946. text-decoration: none;
  947. &:hover {
  948. color: $primary-text-color;
  949. text-decoration: underline;
  950. }
  951. }
  952. .display-name {
  953. display: block;
  954. max-width: 100%;
  955. overflow: hidden;
  956. text-overflow: ellipsis;
  957. white-space: nowrap;
  958. }
  959. .display-name__html {
  960. font-weight: 500;
  961. }
  962. .display-name__account {
  963. font-size: 14px;
  964. }
  965. .status__relative-time,
  966. .detailed-status__datetime {
  967. &:hover {
  968. text-decoration: underline;
  969. }
  970. }
  971. .image-loader {
  972. position: relative;
  973. &.image-loader--loading {
  974. .image-loader__preview-canvas {
  975. filter: blur(2px);
  976. }
  977. }
  978. .image-loader__img {
  979. position: absolute;
  980. top: 0;
  981. left: 0;
  982. right: 0;
  983. max-width: 100%;
  984. max-height: 100%;
  985. background-image: none;
  986. }
  987. &.image-loader--amorphous {
  988. position: static;
  989. .image-loader__preview-canvas {
  990. display: none;
  991. }
  992. .image-loader__img {
  993. position: static;
  994. width: auto;
  995. height: auto;
  996. }
  997. }
  998. }
  999. .navigation-bar {
  1000. padding: 10px;
  1001. display: flex;
  1002. flex-shrink: 0;
  1003. cursor: default;
  1004. color: $ui-primary-color;
  1005. strong {
  1006. color: $primary-text-color;
  1007. }
  1008. .permalink {
  1009. text-decoration: none;
  1010. }
  1011. .icon-button {
  1012. pointer-events: none;
  1013. opacity: 0;
  1014. }
  1015. }
  1016. .navigation-bar__profile {
  1017. flex: 1 1 auto;
  1018. margin-left: 8px;
  1019. }
  1020. .navigation-bar__profile-account {
  1021. display: block;
  1022. font-weight: 500;
  1023. }
  1024. .navigation-bar__profile-edit {
  1025. color: inherit;
  1026. text-decoration: none;
  1027. }
  1028. .dropdown {
  1029. display: inline-block;
  1030. }
  1031. .dropdown__content {
  1032. display: none;
  1033. position: absolute;
  1034. }
  1035. .dropdown__sep {
  1036. border-bottom: 1px solid darken($ui-secondary-color, 8%);
  1037. margin: 5px 7px 6px;
  1038. padding-top: 1px;
  1039. }
  1040. .dropdown--active .dropdown__content {
  1041. display: block;
  1042. line-height: 18px;
  1043. max-width: 311px;
  1044. right: 0;
  1045. text-align: left;
  1046. z-index: 9999;
  1047. & > ul {
  1048. list-style: none;
  1049. background: $ui-secondary-color;
  1050. padding: 4px 0;
  1051. border-radius: 4px;
  1052. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1053. min-width: 140px;
  1054. position: relative;
  1055. }
  1056. &.dropdown__right {
  1057. right: 0;
  1058. }
  1059. &.dropdown__left {
  1060. & > ul {
  1061. left: -98px;
  1062. }
  1063. }
  1064. & > ul > li > a {
  1065. font-size: 13px;
  1066. line-height: 18px;
  1067. display: block;
  1068. padding: 4px 14px;
  1069. box-sizing: border-box;
  1070. text-decoration: none;
  1071. background: $ui-secondary-color;
  1072. color: $ui-base-color;
  1073. overflow: hidden;
  1074. text-overflow: ellipsis;
  1075. white-space: nowrap;
  1076. &:focus {
  1077. outline: 0;
  1078. }
  1079. &:hover {
  1080. background: $ui-highlight-color;
  1081. color: $ui-secondary-color;
  1082. }
  1083. }
  1084. }
  1085. .dropdown__icon {
  1086. vertical-align: middle;
  1087. }
  1088. .static-content {
  1089. padding: 10px;
  1090. padding-top: 20px;
  1091. color: $ui-base-lighter-color;
  1092. h1 {
  1093. font-size: 16px;
  1094. font-weight: 500;
  1095. margin-bottom: 40px;
  1096. text-align: center;
  1097. }
  1098. p {
  1099. font-size: 13px;
  1100. margin-bottom: 20px;
  1101. }
  1102. }
  1103. .columns-area {
  1104. display: flex;
  1105. flex: 1 1 auto;
  1106. flex-direction: row;
  1107. justify-content: flex-start;
  1108. overflow-x: auto;
  1109. position: relative;
  1110. }
  1111. @media screen and (min-width: 360px) {
  1112. .columns-area {
  1113. padding: 10px;
  1114. }
  1115. .react-swipeable-view-container .columns-area {
  1116. height: calc(100% - 20px) !important;
  1117. }
  1118. }
  1119. .react-swipeable-view-container {
  1120. &,
  1121. .columns-area,
  1122. .drawer,
  1123. .column {
  1124. height: 100%;
  1125. }
  1126. }
  1127. .react-swipeable-view-container > * {
  1128. display: flex;
  1129. align-items: center;
  1130. justify-content: center;
  1131. height: 100%;
  1132. }
  1133. .column {
  1134. width: 330px;
  1135. position: relative;
  1136. box-sizing: border-box;
  1137. display: flex;
  1138. flex-direction: column;
  1139. > .scrollable {
  1140. background: $ui-base-color;
  1141. }
  1142. }
  1143. .ui {
  1144. flex: 0 0 auto;
  1145. display: flex;
  1146. flex-direction: column;
  1147. width: 100%;
  1148. height: 100%;
  1149. background: darken($ui-base-color, 7%);
  1150. }
  1151. .drawer {
  1152. width: 300px;
  1153. box-sizing: border-box;
  1154. display: flex;
  1155. flex-direction: column;
  1156. overflow-y: hidden;
  1157. }
  1158. .drawer__tab {
  1159. display: block;
  1160. flex: 1 1 auto;
  1161. padding: 15px 5px 13px;
  1162. color: $ui-primary-color;
  1163. text-decoration: none;
  1164. text-align: center;
  1165. font-size: 16px;
  1166. border-bottom: 2px solid transparent;
  1167. }
  1168. .column,
  1169. .drawer {
  1170. flex: 1 1 100%;
  1171. overflow: hidden;
  1172. @supports(display: grid) { // hack to fix Chrome <57
  1173. contain: strict;
  1174. }
  1175. }
  1176. @media screen and (min-width: 360px) {
  1177. .tabs-bar {
  1178. margin: 10px;
  1179. margin-bottom: 0;
  1180. }
  1181. .search {
  1182. margin-bottom: 10px;
  1183. }
  1184. }
  1185. @media screen and (max-width: 1024px) {
  1186. .column,
  1187. .drawer {
  1188. width: 100%;
  1189. padding: 0;
  1190. }
  1191. .columns-area {
  1192. flex-direction: column;
  1193. }
  1194. .search__input,
  1195. .autosuggest-textarea__textarea {
  1196. font-size: 16px;
  1197. }
  1198. }
  1199. @media screen and (min-width: 1025px) {
  1200. .columns-area {
  1201. padding: 0;
  1202. }
  1203. .column,
  1204. .drawer {
  1205. flex: 0 0 auto;
  1206. padding: 10px;
  1207. padding-left: 5px;
  1208. padding-right: 5px;
  1209. &:first-child {
  1210. padding-left: 10px;
  1211. }
  1212. &:last-child {
  1213. padding-right: 10px;
  1214. }
  1215. }
  1216. .columns-area > div {
  1217. .column,
  1218. .drawer {
  1219. padding-left: 5px;
  1220. padding-right: 5px;
  1221. }
  1222. }
  1223. }
  1224. .drawer__pager {
  1225. box-sizing: border-box;
  1226. padding: 0;
  1227. flex-grow: 1;
  1228. position: relative;
  1229. overflow: hidden;
  1230. display: flex;
  1231. }
  1232. .drawer__inner {
  1233. position: absolute;
  1234. top: 0;
  1235. left: 0;
  1236. background: lighten($ui-base-color, 13%);
  1237. box-sizing: border-box;
  1238. padding: 0;
  1239. display: flex;
  1240. flex-direction: column;
  1241. overflow: hidden;
  1242. overflow-y: auto;
  1243. width: 100%;
  1244. height: 100%;
  1245. &.darker {
  1246. background: $ui-base-color;
  1247. }
  1248. }
  1249. .pseudo-drawer {
  1250. background: lighten($ui-base-color, 13%);
  1251. font-size: 13px;
  1252. text-align: left;
  1253. }
  1254. .drawer__header {
  1255. flex: 0 0 auto;
  1256. font-size: 16px;
  1257. background: lighten($ui-base-color, 8%);
  1258. margin-bottom: 10px;
  1259. display: flex;
  1260. flex-direction: row;
  1261. a {
  1262. transition: background 100ms ease-in;
  1263. &:hover {
  1264. background: lighten($ui-base-color, 3%);
  1265. transition: background 200ms ease-out;
  1266. }
  1267. }
  1268. }
  1269. .tabs-bar {
  1270. display: flex;
  1271. background: lighten($ui-base-color, 8%);
  1272. flex: 0 0 auto;
  1273. overflow-y: auto;
  1274. }
  1275. .tabs-bar__link {
  1276. display: block;
  1277. flex: 1 1 auto;
  1278. padding: 15px 10px;
  1279. color: $primary-text-color;
  1280. text-decoration: none;
  1281. text-align: center;
  1282. font-size: 14px;
  1283. font-weight: 500;
  1284. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1285. transition: all 200ms linear;
  1286. .fa {
  1287. font-weight: 400;
  1288. font-size: 16px;
  1289. }
  1290. &.active {
  1291. border-bottom: 2px solid $ui-highlight-color;
  1292. color: $ui-highlight-color;
  1293. }
  1294. &:hover,
  1295. &:focus,
  1296. &:active {
  1297. @media screen and (min-width: 1025px) {
  1298. background: lighten($ui-base-color, 14%);
  1299. transition: all 100ms linear;
  1300. }
  1301. }
  1302. span {
  1303. margin-left: 5px;
  1304. display: none;
  1305. }
  1306. }
  1307. @media screen and (min-width: 600px) {
  1308. .tabs-bar__link {
  1309. span {
  1310. display: inline;
  1311. }
  1312. }
  1313. }
  1314. @media screen and (min-width: 1025px) {
  1315. .tabs-bar {
  1316. display: none;
  1317. }
  1318. }
  1319. .scrollable {
  1320. overflow-y: scroll;
  1321. overflow-x: hidden;
  1322. flex: 1 1 auto;
  1323. -webkit-overflow-scrolling: touch;
  1324. @supports(display: grid) { // hack to fix Chrome <57
  1325. contain: strict;
  1326. }
  1327. &.optionally-scrollable {
  1328. overflow-y: auto;
  1329. }
  1330. }
  1331. .column-back-button {
  1332. background: lighten($ui-base-color, 4%);
  1333. color: $ui-highlight-color;
  1334. cursor: pointer;
  1335. flex: 0 0 auto;
  1336. font-size: 16px;
  1337. border: 0;
  1338. text-align: unset;
  1339. padding: 15px;
  1340. margin: 0;
  1341. z-index: 3;
  1342. &:hover {
  1343. text-decoration: underline;
  1344. }
  1345. }
  1346. .column-header__back-button {
  1347. background: lighten($ui-base-color, 4%);
  1348. border: 0;
  1349. font-family: inherit;
  1350. color: $ui-highlight-color;
  1351. cursor: pointer;
  1352. flex: 0 0 auto;
  1353. font-size: 16px;
  1354. padding: 0 5px 0 0;
  1355. z-index: 3;
  1356. &:hover {
  1357. text-decoration: underline;
  1358. }
  1359. }
  1360. .column-back-button__icon {
  1361. display: inline-block;
  1362. margin-right: 5px;
  1363. }
  1364. .column-back-button--slim {
  1365. position: relative;
  1366. }
  1367. .column-back-button--slim-button {
  1368. cursor: pointer;
  1369. flex: 0 0 auto;
  1370. font-size: 16px;
  1371. padding: 15px;
  1372. position: absolute;
  1373. right: 0;
  1374. top: -48px;
  1375. }
  1376. .react-toggle {
  1377. display: inline-block;
  1378. position: relative;
  1379. cursor: pointer;
  1380. background-color: transparent;
  1381. border: 0;
  1382. padding: 0;
  1383. user-select: none;
  1384. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  1385. -webkit-tap-highlight-color: transparent;
  1386. }
  1387. .react-toggle-screenreader-only {
  1388. border: 0;
  1389. clip: rect(0 0 0 0);
  1390. height: 1px;
  1391. margin: -1px;
  1392. overflow: hidden;
  1393. padding: 0;
  1394. position: absolute;
  1395. width: 1px;
  1396. }
  1397. .react-toggle--disabled {
  1398. cursor: not-allowed;
  1399. opacity: 0.5;
  1400. transition: opacity 0.25s;
  1401. }
  1402. .react-toggle-track {
  1403. width: 50px;
  1404. height: 24px;
  1405. padding: 0;
  1406. border-radius: 30px;
  1407. background-color: $ui-base-color;
  1408. transition: all 0.2s ease;
  1409. }
  1410. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  1411. background-color: darken($ui-base-color, 10%);
  1412. }
  1413. .react-toggle--checked .react-toggle-track {
  1414. background-color: $ui-highlight-color;
  1415. }
  1416. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  1417. background-color: lighten($ui-highlight-color, 10%);
  1418. }
  1419. .react-toggle-track-check {
  1420. position: absolute;
  1421. width: 14px;
  1422. height: 10px;
  1423. top: 0;
  1424. bottom: 0;
  1425. margin-top: auto;
  1426. margin-bottom: auto;
  1427. line-height: 0;
  1428. left: 8px;
  1429. opacity: 0;
  1430. transition: opacity 0.25s ease;
  1431. }
  1432. .react-toggle--checked .react-toggle-track-check {
  1433. opacity: 1;
  1434. transition: opacity 0.25s ease;
  1435. }
  1436. .react-toggle-track-x {
  1437. position: absolute;
  1438. width: 10px;
  1439. height: 10px;
  1440. top: 0;
  1441. bottom: 0;
  1442. margin-top: auto;
  1443. margin-bottom: auto;
  1444. line-height: 0;
  1445. right: 10px;
  1446. opacity: 1;
  1447. transition: opacity 0.25s ease;
  1448. }
  1449. .react-toggle--checked .react-toggle-track-x {
  1450. opacity: 0;
  1451. }
  1452. .react-toggle-thumb {
  1453. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  1454. position: absolute;
  1455. top: 1px;
  1456. left: 1px;
  1457. width: 22px;
  1458. height: 22px;
  1459. border: 1px solid $ui-base-color;
  1460. border-radius: 50%;
  1461. background-color: darken($simple-background-color, 2%);
  1462. box-sizing: border-box;
  1463. transition: all 0.25s ease;
  1464. }
  1465. .react-toggle--checked .react-toggle-thumb {
  1466. left: 27px;
  1467. border-color: $ui-highlight-color;
  1468. }
  1469. .column-link {
  1470. background: lighten($ui-base-color, 8%);
  1471. color: $primary-text-color;
  1472. display: block;
  1473. font-size: 16px;
  1474. padding: 15px;
  1475. text-decoration: none;
  1476. &:hover {
  1477. background: lighten($ui-base-color, 11%);
  1478. }
  1479. }
  1480. .column-link__icon {
  1481. display: inline-block;
  1482. margin-right: 5px;
  1483. }
  1484. .column-subheading {
  1485. background: $ui-base-color;
  1486. color: $ui-base-lighter-color;
  1487. padding: 8px 20px;
  1488. font-size: 12px;
  1489. font-weight: 500;
  1490. text-transform: uppercase;
  1491. cursor: default;
  1492. }
  1493. .autosuggest-textarea,
  1494. .spoiler-input {
  1495. position: relative;
  1496. }
  1497. .autosuggest-textarea__textarea,
  1498. .spoiler-input__input {
  1499. display: block;
  1500. box-sizing: border-box;
  1501. width: 100%;
  1502. margin: 0;
  1503. color: $ui-base-color;
  1504. background: $simple-background-color;
  1505. padding: 10px;
  1506. font-family: inherit;
  1507. font-size: 14px;
  1508. resize: vertical;
  1509. border: 0;
  1510. outline: 0;
  1511. &:focus {
  1512. outline: 0;
  1513. }
  1514. @media screen and (max-width: 600px) {
  1515. font-size: 16px;
  1516. }
  1517. }
  1518. .spoiler-input__input {
  1519. border-radius: 4px;
  1520. }
  1521. .autosuggest-textarea__textarea {
  1522. min-height: 100px;
  1523. border-radius: 4px 4px 0 0;
  1524. padding-bottom: 0;
  1525. padding-right: 10px + 22px;
  1526. resize: none;
  1527. @media screen and (max-width: 600px) {
  1528. height: 100px !important; // prevent auto-resize textarea
  1529. resize: vertical;
  1530. }
  1531. }
  1532. .autosuggest-textarea__suggestions {
  1533. display: none;
  1534. position: absolute;
  1535. top: 100%;
  1536. width: 100%;
  1537. z-index: 99;
  1538. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1539. background: $ui-secondary-color;
  1540. color: $ui-base-color;
  1541. font-size: 14px;
  1542. &.autosuggest-textarea__suggestions--visible {
  1543. display: block;
  1544. }
  1545. }
  1546. .autosuggest-textarea__suggestions__item {
  1547. padding: 10px;
  1548. cursor: pointer;
  1549. &:hover {
  1550. background: darken($ui-secondary-color, 10%);
  1551. }
  1552. &.selected {
  1553. background: $ui-highlight-color;
  1554. color: $base-border-color;
  1555. }
  1556. }
  1557. .autosuggest-account {
  1558. overflow: hidden;
  1559. }
  1560. .autosuggest-account-icon {
  1561. float: left;
  1562. margin-right: 5px;
  1563. }
  1564. .autosuggest-status {
  1565. overflow: hidden;
  1566. white-space: nowrap;
  1567. text-overflow: ellipsis;
  1568. strong {
  1569. font-weight: 500;
  1570. }
  1571. }
  1572. .character-counter__wrapper {
  1573. line-height: 36px;
  1574. margin: 0 16px 0 8px;
  1575. padding-top: 10px;
  1576. }
  1577. .character-counter {
  1578. cursor: default;
  1579. font-size: 16px;
  1580. }
  1581. .character-counter--over {
  1582. color: $warning-red;
  1583. }
  1584. .getting-started__wrapper {
  1585. position: relative;
  1586. overflow-y: auto;
  1587. }
  1588. .getting-started__footer {
  1589. display: flex;
  1590. flex-direction: column;
  1591. }
  1592. .getting-started {
  1593. box-sizing: border-box;
  1594. padding-bottom: 235px;
  1595. background: url('../images/mastodon-getting-started.png') no-repeat 0 100%;
  1596. flex: 1 0 auto;
  1597. p {
  1598. color: $ui-secondary-color;
  1599. }
  1600. a {
  1601. color: $ui-base-lighter-color;
  1602. }
  1603. }
  1604. .setting-text {
  1605. color: $ui-primary-color;
  1606. background: transparent;
  1607. border: none;
  1608. border-bottom: 2px solid $ui-primary-color;
  1609. box-sizing: border-box;
  1610. display: block;
  1611. font-family: inherit;
  1612. margin-bottom: 10px;
  1613. padding: 7px 0;
  1614. width: 100%;
  1615. &:focus,
  1616. &:active {
  1617. color: $primary-text-color;
  1618. border-bottom-color: $ui-highlight-color;
  1619. }
  1620. @media screen and (max-width: 600px) {
  1621. font-size: 16px;
  1622. }
  1623. &.light {
  1624. color: $ui-base-color;
  1625. border-bottom: 2px solid lighten($ui-base-color, 27%);
  1626. &:focus,
  1627. &:active {
  1628. color: $ui-base-color;
  1629. border-bottom-color: $ui-highlight-color;
  1630. }
  1631. }
  1632. }
  1633. @import 'boost';
  1634. button.icon-button i.fa-retweet {
  1635. background-position: 0 0;
  1636. height: 19px;
  1637. transition: background-position 0.9s steps(10);
  1638. transition-duration: 0s;
  1639. vertical-align: middle;
  1640. width: 22px;
  1641. &::before {
  1642. display: none !important;
  1643. }
  1644. }
  1645. button.icon-button.active i.fa-retweet {
  1646. transition-duration: 0.9s;
  1647. background-position: 0 100%;
  1648. }
  1649. .status-card {
  1650. display: flex;
  1651. cursor: pointer;
  1652. font-size: 14px;
  1653. border: 1px solid lighten($ui-base-color, 8%);
  1654. border-radius: 4px;
  1655. color: $ui-base-lighter-color;
  1656. margin-top: 14px;
  1657. text-decoration: none;
  1658. overflow: hidden;
  1659. &:hover {
  1660. background: lighten($ui-base-color, 8%);
  1661. }
  1662. }
  1663. .status-card-video,
  1664. .status-card-rich,
  1665. .status-card-photo {
  1666. margin-top: 14px;
  1667. overflow: hidden;
  1668. iframe {
  1669. width: 100%;
  1670. height: auto;
  1671. }
  1672. }
  1673. .status-card-photo {
  1674. display: block;
  1675. text-decoration: none;
  1676. img {
  1677. display: block;
  1678. width: 100%;
  1679. height: auto;
  1680. margin: 0;
  1681. }
  1682. }
  1683. .status-card-video {
  1684. position: relative;
  1685. width: 100%;
  1686. height: auto;
  1687. padding-top: 56.25%;
  1688. iframe {
  1689. position: absolute;
  1690. top: 0;
  1691. left: 0;
  1692. bottom: 0;
  1693. right: 0;
  1694. width: 1px;
  1695. min-width: 100%;
  1696. height: 1px;
  1697. min-height: 100%;
  1698. margin: auto;
  1699. }
  1700. }
  1701. .status-card__title {
  1702. display: block;
  1703. font-weight: 500;
  1704. margin-bottom: 5px;
  1705. color: $ui-primary-color;
  1706. overflow: hidden;
  1707. text-overflow: ellipsis;
  1708. white-space: nowrap;
  1709. }
  1710. .status-card__content {
  1711. flex: 1 1 auto;
  1712. overflow: hidden;
  1713. padding: 14px 14px 14px 8px;
  1714. }
  1715. .status-card__description {
  1716. color: $ui-primary-color;
  1717. }
  1718. .status-card__host {
  1719. display: block;
  1720. margin-top: 5px;
  1721. font-size: 13px;
  1722. }
  1723. .status-card__image {
  1724. flex: 0 0 100px;
  1725. background: lighten($ui-base-color, 8%);
  1726. }
  1727. .status-card__image-image {
  1728. border-radius: 4px 0 0 4px;
  1729. display: block;
  1730. height: auto;
  1731. margin: 0;
  1732. width: 100%;
  1733. }
  1734. .load-more {
  1735. display: block;
  1736. color: $ui-base-lighter-color;
  1737. background-color: transparent;
  1738. border: 0;
  1739. font-size: inherit;
  1740. text-align: center;
  1741. line-height: inherit;
  1742. margin: 0;
  1743. padding: 15px;
  1744. width: 100%;
  1745. clear: both;
  1746. &:hover {
  1747. background: lighten($ui-base-color, 2%);
  1748. }
  1749. }
  1750. .missing-indicator {
  1751. text-align: center;
  1752. font-size: 16px;
  1753. font-weight: 500;
  1754. color: lighten($ui-base-color, 16%);
  1755. background: $ui-base-color;
  1756. cursor: default;
  1757. display: flex;
  1758. flex: 1 1 auto;
  1759. align-items: center;
  1760. justify-content: center;
  1761. & > div {
  1762. background: url('../images/mastodon-not-found.png') no-repeat center -50px;
  1763. padding-top: 210px;
  1764. width: 100%;
  1765. }
  1766. }
  1767. .column-header__wrapper {
  1768. position: relative;
  1769. flex: 0 0 auto;
  1770. &.active {
  1771. &::before {
  1772. display: block;
  1773. content: "";
  1774. position: absolute;
  1775. top: 35px;
  1776. left: 0;
  1777. right: 0;
  1778. margin: 0 auto;
  1779. width: 60%;
  1780. pointer-events: none;
  1781. height: 28px;
  1782. z-index: 1;
  1783. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  1784. }
  1785. }
  1786. }
  1787. .column-header {
  1788. padding: 15px;
  1789. font-size: 16px;
  1790. background: lighten($ui-base-color, 4%);
  1791. flex: 0 0 auto;
  1792. cursor: pointer;
  1793. position: relative;
  1794. z-index: 2;
  1795. outline: 0;
  1796. &.active {
  1797. box-shadow: 0 1px 0 rgba($ui-highlight-color, 0.3);
  1798. .column-header__icon {
  1799. color: $ui-highlight-color;
  1800. text-shadow: 0 0 10px rgba($ui-highlight-color, 0.4);
  1801. }
  1802. }
  1803. &:focus,
  1804. &:active {
  1805. outline: 0;
  1806. }
  1807. }
  1808. .column-header__buttons {
  1809. position: absolute;
  1810. right: 0;
  1811. top: 0;
  1812. height: 100%;
  1813. display: flex;
  1814. height: 48px;
  1815. }
  1816. .column-header__button {
  1817. background: lighten($ui-base-color, 4%);
  1818. border: 0;
  1819. color: $ui-primary-color;
  1820. cursor: pointer;
  1821. font-size: 16px;
  1822. padding: 0 15px;
  1823. &:hover {
  1824. color: lighten($ui-primary-color, 7%);
  1825. }
  1826. &.active {
  1827. color: $primary-text-color;
  1828. background: lighten($ui-base-color, 8%);
  1829. &:hover {
  1830. color: $primary-text-color;
  1831. background: lighten($ui-base-color, 8%);
  1832. }
  1833. }
  1834. }
  1835. .column-header__collapsible {
  1836. max-height: 70vh;
  1837. overflow: hidden;
  1838. overflow-y: auto;
  1839. color: $ui-primary-color;
  1840. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  1841. opacity: 1;
  1842. &.collapsed {
  1843. max-height: 0;
  1844. opacity: 0.5;
  1845. }
  1846. &.animating {
  1847. overflow-y: hidden;
  1848. }
  1849. }
  1850. .column-header__collapsible-inner {
  1851. background: lighten($ui-base-color, 8%);
  1852. padding: 15px;
  1853. }
  1854. .column-header__setting-btn {
  1855. &:hover {
  1856. color: lighten($ui-primary-color, 4%);
  1857. text-decoration: underline;
  1858. }
  1859. }
  1860. .column-header__setting-arrows {
  1861. float: right;
  1862. .column-header__setting-btn {
  1863. padding: 0 10px;
  1864. &:last-child {
  1865. padding-right: 0;
  1866. }
  1867. }
  1868. }
  1869. .text-btn {
  1870. display: inline-block;
  1871. padding: 0;
  1872. font-family: inherit;
  1873. font-size: inherit;
  1874. color: inherit;
  1875. border: 0;
  1876. background: transparent;
  1877. cursor: pointer;
  1878. }
  1879. .column-header__icon {
  1880. display: inline-block;
  1881. margin-right: 5px;
  1882. }
  1883. .loading-indicator {
  1884. color: lighten($ui-base-color, 26%);
  1885. font-size: 12px;
  1886. font-weight: 400;
  1887. text-transform: uppercase;
  1888. overflow: visible;
  1889. position: absolute;
  1890. top: 50%;
  1891. left: 50%;
  1892. transform: translate(-50%, -50%);
  1893. span {
  1894. display: block;
  1895. float: left;
  1896. margin-left: 50%;
  1897. transform: translateX(-50%);
  1898. margin: 82px 0 0 50%;
  1899. white-space: nowrap;
  1900. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1901. }
  1902. }
  1903. .loading-indicator__figure {
  1904. position: absolute;
  1905. top: 50%;
  1906. left: 50%;
  1907. transform: translate(-50%, -50%);
  1908. width: 0;
  1909. height: 0;
  1910. box-sizing: border-box;
  1911. border: 0 solid lighten($ui-base-color, 26%);
  1912. border-radius: 50%;
  1913. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1914. }
  1915. @keyframes loader-figure {
  1916. 0% {
  1917. width: 0;
  1918. height: 0;
  1919. background-color: lighten($ui-base-color, 26%);
  1920. }
  1921. 29% {
  1922. background-color: lighten($ui-base-color, 26%);
  1923. }
  1924. 30% {
  1925. width: 42px;
  1926. height: 42px;
  1927. background-color: transparent;
  1928. border-width: 21px;
  1929. opacity: 1;
  1930. }
  1931. 100% {
  1932. width: 42px;
  1933. height: 42px;
  1934. border-width: 0;
  1935. opacity: 0;
  1936. background-color: transparent;
  1937. }
  1938. }
  1939. @keyframes loader-label {
  1940. 0% { opacity: 0.25; }
  1941. 30% { opacity: 1; }
  1942. 100% { opacity: 0.25; }
  1943. }
  1944. .video-error-cover {
  1945. align-items: center;
  1946. background: $base-overlay-background;
  1947. color: $primary-text-color;
  1948. cursor: pointer;
  1949. display: flex;
  1950. flex-direction: column;
  1951. height: 100%;
  1952. justify-content: center;
  1953. margin-top: 8px;
  1954. position: relative;
  1955. text-align: center;
  1956. z-index: 100;
  1957. }
  1958. .media-spoiler {
  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. border: 0;
  1966. width: 100%;
  1967. height: 100%;
  1968. justify-content: center;
  1969. position: relative;
  1970. text-align: center;
  1971. z-index: 100;
  1972. }
  1973. .media-spoiler__warning {
  1974. display: block;
  1975. font-size: 14px;
  1976. }
  1977. .media-spoiler__trigger {
  1978. display: block;
  1979. font-size: 11px;
  1980. font-weight: 500;
  1981. }
  1982. .spoiler-button {
  1983. display: none;
  1984. left: 4px;
  1985. position: absolute;
  1986. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  1987. top: 4px;
  1988. z-index: 100;
  1989. &.spoiler-button--visible {
  1990. display: block;
  1991. }
  1992. }
  1993. .modal-container--preloader {
  1994. background: lighten($ui-base-color, 8%);
  1995. }
  1996. .account--panel {
  1997. background: lighten($ui-base-color, 4%);
  1998. border-top: 1px solid lighten($ui-base-color, 8%);
  1999. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2000. display: flex;
  2001. flex-direction: row;
  2002. padding: 10px 0;
  2003. }
  2004. .account--panel__button,
  2005. .detailed-status__button {
  2006. flex: 1 1 auto;
  2007. text-align: center;
  2008. }
  2009. .column-settings__outer {
  2010. background: lighten($ui-base-color, 8%);
  2011. padding: 15px;
  2012. }
  2013. .column-settings__section {
  2014. color: $ui-primary-color;
  2015. cursor: default;
  2016. display: block;
  2017. font-weight: 500;
  2018. margin-bottom: 10px;
  2019. }
  2020. .column-settings__row {
  2021. .text-btn {
  2022. margin-bottom: 15px;
  2023. }
  2024. }
  2025. .modal-container__nav {
  2026. align-items: center;
  2027. background: rgba($base-overlay-background, 0.5);
  2028. box-sizing: border-box;
  2029. border: 0;
  2030. color: $primary-text-color;
  2031. cursor: pointer;
  2032. display: flex;
  2033. font-size: 24px;
  2034. height: 100%;
  2035. padding: 30px 15px;
  2036. position: absolute;
  2037. top: 0;
  2038. }
  2039. .modal-container__nav--left {
  2040. left: -61px;
  2041. }
  2042. .modal-container__nav--right {
  2043. right: -61px;
  2044. }
  2045. .account--follows-info {
  2046. color: $primary-text-color;
  2047. position: absolute;
  2048. top: 10px;
  2049. right: 10px;
  2050. opacity: 0.7;
  2051. display: inline-block;
  2052. vertical-align: top;
  2053. background-color: rgba($base-overlay-background, 0.4);
  2054. text-transform: uppercase;
  2055. font-size: 11px;
  2056. font-weight: 500;
  2057. padding: 4px;
  2058. border-radius: 4px;
  2059. }
  2060. .account--action-button {
  2061. position: absolute;
  2062. top: 10px;
  2063. left: 20px;
  2064. }
  2065. .setting-toggle {
  2066. display: block;
  2067. line-height: 24px;
  2068. }
  2069. .setting-toggle__label,
  2070. .setting-meta__label {
  2071. color: $ui-primary-color;
  2072. display: inline-block;
  2073. margin-bottom: 14px;
  2074. margin-left: 8px;
  2075. vertical-align: middle;
  2076. }
  2077. .setting-meta__label {
  2078. color: $ui-primary-color;
  2079. float: right;
  2080. }
  2081. .empty-column-indicator,
  2082. .error-column {
  2083. color: lighten($ui-base-color, 20%);
  2084. background: $ui-base-color;
  2085. text-align: center;
  2086. padding: 20px;
  2087. font-size: 15px;
  2088. font-weight: 400;
  2089. cursor: default;
  2090. display: flex;
  2091. flex: 1 1 auto;
  2092. align-items: center;
  2093. justify-content: center;
  2094. @supports(display: grid) { // hack to fix Chrome <57
  2095. contain: strict;
  2096. }
  2097. a {
  2098. color: $ui-highlight-color;
  2099. text-decoration: none;
  2100. &:hover {
  2101. text-decoration: underline;
  2102. }
  2103. }
  2104. }
  2105. .error-column {
  2106. flex-direction: column;
  2107. }
  2108. @keyframes pulse {
  2109. 0% {
  2110. opacity: 1;
  2111. }
  2112. 100% {
  2113. opacity: 0.5;
  2114. }
  2115. }
  2116. .pulse-loading {
  2117. animation: pulse 1s ease-in-out infinite;
  2118. animation-direction: alternate;
  2119. }
  2120. .emoji-dialog {
  2121. width: 245px;
  2122. height: 270px;
  2123. background: $simple-background-color;
  2124. box-sizing: border-box;
  2125. border-radius: 4px;
  2126. overflow: hidden;
  2127. position: relative;
  2128. box-shadow: 0 0 8px rgba($base-shadow-color, 0.2);
  2129. .emojione {
  2130. margin: 0;
  2131. width: 100%;
  2132. height: auto;
  2133. }
  2134. .emoji-dialog-header {
  2135. padding: 0 10px;
  2136. ul {
  2137. padding: 0;
  2138. margin: 0;
  2139. list-style: none;
  2140. }
  2141. li {
  2142. display: inline-block;
  2143. box-sizing: border-box;
  2144. padding: 10px 5px;
  2145. cursor: pointer;
  2146. border-bottom: 2px solid transparent;
  2147. .emoji {
  2148. width: 18px;
  2149. height: 18px;
  2150. }
  2151. img,
  2152. svg {
  2153. width: 18px;
  2154. height: 18px;
  2155. filter: grayscale(100%);
  2156. }
  2157. &:hover {
  2158. img,
  2159. svg {
  2160. filter: grayscale(0);
  2161. }
  2162. }
  2163. &.active {
  2164. border-bottom-color: $ui-highlight-color;
  2165. img,
  2166. svg {
  2167. filter: grayscale(0);
  2168. }
  2169. }
  2170. }
  2171. }
  2172. .emoji-row {
  2173. box-sizing: border-box;
  2174. overflow-y: hidden;
  2175. padding-left: 10px;
  2176. .emoji {
  2177. display: inline-block;
  2178. padding: 2.5px;
  2179. border-radius: 4px;
  2180. }
  2181. }
  2182. .emoji-category-header {
  2183. box-sizing: border-box;
  2184. overflow-y: hidden;
  2185. padding: 10px 8px 10px 16px;
  2186. display: table;
  2187. > * {
  2188. display: table-cell;
  2189. vertical-align: middle;
  2190. }
  2191. }
  2192. .emoji-category-title {
  2193. font-size: 12px;
  2194. text-transform: uppercase;
  2195. font-weight: 500;
  2196. color: darken($ui-secondary-color, 18%);
  2197. cursor: default;
  2198. }
  2199. .emoji-category-heading-decoration {
  2200. text-align: right;
  2201. }
  2202. .modifiers {
  2203. list-style: none;
  2204. padding: 0;
  2205. margin: 0;
  2206. vertical-align: middle;
  2207. white-space: nowrap;
  2208. margin-top: 4px;
  2209. li {
  2210. display: inline-block;
  2211. padding: 0 2px;
  2212. &:last-of-type {
  2213. padding-right: 0;
  2214. }
  2215. }
  2216. .modifier {
  2217. display: inline-block;
  2218. border-radius: 10px;
  2219. width: 15px;
  2220. height: 15px;
  2221. position: relative;
  2222. cursor: pointer;
  2223. &.active::after {
  2224. content: "";
  2225. display: block;
  2226. position: absolute;
  2227. width: 7px;
  2228. height: 7px;
  2229. border-radius: 10px;
  2230. border: 2px solid $base-border-color;
  2231. top: 2px;
  2232. left: 2px;
  2233. }
  2234. }
  2235. }
  2236. .emoji-search-wrapper {
  2237. padding: 10px;
  2238. border-bottom: 1px solid lighten($ui-secondary-color, 4%);
  2239. }
  2240. .emoji-search {
  2241. font-size: 14px;
  2242. font-weight: 400;
  2243. padding: 7px 9px;
  2244. font-family: inherit;
  2245. display: block;
  2246. width: 100%;
  2247. background: rgba($ui-secondary-color, 0.3);
  2248. color: darken($ui-secondary-color, 18%);
  2249. border: 1px solid $ui-secondary-color;
  2250. border-radius: 4px;
  2251. }
  2252. .emoji-categories-wrapper {
  2253. position: absolute;
  2254. top: 42px;
  2255. bottom: 0;
  2256. left: 0;
  2257. right: 0;
  2258. }
  2259. .emoji-search-wrapper + .emoji-categories-wrapper {
  2260. top: 93px;
  2261. }
  2262. .emoji-row .emoji {
  2263. img,
  2264. svg {
  2265. transition: transform 60ms ease-in-out;
  2266. }
  2267. &:hover {
  2268. background: lighten($ui-secondary-color, 3%);
  2269. img,
  2270. svg {
  2271. transform: translateZ(0) scale(1.2);
  2272. }
  2273. }
  2274. }
  2275. .emoji {
  2276. width: 22px;
  2277. height: 22px;
  2278. cursor: pointer;
  2279. &:focus {
  2280. outline: 0;
  2281. }
  2282. }
  2283. }
  2284. .upload-area {
  2285. align-items: center;
  2286. background: rgba($base-overlay-background, 0.8);
  2287. display: flex;
  2288. height: 100%;
  2289. justify-content: center;
  2290. left: 0;
  2291. opacity: 0;
  2292. position: absolute;
  2293. top: 0;
  2294. visibility: hidden;
  2295. width: 100%;
  2296. z-index: 2000;
  2297. * {
  2298. pointer-events: none;
  2299. }
  2300. }
  2301. .upload-area__drop {
  2302. width: 320px;
  2303. height: 160px;
  2304. display: flex;
  2305. box-sizing: border-box;
  2306. position: relative;
  2307. padding: 8px;
  2308. }
  2309. .upload-area__background {
  2310. position: absolute;
  2311. top: 0;
  2312. right: 0;
  2313. bottom: 0;
  2314. left: 0;
  2315. z-index: -1;
  2316. border-radius: 4px;
  2317. background: $ui-base-color;
  2318. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2319. }
  2320. .upload-area__content {
  2321. flex: 1;
  2322. display: flex;
  2323. align-items: center;
  2324. justify-content: center;
  2325. color: $ui-secondary-color;
  2326. font-size: 18px;
  2327. font-weight: 500;
  2328. border: 2px dashed $ui-base-lighter-color;
  2329. border-radius: 4px;
  2330. }
  2331. .upload-progress {
  2332. padding: 10px;
  2333. color: $ui-base-lighter-color;
  2334. overflow: hidden;
  2335. display: flex;
  2336. .fa {
  2337. font-size: 34px;
  2338. margin-right: 10px;
  2339. }
  2340. span {
  2341. font-size: 12px;
  2342. text-transform: uppercase;
  2343. font-weight: 500;
  2344. display: block;
  2345. }
  2346. }
  2347. .upload-progess__message {
  2348. flex: 1 1 auto;
  2349. }
  2350. .upload-progress__backdrop {
  2351. width: 100%;
  2352. height: 6px;
  2353. border-radius: 6px;
  2354. background: $ui-base-lighter-color;
  2355. position: relative;
  2356. margin-top: 5px;
  2357. }
  2358. .upload-progress__tracker {
  2359. position: absolute;
  2360. left: 0;
  2361. top: 0;
  2362. height: 6px;
  2363. background: $ui-highlight-color;
  2364. border-radius: 6px;
  2365. }
  2366. .emoji-button {
  2367. display: block;
  2368. font-size: 24px;
  2369. line-height: 24px;
  2370. margin-left: 2px;
  2371. width: 24px;
  2372. outline: 0;
  2373. cursor: pointer;
  2374. &:active,
  2375. &:focus {
  2376. outline: 0 !important;
  2377. }
  2378. img {
  2379. filter: grayscale(100%);
  2380. opacity: 0.8;
  2381. display: block;
  2382. margin: 0;
  2383. width: 22px;
  2384. height: 22px;
  2385. margin-top: 2px;
  2386. }
  2387. &:hover,
  2388. &:active,
  2389. &:focus {
  2390. img {
  2391. opacity: 1;
  2392. filter: none;
  2393. }
  2394. }
  2395. }
  2396. .dropdown--active .emoji-button img {
  2397. opacity: 1;
  2398. filter: none;
  2399. }
  2400. .privacy-dropdown {
  2401. position: relative;
  2402. }
  2403. .privacy-dropdown__dropdown {
  2404. display: none;
  2405. position: absolute;
  2406. left: 0;
  2407. top: 27px;
  2408. width: 230px;
  2409. background: $simple-background-color;
  2410. border-radius: 0 4px 4px;
  2411. z-index: 2;
  2412. overflow: hidden;
  2413. }
  2414. .privacy-dropdown__option {
  2415. color: $ui-base-color;
  2416. padding: 10px;
  2417. cursor: pointer;
  2418. display: flex;
  2419. &:hover,
  2420. &.active {
  2421. background: $ui-highlight-color;
  2422. color: $primary-text-color;
  2423. .privacy-dropdown__option__content {
  2424. color: $primary-text-color;
  2425. strong {
  2426. color: $primary-text-color;
  2427. }
  2428. }
  2429. }
  2430. &.active:hover {
  2431. background: lighten($ui-highlight-color, 4%);
  2432. }
  2433. }
  2434. .privacy-dropdown__option__icon {
  2435. display: flex;
  2436. align-items: center;
  2437. justify-content: center;
  2438. margin-right: 10px;
  2439. }
  2440. .privacy-dropdown__option__content {
  2441. flex: 1 1 auto;
  2442. color: darken($ui-primary-color, 24%);
  2443. strong {
  2444. font-weight: 500;
  2445. display: block;
  2446. color: $ui-base-color;
  2447. }
  2448. }
  2449. .privacy-dropdown.active {
  2450. .privacy-dropdown__value {
  2451. background: $simple-background-color;
  2452. border-radius: 4px 4px 0 0;
  2453. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2454. }
  2455. .privacy-dropdown__dropdown {
  2456. display: block;
  2457. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2458. }
  2459. }
  2460. .search {
  2461. position: relative;
  2462. }
  2463. .search__input {
  2464. padding-right: 30px;
  2465. color: $ui-secondary-color;
  2466. outline: 0;
  2467. box-sizing: border-box;
  2468. display: block;
  2469. width: 100%;
  2470. border: none;
  2471. padding: 10px;
  2472. padding-right: 30px;
  2473. font-family: inherit;
  2474. background: $ui-base-color;
  2475. color: $ui-primary-color;
  2476. font-size: 14px;
  2477. margin: 0;
  2478. &::-moz-focus-inner {
  2479. border: 0;
  2480. }
  2481. &::-moz-focus-inner,
  2482. &:focus,
  2483. &:active {
  2484. outline: 0 !important;
  2485. }
  2486. &:focus {
  2487. background: lighten($ui-base-color, 4%);
  2488. }
  2489. @media screen and (max-width: 600px) {
  2490. font-size: 16px;
  2491. }
  2492. }
  2493. .search__icon {
  2494. .fa {
  2495. position: absolute;
  2496. top: 10px;
  2497. right: 10px;
  2498. z-index: 2;
  2499. display: inline-block;
  2500. opacity: 0;
  2501. transition: all 100ms linear;
  2502. font-size: 18px;
  2503. width: 18px;
  2504. height: 18px;
  2505. color: $ui-secondary-color;
  2506. cursor: default;
  2507. pointer-events: none;
  2508. &.active {
  2509. pointer-events: auto;
  2510. opacity: 0.3;
  2511. }
  2512. }
  2513. .fa-search {
  2514. transform: translateZ(0) rotate(90deg);
  2515. &.active {
  2516. pointer-events: none;
  2517. transform: translateZ(0) rotate(0deg);
  2518. }
  2519. }
  2520. .fa-times-circle {
  2521. top: 11px;
  2522. transform: translateZ(0) rotate(0deg);
  2523. cursor: pointer;
  2524. &.active {
  2525. transform: translateZ(0) rotate(90deg);
  2526. }
  2527. &:hover {
  2528. color: $primary-text-color;
  2529. }
  2530. }
  2531. }
  2532. .search-results__header {
  2533. color: $ui-base-lighter-color;
  2534. background: lighten($ui-base-color, 2%);
  2535. border-bottom: 1px solid darken($ui-base-color, 4%);
  2536. padding: 15px 10px;
  2537. font-size: 14px;
  2538. font-weight: 500;
  2539. }
  2540. .search-results__hashtag {
  2541. display: block;
  2542. padding: 10px;
  2543. color: $ui-secondary-color;
  2544. text-decoration: none;
  2545. &:hover,
  2546. &:active,
  2547. &:focus {
  2548. color: lighten($ui-secondary-color, 4%);
  2549. text-decoration: underline;
  2550. }
  2551. }
  2552. .modal-root__overlay {
  2553. position: absolute;
  2554. top: 0;
  2555. left: 0;
  2556. right: 0;
  2557. bottom: 0;
  2558. z-index: 9999;
  2559. opacity: 0;
  2560. background: rgba($base-overlay-background, 0.7);
  2561. transform: translateZ(0);
  2562. }
  2563. .modal-root__container {
  2564. position: absolute;
  2565. top: 0;
  2566. left: 0;
  2567. width: 100%;
  2568. height: 100%;
  2569. display: flex;
  2570. flex-direction: column;
  2571. align-items: center;
  2572. justify-content: center;
  2573. align-content: space-around;
  2574. z-index: 9999;
  2575. opacity: 0;
  2576. pointer-events: none;
  2577. user-select: none;
  2578. }
  2579. .modal-root__modal {
  2580. pointer-events: auto;
  2581. display: flex;
  2582. z-index: 9999;
  2583. }
  2584. .media-modal {
  2585. max-width: 80vw;
  2586. max-height: 80vh;
  2587. position: relative;
  2588. .extended-video-player,
  2589. img,
  2590. canvas,
  2591. video {
  2592. max-width: 80vw;
  2593. max-height: 80vh;
  2594. width: auto;
  2595. height: auto;
  2596. margin: auto;
  2597. }
  2598. .extended-video-player,
  2599. video {
  2600. display: flex;
  2601. width: 80vw;
  2602. height: 80vh;
  2603. }
  2604. img,
  2605. canvas {
  2606. display: block;
  2607. background: url('../images/void.png') repeat;
  2608. object-fit: contain;
  2609. }
  2610. .react-swipeable-view-container {
  2611. max-width: 80vw;
  2612. }
  2613. }
  2614. .media-modal__content {
  2615. background: $base-overlay-background;
  2616. }
  2617. .media-modal__close {
  2618. position: absolute;
  2619. right: 4px;
  2620. top: 4px;
  2621. z-index: 100;
  2622. }
  2623. .onboarding-modal,
  2624. .error-modal {
  2625. background: $ui-secondary-color;
  2626. color: $ui-base-color;
  2627. border-radius: 8px;
  2628. overflow: hidden;
  2629. display: flex;
  2630. flex-direction: column;
  2631. }
  2632. .onboarding-modal__pager {
  2633. height: 80vh;
  2634. width: 80vw;
  2635. max-width: 520px;
  2636. max-height: 420px;
  2637. .react-swipeable-view-container > div {
  2638. width: 100%;
  2639. height: 100%;
  2640. box-sizing: border-box;
  2641. padding: 25px;
  2642. display: none;
  2643. flex-direction: column;
  2644. align-items: center;
  2645. justify-content: center;
  2646. display: flex;
  2647. user-select: text;
  2648. }
  2649. }
  2650. .error-modal__body {
  2651. height: 80vh;
  2652. width: 80vw;
  2653. max-width: 520px;
  2654. max-height: 420px;
  2655. position: relative;
  2656. & > div {
  2657. position: absolute;
  2658. top: 0;
  2659. left: 0;
  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. opacity: 0;
  2670. user-select: text;
  2671. }
  2672. }
  2673. .error-modal__body {
  2674. display: flex;
  2675. flex-direction: column;
  2676. justify-content: center;
  2677. align-items: center;
  2678. text-align: center;
  2679. }
  2680. @media screen and (max-width: 550px) {
  2681. .onboarding-modal {
  2682. width: 100%;
  2683. height: 100%;
  2684. border-radius: 0;
  2685. }
  2686. .onboarding-modal__pager {
  2687. width: 100%;
  2688. height: auto;
  2689. max-width: none;
  2690. max-height: none;
  2691. flex: 1 1 auto;
  2692. }
  2693. }
  2694. .onboarding-modal__paginator,
  2695. .error-modal__footer {
  2696. flex: 0 0 auto;
  2697. background: darken($ui-secondary-color, 8%);
  2698. display: flex;
  2699. padding: 25px;
  2700. & > div {
  2701. min-width: 33px;
  2702. }
  2703. .onboarding-modal__nav,
  2704. .error-modal__nav {
  2705. color: darken($ui-secondary-color, 34%);
  2706. background-color: transparent;
  2707. border: 0;
  2708. font-size: 14px;
  2709. font-weight: 500;
  2710. padding: 0;
  2711. line-height: inherit;
  2712. height: auto;
  2713. &:hover,
  2714. &:focus,
  2715. &:active {
  2716. color: darken($ui-secondary-color, 38%);
  2717. }
  2718. &.onboarding-modal__done,
  2719. &.onboarding-modal__next {
  2720. color: $ui-highlight-color;
  2721. }
  2722. }
  2723. }
  2724. .error-modal__footer {
  2725. justify-content: center;
  2726. }
  2727. .onboarding-modal__dots {
  2728. flex: 1 1 auto;
  2729. display: flex;
  2730. align-items: center;
  2731. justify-content: center;
  2732. }
  2733. .onboarding-modal__dot {
  2734. width: 14px;
  2735. height: 14px;
  2736. border-radius: 14px;
  2737. background: darken($ui-secondary-color, 16%);
  2738. margin: 0 3px;
  2739. cursor: pointer;
  2740. &:hover {
  2741. background: darken($ui-secondary-color, 18%);
  2742. }
  2743. &.active {
  2744. cursor: default;
  2745. background: darken($ui-secondary-color, 24%);
  2746. }
  2747. }
  2748. .onboarding-modal__page__wrapper {
  2749. pointer-events: none;
  2750. &.onboarding-modal__page__wrapper--active {
  2751. pointer-events: auto;
  2752. }
  2753. }
  2754. .onboarding-modal__page {
  2755. cursor: default;
  2756. line-height: 21px;
  2757. h1 {
  2758. font-size: 18px;
  2759. font-weight: 500;
  2760. color: $ui-base-color;
  2761. margin-bottom: 20px;
  2762. }
  2763. a {
  2764. color: $ui-highlight-color;
  2765. &:hover,
  2766. &:focus,
  2767. &:active {
  2768. color: lighten($ui-highlight-color, 4%);
  2769. }
  2770. }
  2771. p {
  2772. font-size: 16px;
  2773. color: lighten($ui-base-color, 8%);
  2774. margin-top: 10px;
  2775. margin-bottom: 10px;
  2776. &:last-child {
  2777. margin-bottom: 0;
  2778. }
  2779. strong {
  2780. font-weight: 500;
  2781. background: $ui-base-color;
  2782. color: $ui-secondary-color;
  2783. border-radius: 4px;
  2784. font-size: 14px;
  2785. padding: 3px 6px;
  2786. }
  2787. }
  2788. }
  2789. .onboarding-modal__page-one {
  2790. display: flex;
  2791. align-items: center;
  2792. }
  2793. .onboarding-modal__page-one__elephant-friend {
  2794. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2795. width: 155px;
  2796. height: 193px;
  2797. margin-right: 15px;
  2798. }
  2799. @media screen and (max-width: 400px) {
  2800. .onboarding-modal__page-one {
  2801. flex-direction: column;
  2802. align-items: normal;
  2803. }
  2804. .onboarding-modal__page-one__elephant-friend {
  2805. width: 100%;
  2806. height: 30vh;
  2807. max-height: 160px;
  2808. margin-bottom: 5vh;
  2809. }
  2810. }
  2811. .onboarding-modal__page-two,
  2812. .onboarding-modal__page-three,
  2813. .onboarding-modal__page-four,
  2814. .onboarding-modal__page-five {
  2815. p {
  2816. text-align: left;
  2817. }
  2818. .figure {
  2819. background: darken($ui-base-color, 8%);
  2820. color: $ui-secondary-color;
  2821. margin-bottom: 20px;
  2822. border-radius: 4px;
  2823. padding: 10px;
  2824. text-align: center;
  2825. font-size: 14px;
  2826. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2827. .onboarding-modal__image {
  2828. border-radius: 4px;
  2829. margin-bottom: 10px;
  2830. }
  2831. &.non-interactive {
  2832. pointer-events: none;
  2833. text-align: left;
  2834. }
  2835. }
  2836. }
  2837. .onboarding-modal__page-four__columns {
  2838. .row {
  2839. display: flex;
  2840. margin-bottom: 20px;
  2841. & > div {
  2842. flex: 1 1 0;
  2843. margin: 0 10px;
  2844. &:first-child {
  2845. margin-left: 0;
  2846. }
  2847. &:last-child {
  2848. margin-right: 0;
  2849. }
  2850. p {
  2851. text-align: center;
  2852. }
  2853. }
  2854. &:last-child {
  2855. margin-bottom: 0;
  2856. }
  2857. }
  2858. .column-header {
  2859. color: $primary-text-color;
  2860. }
  2861. }
  2862. @media screen and (max-width: 320px) and (max-height: 600px) {
  2863. .onboarding-modal__page p {
  2864. font-size: 14px;
  2865. line-height: 20px;
  2866. }
  2867. .onboarding-modal__page-two .figure,
  2868. .onboarding-modal__page-three .figure,
  2869. .onboarding-modal__page-four .figure,
  2870. .onboarding-modal__page-five .figure {
  2871. font-size: 12px;
  2872. margin-bottom: 10px;
  2873. }
  2874. .onboarding-modal__page-four__columns .row {
  2875. margin-bottom: 10px;
  2876. }
  2877. .onboarding-modal__page-four__columns .column-header {
  2878. padding: 5px;
  2879. font-size: 12px;
  2880. }
  2881. }
  2882. .onboarding-modal__image {
  2883. border-radius: 8px;
  2884. width: 70vw;
  2885. max-width: 450px;
  2886. max-height: auto;
  2887. display: block;
  2888. margin: auto;
  2889. margin-bottom: 20px;
  2890. }
  2891. .onboard-sliders {
  2892. display: inline-block;
  2893. max-width: 30px;
  2894. max-height: auto;
  2895. margin-left: 10px;
  2896. }
  2897. .boost-modal,
  2898. .confirmation-modal,
  2899. .report-modal,
  2900. .actions-modal {
  2901. background: lighten($ui-secondary-color, 8%);
  2902. color: $ui-base-color;
  2903. border-radius: 8px;
  2904. overflow: hidden;
  2905. max-width: 90vw;
  2906. width: 480px;
  2907. position: relative;
  2908. flex-direction: column;
  2909. .status__display-name {
  2910. display: block;
  2911. max-width: 100%;
  2912. padding-right: 25px;
  2913. }
  2914. .status__avatar {
  2915. height: 28px;
  2916. left: 10px;
  2917. position: absolute;
  2918. top: 10px;
  2919. width: 48px;
  2920. }
  2921. }
  2922. .actions-modal {
  2923. .status {
  2924. background: $white;
  2925. border-bottom-color: $ui-secondary-color;
  2926. padding-top: 10px;
  2927. padding-bottom: 10px;
  2928. }
  2929. }
  2930. .boost-modal__container {
  2931. overflow-x: scroll;
  2932. padding: 10px;
  2933. .status {
  2934. user-select: text;
  2935. border-bottom: 0;
  2936. }
  2937. }
  2938. .boost-modal__action-bar,
  2939. .confirmation-modal__action-bar,
  2940. .report-modal__action-bar {
  2941. display: flex;
  2942. justify-content: space-between;
  2943. background: $ui-secondary-color;
  2944. padding: 10px;
  2945. line-height: 36px;
  2946. & > div {
  2947. flex: 1 1 auto;
  2948. text-align: right;
  2949. color: lighten($ui-base-color, 33%);
  2950. padding-right: 10px;
  2951. }
  2952. .button {
  2953. flex: 0 0 auto;
  2954. }
  2955. }
  2956. .boost-modal__status-header {
  2957. font-size: 15px;
  2958. }
  2959. .boost-modal__status-time {
  2960. float: right;
  2961. font-size: 14px;
  2962. }
  2963. .confirmation-modal {
  2964. max-width: 85vw;
  2965. @media screen and (min-width: 480px) {
  2966. max-width: 380px;
  2967. }
  2968. }
  2969. .report-modal__statuses,
  2970. .report-modal__comment {
  2971. padding: 10px;
  2972. }
  2973. .report-modal__statuses {
  2974. min-height: 20vh;
  2975. max-height: 40vh;
  2976. overflow-y: auto;
  2977. overflow-x: hidden;
  2978. }
  2979. .report-modal__comment {
  2980. .setting-text {
  2981. margin-top: 10px;
  2982. }
  2983. }
  2984. .actions-modal {
  2985. .status {
  2986. overflow-y: auto;
  2987. max-height: 300px;
  2988. }
  2989. max-height: 80vh;
  2990. max-width: 80vw;
  2991. ul {
  2992. overflow-y: auto;
  2993. flex-shrink: 0;
  2994. li:empty {
  2995. margin: 0;
  2996. }
  2997. li:not(:empty) {
  2998. a {
  2999. color: $ui-base-color;
  3000. display: flex;
  3001. padding: 10px;
  3002. align-items: center;
  3003. text-decoration: none;
  3004. &.active {
  3005. &,
  3006. button {
  3007. background: $ui-highlight-color;
  3008. color: $primary-text-color;
  3009. }
  3010. }
  3011. button:first-child {
  3012. margin-right: 10px;
  3013. }
  3014. }
  3015. }
  3016. }
  3017. }
  3018. .confirmation-modal__action-bar {
  3019. .confirmation-modal__cancel-button {
  3020. background-color: transparent;
  3021. color: darken($ui-secondary-color, 34%);
  3022. font-size: 14px;
  3023. font-weight: 500;
  3024. &:hover,
  3025. &:focus,
  3026. &:active {
  3027. color: darken($ui-secondary-color, 38%);
  3028. }
  3029. }
  3030. }
  3031. .confirmation-modal__container,
  3032. .report-modal__target {
  3033. padding: 30px;
  3034. font-size: 16px;
  3035. text-align: center;
  3036. strong {
  3037. font-weight: 500;
  3038. }
  3039. }
  3040. .loading-bar {
  3041. background-color: $ui-highlight-color;
  3042. height: 3px;
  3043. position: absolute;
  3044. top: 0;
  3045. left: 0;
  3046. }
  3047. .media-gallery__gifv__label {
  3048. display: block;
  3049. position: absolute;
  3050. color: $primary-text-color;
  3051. background: rgba($base-overlay-background, 0.5);
  3052. bottom: 6px;
  3053. left: 6px;
  3054. padding: 2px 6px;
  3055. border-radius: 2px;
  3056. font-size: 11px;
  3057. font-weight: 600;
  3058. z-index: 1;
  3059. pointer-events: none;
  3060. opacity: 0.9;
  3061. transition: opacity 0.1s ease;
  3062. }
  3063. .media-gallery__gifv {
  3064. &.autoplay {
  3065. .media-gallery__gifv__label {
  3066. display: none;
  3067. }
  3068. }
  3069. &:hover {
  3070. .media-gallery__gifv__label {
  3071. opacity: 1;
  3072. }
  3073. }
  3074. }
  3075. .attachment-list {
  3076. display: flex;
  3077. font-size: 14px;
  3078. border: 1px solid lighten($ui-base-color, 8%);
  3079. border-radius: 4px;
  3080. margin-top: 14px;
  3081. overflow: hidden;
  3082. }
  3083. .attachment-list__icon {
  3084. flex: 0 0 auto;
  3085. color: $ui-base-lighter-color;
  3086. padding: 8px 18px;
  3087. cursor: default;
  3088. border-right: 1px solid lighten($ui-base-color, 8%);
  3089. display: flex;
  3090. flex-direction: column;
  3091. align-items: center;
  3092. justify-content: center;
  3093. font-size: 26px;
  3094. .fa {
  3095. display: block;
  3096. }
  3097. }
  3098. .attachment-list__list {
  3099. list-style: none;
  3100. padding: 4px 0;
  3101. padding-left: 8px;
  3102. display: flex;
  3103. flex-direction: column;
  3104. justify-content: center;
  3105. li {
  3106. display: block;
  3107. padding: 4px 0;
  3108. }
  3109. a {
  3110. text-decoration: none;
  3111. color: $ui-base-lighter-color;
  3112. font-weight: 500;
  3113. &:hover {
  3114. text-decoration: underline;
  3115. }
  3116. }
  3117. }
  3118. /* Media Gallery */
  3119. .media-gallery {
  3120. box-sizing: border-box;
  3121. margin-top: 8px;
  3122. overflow: hidden;
  3123. position: relative;
  3124. width: 100%;
  3125. }
  3126. .media-gallery__item {
  3127. border: none;
  3128. box-sizing: border-box;
  3129. display: block;
  3130. float: left;
  3131. position: relative;
  3132. }
  3133. .media-gallery__item-thumbnail {
  3134. cursor: zoom-in;
  3135. display: block;
  3136. text-decoration: none;
  3137. height: 100%;
  3138. &,
  3139. img {
  3140. width: 100%;
  3141. height: 100%;
  3142. object-fit: cover;
  3143. }
  3144. }
  3145. .media-gallery__gifv {
  3146. height: 100%;
  3147. overflow: hidden;
  3148. position: relative;
  3149. width: 100%;
  3150. }
  3151. .media-gallery__item-gifv-thumbnail {
  3152. cursor: zoom-in;
  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. .media-gallery__item-thumbnail-label {
  3162. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3163. clip: rect(1px, 1px, 1px, 1px);
  3164. overflow: hidden;
  3165. position: absolute;
  3166. }
  3167. /* End Media Gallery */
  3168. /* Status Video Player */
  3169. .status__video-player {
  3170. background: $base-overlay-background;
  3171. box-sizing: border-box;
  3172. cursor: default; /* May not be needed */
  3173. margin-top: 8px;
  3174. overflow: hidden;
  3175. position: relative;
  3176. }
  3177. .status__video-player-video {
  3178. height: 100%;
  3179. object-fit: cover;
  3180. position: relative;
  3181. top: 50%;
  3182. transform: translateY(-50%);
  3183. width: 100%;
  3184. z-index: 1;
  3185. }
  3186. .status__video-player-expand,
  3187. .status__video-player-mute {
  3188. color: $primary-text-color;
  3189. opacity: 0.8;
  3190. position: absolute;
  3191. right: 4px;
  3192. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3193. }
  3194. .status__video-player-spoiler {
  3195. display: none;
  3196. color: $primary-text-color;
  3197. left: 4px;
  3198. position: absolute;
  3199. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3200. top: 4px;
  3201. z-index: 100;
  3202. &.status__video-player-spoiler--visible {
  3203. display: block;
  3204. }
  3205. }
  3206. .status__video-player-expand {
  3207. bottom: 4px;
  3208. z-index: 100;
  3209. }
  3210. .status__video-player-mute {
  3211. top: 4px;
  3212. z-index: 5;
  3213. }
  3214. .media-spoiler-video {
  3215. background-size: cover;
  3216. background-repeat: no-repeat;
  3217. background-position: center;
  3218. cursor: pointer;
  3219. margin-top: 8px;
  3220. position: relative;
  3221. }
  3222. .media-spoiler-video-play-icon {
  3223. border-radius: 100px;
  3224. color: rgba($primary-text-color, 0.8);
  3225. font-size: 36px;
  3226. left: 50%;
  3227. padding: 5px;
  3228. position: absolute;
  3229. top: 50%;
  3230. transform: translate(-50%, -50%);
  3231. }
  3232. /* End Video Player */
  3233. .account-gallery__container {
  3234. margin: -2px;
  3235. padding: 4px;
  3236. }
  3237. .account-gallery__item {
  3238. float: left;
  3239. width: 96px;
  3240. height: 96px;
  3241. margin: 2px;
  3242. a {
  3243. display: block;
  3244. width: 100%;
  3245. height: 100%;
  3246. background-color: $base-overlay-background;
  3247. background-size: cover;
  3248. background-position: center;
  3249. position: relative;
  3250. }
  3251. }
  3252. .account-section-headline {
  3253. color: $ui-base-lighter-color;
  3254. background: lighten($ui-base-color, 2%);
  3255. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3256. padding: 15px 10px;
  3257. font-size: 14px;
  3258. font-weight: 500;
  3259. position: relative;
  3260. cursor: default;
  3261. &::before,
  3262. &::after {
  3263. display: block;
  3264. content: "";
  3265. position: absolute;
  3266. bottom: 0;
  3267. left: 18px;
  3268. width: 0;
  3269. height: 0;
  3270. border-style: solid;
  3271. border-width: 0 10px 10px;
  3272. border-color: transparent transparent lighten($ui-base-color, 4%);
  3273. }
  3274. &::after {
  3275. bottom: -1px;
  3276. border-color: transparent transparent $ui-base-color;
  3277. }
  3278. }
  3279. ::-webkit-scrollbar-thumb {
  3280. border-radius: 0;
  3281. }
  3282. noscript {
  3283. text-align: center;
  3284. img {
  3285. width: 200px;
  3286. opacity: 0.5;
  3287. animation: flicker 4s infinite;
  3288. }
  3289. div {
  3290. font-size: 14px;
  3291. margin: 30px auto;
  3292. color: $ui-secondary-color;
  3293. max-width: 400px;
  3294. }
  3295. }
  3296. @keyframes flicker {
  3297. 0% { opacity: 1; }
  3298. 30% { opacity: 0.75; }
  3299. 100% { opacity: 1; }
  3300. }
  3301. @media screen and (max-width: 1024px) and (max-height: 400px) {
  3302. $duration: 400ms;
  3303. $delay: 100ms;
  3304. .tabs-bar,
  3305. .search {
  3306. will-change: margin-top;
  3307. transition: margin-top $duration $delay;
  3308. }
  3309. .navigation-bar {
  3310. will-change: padding-bottom;
  3311. transition: padding-bottom $duration $delay;
  3312. }
  3313. .navigation-bar {
  3314. & > a:first-child {
  3315. will-change: margin-top, margin-left, width;
  3316. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay);
  3317. }
  3318. & > .navigation-bar__profile-edit {
  3319. will-change: margin-top;
  3320. transition: margin-top $duration $delay;
  3321. }
  3322. & > .icon-button {
  3323. will-change: opacity;
  3324. transition: opacity $duration $delay;
  3325. }
  3326. }
  3327. .is-composing {
  3328. .tabs-bar,
  3329. .search {
  3330. margin-top: -50px;
  3331. }
  3332. .navigation-bar {
  3333. padding-bottom: 0;
  3334. & > a:first-child {
  3335. margin-top: -50px;
  3336. margin-left: -40px;
  3337. }
  3338. .navigation-bar__profile {
  3339. padding-top: 2px;
  3340. }
  3341. .navigation-bar__profile-edit {
  3342. position: absolute;
  3343. margin-top: -50px;
  3344. }
  3345. .icon-button {
  3346. pointer-events: auto;
  3347. opacity: 1;
  3348. }
  3349. }
  3350. }
  3351. }