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.

4266 lines
72 KiB

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