The code powering m.abunchtell.com https://m.abunchtell.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

5429 wiersze
92 KiB

  1. .app-body {
  2. -webkit-overflow-scrolling: touch;
  3. -ms-overflow-style: -ms-autohiding-scrollbar;
  4. }
  5. .button {
  6. background-color: $ui-highlight-color;
  7. border: 10px none;
  8. border-radius: 4px;
  9. box-sizing: border-box;
  10. color: $primary-text-color;
  11. cursor: pointer;
  12. display: inline-block;
  13. font-family: inherit;
  14. font-size: 14px;
  15. font-weight: 500;
  16. height: 36px;
  17. letter-spacing: 0;
  18. line-height: 36px;
  19. overflow: hidden;
  20. padding: 0 16px;
  21. position: relative;
  22. text-align: center;
  23. text-transform: uppercase;
  24. text-decoration: none;
  25. text-overflow: ellipsis;
  26. transition: all 100ms ease-in;
  27. white-space: nowrap;
  28. width: auto;
  29. &:active,
  30. &:focus,
  31. &:hover {
  32. background-color: lighten($ui-highlight-color, 10%);
  33. transition: all 200ms ease-out;
  34. }
  35. &:disabled {
  36. background-color: $ui-primary-color;
  37. cursor: default;
  38. }
  39. &::-moz-focus-inner {
  40. border: 0;
  41. }
  42. &::-moz-focus-inner,
  43. &:focus,
  44. &:active {
  45. outline: 0 !important;
  46. }
  47. &.button-primary,
  48. &.button-alternative,
  49. &.button-secondary,
  50. &.button-alternative-2 {
  51. font-size: 16px;
  52. line-height: 36px;
  53. height: auto;
  54. text-transform: none;
  55. padding: 4px 16px;
  56. }
  57. &.button-alternative {
  58. color: $inverted-text-color;
  59. background: $ui-primary-color;
  60. &:active,
  61. &:focus,
  62. &:hover {
  63. background-color: lighten($ui-primary-color, 4%);
  64. }
  65. }
  66. &.button-alternative-2 {
  67. background: $ui-base-lighter-color;
  68. &:active,
  69. &:focus,
  70. &:hover {
  71. background-color: lighten($ui-base-lighter-color, 4%);
  72. }
  73. }
  74. &.button-secondary {
  75. color: $darker-text-color;
  76. background: transparent;
  77. padding: 3px 15px;
  78. border: 1px solid $ui-primary-color;
  79. &:active,
  80. &:focus,
  81. &:hover {
  82. border-color: lighten($ui-primary-color, 4%);
  83. color: lighten($darker-text-color, 4%);
  84. }
  85. }
  86. &.button--block {
  87. display: block;
  88. width: 100%;
  89. }
  90. }
  91. .column__wrapper {
  92. display: flex;
  93. flex: 1 1 auto;
  94. position: relative;
  95. }
  96. .icon-button {
  97. display: inline-block;
  98. padding: 0;
  99. color: $action-button-color;
  100. border: none;
  101. background: transparent;
  102. cursor: pointer;
  103. transition: color 100ms ease-in;
  104. &:hover,
  105. &:active,
  106. &:focus {
  107. color: lighten($action-button-color, 7%);
  108. transition: color 200ms ease-out;
  109. }
  110. &.disabled {
  111. color: darken($action-button-color, 13%);
  112. cursor: default;
  113. }
  114. &.active {
  115. color: $highlight-text-color;
  116. }
  117. &::-moz-focus-inner {
  118. border: 0;
  119. }
  120. &::-moz-focus-inner,
  121. &:focus,
  122. &:active {
  123. outline: 0 !important;
  124. }
  125. &.inverted {
  126. color: $lighter-text-color;
  127. &:hover,
  128. &:active,
  129. &:focus {
  130. color: darken($lighter-text-color, 7%);
  131. }
  132. &.disabled {
  133. color: lighten($lighter-text-color, 7%);
  134. }
  135. &.active {
  136. color: $highlight-text-color;
  137. &.disabled {
  138. color: lighten($highlight-text-color, 13%);
  139. }
  140. }
  141. }
  142. &.overlayed {
  143. box-sizing: content-box;
  144. background: rgba($base-overlay-background, 0.6);
  145. color: rgba($primary-text-color, 0.7);
  146. border-radius: 4px;
  147. padding: 2px;
  148. &:hover {
  149. background: rgba($base-overlay-background, 0.9);
  150. }
  151. }
  152. }
  153. .text-icon-button {
  154. color: $lighter-text-color;
  155. border: none;
  156. background: transparent;
  157. cursor: pointer;
  158. font-weight: 600;
  159. font-size: 11px;
  160. padding: 0 3px;
  161. line-height: 27px;
  162. outline: 0;
  163. transition: color 100ms ease-in;
  164. &:hover,
  165. &:active,
  166. &:focus {
  167. color: darken($lighter-text-color, 7%);
  168. transition: color 200ms ease-out;
  169. }
  170. &.disabled {
  171. color: lighten($lighter-text-color, 20%);
  172. cursor: default;
  173. }
  174. &.active {
  175. color: $highlight-text-color;
  176. }
  177. &::-moz-focus-inner {
  178. border: 0;
  179. }
  180. &::-moz-focus-inner,
  181. &:focus,
  182. &:active {
  183. outline: 0 !important;
  184. }
  185. }
  186. .dropdown-menu {
  187. position: absolute;
  188. transform-origin: 50% 0;
  189. }
  190. .invisible {
  191. font-size: 0;
  192. line-height: 0;
  193. display: inline-block;
  194. width: 0;
  195. height: 0;
  196. position: absolute;
  197. img,
  198. svg {
  199. margin: 0 !important;
  200. border: 0 !important;
  201. padding: 0 !important;
  202. width: 0 !important;
  203. height: 0 !important;
  204. }
  205. }
  206. .ellipsis {
  207. &::after {
  208. content: "…";
  209. }
  210. }
  211. .compose-form {
  212. padding: 10px;
  213. .compose-form__warning {
  214. color: $inverted-text-color;
  215. margin-bottom: 10px;
  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: $inverted-text-color;
  224. font-weight: 500;
  225. @each $lang in $cjk-langs {
  226. &:lang(#{$lang}) {
  227. font-weight: 700;
  228. }
  229. }
  230. }
  231. a {
  232. color: $lighter-text-color;
  233. font-weight: 500;
  234. text-decoration: underline;
  235. &:hover,
  236. &:active,
  237. &:focus {
  238. text-decoration: none;
  239. }
  240. }
  241. }
  242. .compose-form__autosuggest-wrapper {
  243. position: relative;
  244. .emoji-picker-dropdown {
  245. position: absolute;
  246. right: 5px;
  247. top: 5px;
  248. }
  249. }
  250. .autosuggest-textarea,
  251. .spoiler-input {
  252. position: relative;
  253. }
  254. .spoiler-input {
  255. height: 0;
  256. transform-origin: bottom;
  257. opacity: 0.0;
  258. &.spoiler-input--visible {
  259. height: 47px;
  260. opacity: 1.0;
  261. }
  262. }
  263. .autosuggest-textarea__textarea,
  264. .spoiler-input__input {
  265. display: block;
  266. box-sizing: border-box;
  267. width: 100%;
  268. margin: 0;
  269. color: $inverted-text-color;
  270. background: $simple-background-color;
  271. padding: 10px;
  272. font-family: inherit;
  273. font-size: 14px;
  274. resize: vertical;
  275. border: 0;
  276. outline: 0;
  277. &:focus {
  278. outline: 0;
  279. }
  280. @media screen and (max-width: 600px) {
  281. font-size: 16px;
  282. }
  283. }
  284. .spoiler-input__input {
  285. border-radius: 4px;
  286. }
  287. .autosuggest-textarea__textarea {
  288. min-height: 100px;
  289. border-radius: 4px 4px 0 0;
  290. padding-bottom: 0;
  291. padding-right: 10px + 22px;
  292. resize: none;
  293. @media screen and (max-width: 600px) {
  294. height: 100px !important; // prevent auto-resize textarea
  295. resize: vertical;
  296. }
  297. }
  298. .autosuggest-textarea__suggestions {
  299. box-sizing: border-box;
  300. display: none;
  301. position: absolute;
  302. top: 100%;
  303. width: 100%;
  304. z-index: 99;
  305. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  306. background: $ui-secondary-color;
  307. border-radius: 0 0 4px 4px;
  308. color: $inverted-text-color;
  309. font-size: 14px;
  310. padding: 6px;
  311. &.autosuggest-textarea__suggestions--visible {
  312. display: block;
  313. }
  314. }
  315. .autosuggest-textarea__suggestions__item {
  316. padding: 10px;
  317. cursor: pointer;
  318. border-radius: 4px;
  319. &:hover,
  320. &:focus,
  321. &:active,
  322. &.selected {
  323. background: darken($ui-secondary-color, 10%);
  324. }
  325. }
  326. .autosuggest-account,
  327. .autosuggest-emoji {
  328. display: flex;
  329. flex-direction: row;
  330. align-items: center;
  331. justify-content: flex-start;
  332. line-height: 18px;
  333. font-size: 14px;
  334. }
  335. .autosuggest-account-icon,
  336. .autosuggest-emoji img {
  337. display: block;
  338. margin-right: 8px;
  339. width: 16px;
  340. height: 16px;
  341. }
  342. .autosuggest-account .display-name__account {
  343. color: $lighter-text-color;
  344. }
  345. .compose-form__modifiers {
  346. color: $inverted-text-color;
  347. font-family: inherit;
  348. font-size: 14px;
  349. background: $simple-background-color;
  350. .compose-form__upload-wrapper {
  351. overflow: hidden;
  352. }
  353. .compose-form__uploads-wrapper {
  354. display: flex;
  355. flex-direction: row;
  356. padding: 5px;
  357. flex-wrap: wrap;
  358. }
  359. .compose-form__upload {
  360. flex: 1 1 0;
  361. min-width: 40%;
  362. margin: 5px;
  363. &__actions {
  364. background: linear-gradient(180deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent);
  365. display: flex;
  366. align-items: flex-start;
  367. justify-content: space-between;
  368. opacity: 0;
  369. transition: opacity .1s ease;
  370. .icon-button {
  371. flex: 0 1 auto;
  372. color: $secondary-text-color;
  373. font-size: 14px;
  374. font-weight: 500;
  375. padding: 10px;
  376. font-family: inherit;
  377. &:hover,
  378. &:focus,
  379. &:active {
  380. color: lighten($secondary-text-color, 7%);
  381. }
  382. }
  383. &.active {
  384. opacity: 1;
  385. }
  386. }
  387. &-description {
  388. position: absolute;
  389. z-index: 2;
  390. bottom: 0;
  391. left: 0;
  392. right: 0;
  393. box-sizing: border-box;
  394. background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent);
  395. padding: 10px;
  396. opacity: 0;
  397. transition: opacity .1s ease;
  398. input {
  399. background: transparent;
  400. color: $secondary-text-color;
  401. border: 0;
  402. padding: 0;
  403. margin: 0;
  404. width: 100%;
  405. font-family: inherit;
  406. font-size: 14px;
  407. font-weight: 500;
  408. &:focus {
  409. color: $white;
  410. }
  411. &::placeholder {
  412. opacity: 0.75;
  413. color: $secondary-text-color;
  414. }
  415. }
  416. &.active {
  417. opacity: 1;
  418. }
  419. }
  420. }
  421. .compose-form__upload-thumbnail {
  422. border-radius: 4px;
  423. background-position: center;
  424. background-size: cover;
  425. background-repeat: no-repeat;
  426. height: 140px;
  427. width: 100%;
  428. overflow: hidden;
  429. }
  430. }
  431. .compose-form__buttons-wrapper {
  432. padding: 10px;
  433. background: darken($simple-background-color, 8%);
  434. border-radius: 0 0 4px 4px;
  435. display: flex;
  436. justify-content: space-between;
  437. .compose-form__buttons {
  438. display: flex;
  439. .compose-form__upload-button-icon {
  440. line-height: 27px;
  441. }
  442. .compose-form__sensitive-button {
  443. display: none;
  444. &.compose-form__sensitive-button--visible {
  445. display: block;
  446. }
  447. .compose-form__sensitive-button__icon {
  448. line-height: 27px;
  449. }
  450. }
  451. }
  452. .icon-button {
  453. box-sizing: content-box;
  454. padding: 0 3px;
  455. }
  456. .character-counter__wrapper {
  457. align-self: center;
  458. margin-right: 4px;
  459. .character-counter {
  460. cursor: default;
  461. font-family: 'mastodon-font-sans-serif', sans-serif;
  462. font-size: 14px;
  463. font-weight: 600;
  464. color: $lighter-text-color;
  465. &.character-counter--over {
  466. color: $warning-red;
  467. }
  468. }
  469. }
  470. }
  471. .compose-form__publish {
  472. display: flex;
  473. justify-content: flex-end;
  474. min-width: 0;
  475. .compose-form__publish-button-wrapper {
  476. overflow: hidden;
  477. padding-top: 10px;
  478. }
  479. }
  480. }
  481. .no-reduce-motion .spoiler-input {
  482. transition: height 0.4s ease, opacity 0.4s ease;
  483. }
  484. .emojione {
  485. font-size: inherit;
  486. vertical-align: middle;
  487. object-fit: contain;
  488. margin: -.2ex .15em .2ex;
  489. width: 16px;
  490. height: 16px;
  491. img {
  492. width: auto;
  493. }
  494. }
  495. .reply-indicator {
  496. border-radius: 4px;
  497. margin-bottom: 10px;
  498. background: $ui-primary-color;
  499. padding: 10px;
  500. }
  501. .reply-indicator__header {
  502. margin-bottom: 5px;
  503. overflow: hidden;
  504. }
  505. .reply-indicator__cancel {
  506. float: right;
  507. line-height: 24px;
  508. }
  509. .reply-indicator__display-name {
  510. color: $inverted-text-color;
  511. display: block;
  512. max-width: 100%;
  513. line-height: 24px;
  514. overflow: hidden;
  515. padding-right: 25px;
  516. text-decoration: none;
  517. }
  518. .reply-indicator__display-avatar {
  519. float: left;
  520. margin-right: 5px;
  521. }
  522. .status__content--with-action {
  523. cursor: pointer;
  524. }
  525. .status__content,
  526. .reply-indicator__content {
  527. font-size: 15px;
  528. line-height: 20px;
  529. word-wrap: break-word;
  530. font-weight: 400;
  531. overflow: hidden;
  532. white-space: pre-wrap;
  533. padding-top: 2px;
  534. color: $primary-text-color;
  535. &:focus {
  536. outline: 0;
  537. }
  538. &.status__content--with-spoiler {
  539. white-space: normal;
  540. .status__content__text {
  541. white-space: pre-wrap;
  542. }
  543. }
  544. .emojione {
  545. width: 20px;
  546. height: 20px;
  547. margin: -3px 0 0;
  548. }
  549. p {
  550. margin-bottom: 20px;
  551. &:last-child {
  552. margin-bottom: 0;
  553. }
  554. }
  555. a {
  556. color: $secondary-text-color;
  557. text-decoration: none;
  558. &:hover {
  559. text-decoration: underline;
  560. .fa {
  561. color: lighten($dark-text-color, 7%);
  562. }
  563. }
  564. &.mention {
  565. &:hover {
  566. text-decoration: none;
  567. span {
  568. text-decoration: underline;
  569. }
  570. }
  571. }
  572. .fa {
  573. color: $dark-text-color;
  574. }
  575. }
  576. .status__content__spoiler-link {
  577. background: $action-button-color;
  578. &:hover {
  579. background: lighten($action-button-color, 7%);
  580. text-decoration: none;
  581. }
  582. &::-moz-focus-inner {
  583. border: 0;
  584. }
  585. &::-moz-focus-inner,
  586. &:focus,
  587. &:active {
  588. outline: 0 !important;
  589. }
  590. }
  591. .status__content__text {
  592. display: none;
  593. &.status__content__text--visible {
  594. display: block;
  595. }
  596. }
  597. }
  598. .status__content__spoiler-link {
  599. display: inline-block;
  600. border-radius: 2px;
  601. background: transparent;
  602. border: 0;
  603. color: $inverted-text-color;
  604. font-weight: 700;
  605. font-size: 11px;
  606. padding: 0 6px;
  607. text-transform: uppercase;
  608. line-height: 20px;
  609. cursor: pointer;
  610. vertical-align: middle;
  611. }
  612. .status__wrapper--filtered {
  613. color: $dark-text-color;
  614. border: 0;
  615. font-size: inherit;
  616. text-align: center;
  617. line-height: inherit;
  618. margin: 0;
  619. padding: 15px;
  620. box-sizing: border-box;
  621. width: 100%;
  622. clear: both;
  623. border-bottom: 1px solid lighten($ui-base-color, 8%);
  624. }
  625. .status__prepend-icon-wrapper {
  626. left: -26px;
  627. position: absolute;
  628. }
  629. .focusable {
  630. &:focus {
  631. outline: 0;
  632. background: lighten($ui-base-color, 4%);
  633. .status.status-direct {
  634. background: lighten($ui-base-color, 12%);
  635. &.muted {
  636. background: transparent;
  637. }
  638. }
  639. .detailed-status,
  640. .detailed-status__action-bar {
  641. background: lighten($ui-base-color, 8%);
  642. }
  643. }
  644. }
  645. .status {
  646. padding: 8px 10px;
  647. padding-left: 68px;
  648. position: relative;
  649. min-height: 48px;
  650. border-bottom: 1px solid lighten($ui-base-color, 8%);
  651. cursor: default;
  652. @supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
  653. // Add margin to avoid Edge auto-hiding scrollbar appearing over content.
  654. // On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
  655. padding-right: 26px; // 10px + 16px
  656. }
  657. @keyframes fade {
  658. 0% { opacity: 0; }
  659. 100% { opacity: 1; }
  660. }
  661. opacity: 1;
  662. animation: fade 150ms linear;
  663. .video-player {
  664. margin-top: 8px;
  665. }
  666. &.status-direct {
  667. background: lighten($ui-base-color, 8%);
  668. }
  669. &.light {
  670. .status__relative-time {
  671. color: $light-text-color;
  672. }
  673. .status__display-name {
  674. color: $inverted-text-color;
  675. }
  676. .display-name {
  677. strong {
  678. color: $inverted-text-color;
  679. }
  680. span {
  681. color: $light-text-color;
  682. }
  683. }
  684. .status__content {
  685. color: $inverted-text-color;
  686. a {
  687. color: $highlight-text-color;
  688. }
  689. a.status__content__spoiler-link {
  690. color: $primary-text-color;
  691. background: $ui-primary-color;
  692. &:hover {
  693. background: lighten($ui-primary-color, 8%);
  694. }
  695. }
  696. }
  697. }
  698. }
  699. .notification-favourite {
  700. .status.status-direct {
  701. background: transparent;
  702. .icon-button.disabled {
  703. color: lighten($action-button-color, 13%);
  704. }
  705. }
  706. }
  707. .status__relative-time {
  708. color: $dark-text-color;
  709. float: right;
  710. font-size: 14px;
  711. }
  712. .status__display-name {
  713. color: $dark-text-color;
  714. }
  715. .status__info .status__display-name {
  716. display: block;
  717. max-width: 100%;
  718. padding-right: 25px;
  719. }
  720. .status__info {
  721. font-size: 15px;
  722. }
  723. .status-check-box {
  724. border-bottom: 1px solid $ui-secondary-color;
  725. display: flex;
  726. .status-check-box__status {
  727. margin: 10px 0 10px 10px;
  728. flex: 1;
  729. .media-gallery {
  730. max-width: 250px;
  731. }
  732. .status__content {
  733. padding: 0;
  734. white-space: normal;
  735. }
  736. .video-player {
  737. margin-top: 8px;
  738. max-width: 250px;
  739. }
  740. .media-gallery__item-thumbnail {
  741. cursor: default;
  742. }
  743. }
  744. }
  745. .status-check-box-toggle {
  746. align-items: center;
  747. display: flex;
  748. flex: 0 0 auto;
  749. justify-content: center;
  750. padding: 10px;
  751. }
  752. .status__prepend {
  753. margin-left: 68px;
  754. color: $dark-text-color;
  755. padding: 8px 0;
  756. padding-bottom: 2px;
  757. font-size: 14px;
  758. position: relative;
  759. .status__display-name strong {
  760. color: $dark-text-color;
  761. }
  762. > span {
  763. display: block;
  764. overflow: hidden;
  765. text-overflow: ellipsis;
  766. }
  767. }
  768. .status__action-bar {
  769. align-items: center;
  770. display: flex;
  771. margin-top: 8px;
  772. &__counter {
  773. display: inline-flex;
  774. margin-right: 11px;
  775. align-items: center;
  776. .status__action-bar-button {
  777. margin-right: 4px;
  778. }
  779. &__label {
  780. display: inline-block;
  781. width: 14px;
  782. font-size: 12px;
  783. font-weight: 500;
  784. color: $action-button-color;
  785. }
  786. }
  787. }
  788. .status__action-bar-button {
  789. margin-right: 18px;
  790. }
  791. .status__action-bar-dropdown {
  792. height: 23.15px;
  793. width: 23.15px;
  794. }
  795. .detailed-status__action-bar-dropdown {
  796. flex: 1 1 auto;
  797. display: flex;
  798. align-items: center;
  799. justify-content: center;
  800. position: relative;
  801. }
  802. .detailed-status {
  803. background: lighten($ui-base-color, 4%);
  804. padding: 14px 10px;
  805. &--flex {
  806. display: flex;
  807. flex-wrap: wrap;
  808. justify-content: space-between;
  809. align-items: flex-start;
  810. .status__content,
  811. .detailed-status__meta {
  812. flex: 100%;
  813. }
  814. }
  815. .status__content {
  816. font-size: 19px;
  817. line-height: 24px;
  818. .emojione {
  819. width: 24px;
  820. height: 24px;
  821. margin: -1px 0 0;
  822. }
  823. .status__content__spoiler-link {
  824. line-height: 24px;
  825. margin: -1px 0 0;
  826. }
  827. }
  828. .video-player {
  829. margin-top: 8px;
  830. }
  831. }
  832. .detailed-status__meta {
  833. margin-top: 15px;
  834. color: $dark-text-color;
  835. font-size: 14px;
  836. line-height: 18px;
  837. }
  838. .detailed-status__action-bar {
  839. background: lighten($ui-base-color, 4%);
  840. border-top: 1px solid lighten($ui-base-color, 8%);
  841. border-bottom: 1px solid lighten($ui-base-color, 8%);
  842. display: flex;
  843. flex-direction: row;
  844. padding: 10px 0;
  845. }
  846. .detailed-status__link {
  847. color: inherit;
  848. text-decoration: none;
  849. }
  850. .detailed-status__favorites,
  851. .detailed-status__reblogs {
  852. display: inline-block;
  853. font-weight: 500;
  854. font-size: 12px;
  855. margin-left: 6px;
  856. }
  857. .reply-indicator__content {
  858. color: $inverted-text-color;
  859. font-size: 14px;
  860. a {
  861. color: $lighter-text-color;
  862. }
  863. }
  864. .domain {
  865. padding: 10px;
  866. border-bottom: 1px solid lighten($ui-base-color, 8%);
  867. .domain__domain-name {
  868. flex: 1 1 auto;
  869. display: block;
  870. color: $primary-text-color;
  871. text-decoration: none;
  872. font-size: 14px;
  873. font-weight: 500;
  874. }
  875. }
  876. .domain__wrapper {
  877. display: flex;
  878. }
  879. .domain_buttons {
  880. height: 18px;
  881. padding: 10px;
  882. white-space: nowrap;
  883. }
  884. .account {
  885. padding: 10px;
  886. border-bottom: 1px solid lighten($ui-base-color, 8%);
  887. &.compact {
  888. padding: 0;
  889. border-bottom: 0;
  890. .account__avatar-wrapper {
  891. margin-left: 0;
  892. }
  893. }
  894. .account__display-name {
  895. flex: 1 1 auto;
  896. display: block;
  897. color: $darker-text-color;
  898. overflow: hidden;
  899. text-decoration: none;
  900. font-size: 14px;
  901. }
  902. }
  903. .account__wrapper {
  904. display: flex;
  905. }
  906. .account__avatar-wrapper {
  907. float: left;
  908. margin-left: 12px;
  909. margin-right: 12px;
  910. }
  911. .account__avatar {
  912. @include avatar-radius();
  913. position: relative;
  914. &-inline {
  915. display: inline-block;
  916. vertical-align: middle;
  917. margin-right: 5px;
  918. }
  919. }
  920. a .account__avatar {
  921. cursor: pointer;
  922. }
  923. .account__avatar-overlay {
  924. @include avatar-size(48px);
  925. &-base {
  926. @include avatar-radius();
  927. @include avatar-size(36px);
  928. }
  929. &-overlay {
  930. @include avatar-radius();
  931. @include avatar-size(24px);
  932. position: absolute;
  933. bottom: 0;
  934. right: 0;
  935. z-index: 1;
  936. }
  937. }
  938. .account__relationship {
  939. height: 18px;
  940. padding: 10px;
  941. white-space: nowrap;
  942. }
  943. .account__header {
  944. flex: 0 0 auto;
  945. background: lighten($ui-base-color, 4%);
  946. text-align: center;
  947. background-size: cover;
  948. background-position: center;
  949. position: relative;
  950. &.inactive {
  951. opacity: 0.5;
  952. .account__header__avatar {
  953. filter: grayscale(100%);
  954. }
  955. .account__header__username {
  956. color: $secondary-text-color;
  957. }
  958. }
  959. & > div {
  960. background: rgba(lighten($ui-base-color, 4%), 0.9);
  961. padding: 20px 10px;
  962. }
  963. .account__header__content {
  964. color: $secondary-text-color;
  965. }
  966. .account__header__display-name {
  967. color: $primary-text-color;
  968. display: inline-block;
  969. width: 100%;
  970. font-size: 20px;
  971. line-height: 27px;
  972. font-weight: 500;
  973. overflow: hidden;
  974. text-overflow: ellipsis;
  975. }
  976. .account__header__username {
  977. color: $highlight-text-color;
  978. font-size: 14px;
  979. font-weight: 400;
  980. display: block;
  981. margin-bottom: 10px;
  982. overflow: hidden;
  983. text-overflow: ellipsis;
  984. }
  985. }
  986. .account__disclaimer {
  987. padding: 10px;
  988. border-top: 1px solid lighten($ui-base-color, 8%);
  989. color: $dark-text-color;
  990. strong {
  991. font-weight: 500;
  992. @each $lang in $cjk-langs {
  993. &:lang(#{$lang}) {
  994. font-weight: 700;
  995. }
  996. }
  997. }
  998. a {
  999. font-weight: 500;
  1000. color: inherit;
  1001. text-decoration: underline;
  1002. &:hover,
  1003. &:focus,
  1004. &:active {
  1005. text-decoration: none;
  1006. }
  1007. }
  1008. }
  1009. .account__header__content {
  1010. color: $darker-text-color;
  1011. font-size: 14px;
  1012. font-weight: 400;
  1013. overflow: hidden;
  1014. word-break: normal;
  1015. word-wrap: break-word;
  1016. p {
  1017. margin-bottom: 20px;
  1018. &:last-child {
  1019. margin-bottom: 0;
  1020. }
  1021. }
  1022. a {
  1023. color: inherit;
  1024. text-decoration: underline;
  1025. &:hover {
  1026. text-decoration: none;
  1027. }
  1028. }
  1029. }
  1030. .account__header__display-name {
  1031. .emojione {
  1032. width: 25px;
  1033. height: 25px;
  1034. }
  1035. }
  1036. .account__action-bar {
  1037. border-top: 1px solid lighten($ui-base-color, 8%);
  1038. border-bottom: 1px solid lighten($ui-base-color, 8%);
  1039. line-height: 36px;
  1040. overflow: hidden;
  1041. flex: 0 0 auto;
  1042. display: flex;
  1043. }
  1044. .account__action-bar-dropdown {
  1045. padding: 10px;
  1046. .icon-button {
  1047. vertical-align: middle;
  1048. }
  1049. .dropdown--active {
  1050. .dropdown__content.dropdown__right {
  1051. left: 6px;
  1052. right: initial;
  1053. }
  1054. &::after {
  1055. bottom: initial;
  1056. margin-left: 11px;
  1057. margin-top: -7px;
  1058. right: initial;
  1059. }
  1060. }
  1061. }
  1062. .account__action-bar-links {
  1063. display: flex;
  1064. flex: 1 1 auto;
  1065. line-height: 18px;
  1066. text-align: center;
  1067. }
  1068. .account__action-bar__tab {
  1069. text-decoration: none;
  1070. overflow: hidden;
  1071. flex: 0 1 100%;
  1072. border-right: 1px solid lighten($ui-base-color, 8%);
  1073. padding: 10px 0;
  1074. & > span {
  1075. display: block;
  1076. text-transform: uppercase;
  1077. font-size: 11px;
  1078. color: $darker-text-color;
  1079. }
  1080. strong {
  1081. display: block;
  1082. font-size: 15px;
  1083. font-weight: 500;
  1084. color: $primary-text-color;
  1085. @each $lang in $cjk-langs {
  1086. &:lang(#{$lang}) {
  1087. font-weight: 700;
  1088. }
  1089. }
  1090. }
  1091. }
  1092. .account__header__avatar {
  1093. background-size: 90px 90px;
  1094. display: block;
  1095. height: 90px;
  1096. margin: 0 auto 10px;
  1097. overflow: hidden;
  1098. width: 90px;
  1099. }
  1100. .account-authorize {
  1101. padding: 14px 10px;
  1102. .detailed-status__display-name {
  1103. display: block;
  1104. margin-bottom: 15px;
  1105. overflow: hidden;
  1106. }
  1107. }
  1108. .account-authorize__avatar {
  1109. float: left;
  1110. margin-right: 10px;
  1111. }
  1112. .status__display-name,
  1113. .status__relative-time,
  1114. .detailed-status__display-name,
  1115. .detailed-status__datetime,
  1116. .detailed-status__application,
  1117. .account__display-name {
  1118. text-decoration: none;
  1119. }
  1120. .status__display-name,
  1121. .account__display-name {
  1122. strong {
  1123. color: $primary-text-color;
  1124. }
  1125. }
  1126. .muted {
  1127. .emojione {
  1128. opacity: 0.5;
  1129. }
  1130. }
  1131. .status__display-name,
  1132. .reply-indicator__display-name,
  1133. .detailed-status__display-name,
  1134. a.account__display-name {
  1135. &:hover strong {
  1136. text-decoration: underline;
  1137. }
  1138. }
  1139. .account__display-name strong {
  1140. display: block;
  1141. overflow: hidden;
  1142. text-overflow: ellipsis;
  1143. }
  1144. .detailed-status__application,
  1145. .detailed-status__datetime {
  1146. color: inherit;
  1147. }
  1148. .detailed-status__display-name {
  1149. color: $secondary-text-color;
  1150. display: block;
  1151. line-height: 24px;
  1152. margin-bottom: 15px;
  1153. overflow: hidden;
  1154. strong,
  1155. span {
  1156. display: block;
  1157. text-overflow: ellipsis;
  1158. overflow: hidden;
  1159. }
  1160. strong {
  1161. font-size: 16px;
  1162. color: $primary-text-color;
  1163. }
  1164. }
  1165. .detailed-status__display-avatar {
  1166. float: left;
  1167. margin-right: 10px;
  1168. }
  1169. .status__avatar {
  1170. height: 48px;
  1171. left: 10px;
  1172. position: absolute;
  1173. top: 10px;
  1174. width: 48px;
  1175. }
  1176. .muted {
  1177. .status__content p,
  1178. .status__content a {
  1179. color: $dark-text-color;
  1180. }
  1181. .status__display-name strong {
  1182. color: $dark-text-color;
  1183. }
  1184. .status__avatar {
  1185. opacity: 0.5;
  1186. }
  1187. a.status__content__spoiler-link {
  1188. background: $ui-base-lighter-color;
  1189. color: $inverted-text-color;
  1190. &:hover {
  1191. background: lighten($ui-base-lighter-color, 7%);
  1192. text-decoration: none;
  1193. }
  1194. }
  1195. }
  1196. .notification__message {
  1197. margin: 0 10px 0 68px;
  1198. padding: 8px 0 0;
  1199. cursor: default;
  1200. color: $darker-text-color;
  1201. font-size: 15px;
  1202. position: relative;
  1203. .fa {
  1204. color: $highlight-text-color;
  1205. }
  1206. > span {
  1207. display: block;
  1208. overflow: hidden;
  1209. text-overflow: ellipsis;
  1210. }
  1211. }
  1212. .notification__favourite-icon-wrapper {
  1213. left: -26px;
  1214. position: absolute;
  1215. .star-icon {
  1216. color: $gold-star;
  1217. }
  1218. }
  1219. .star-icon.active {
  1220. color: $gold-star;
  1221. }
  1222. .notification__display-name {
  1223. color: inherit;
  1224. font-weight: 500;
  1225. text-decoration: none;
  1226. &:hover {
  1227. color: $primary-text-color;
  1228. text-decoration: underline;
  1229. }
  1230. }
  1231. .display-name {
  1232. display: block;
  1233. max-width: 100%;
  1234. overflow: hidden;
  1235. text-overflow: ellipsis;
  1236. white-space: nowrap;
  1237. }
  1238. .display-name__html {
  1239. font-weight: 500;
  1240. }
  1241. .display-name__account {
  1242. font-size: 14px;
  1243. }
  1244. .status__relative-time,
  1245. .detailed-status__datetime {
  1246. &:hover {
  1247. text-decoration: underline;
  1248. }
  1249. }
  1250. .image-loader {
  1251. position: relative;
  1252. width: 100%;
  1253. height: 100%;
  1254. display: flex;
  1255. align-items: center;
  1256. justify-content: center;
  1257. flex-direction: column;
  1258. .image-loader__preview-canvas {
  1259. max-width: $media-modal-media-max-width;
  1260. max-height: $media-modal-media-max-height;
  1261. background: url('../images/void.png') repeat;
  1262. object-fit: contain;
  1263. }
  1264. .loading-bar {
  1265. position: relative;
  1266. }
  1267. &.image-loader--amorphous .image-loader__preview-canvas {
  1268. display: none;
  1269. }
  1270. }
  1271. .zoomable-image {
  1272. position: relative;
  1273. width: 100%;
  1274. height: 100%;
  1275. display: flex;
  1276. align-items: center;
  1277. justify-content: center;
  1278. img {
  1279. max-width: $media-modal-media-max-width;
  1280. max-height: $media-modal-media-max-height;
  1281. width: auto;
  1282. height: auto;
  1283. object-fit: contain;
  1284. }
  1285. }
  1286. .navigation-bar {
  1287. padding: 10px;
  1288. display: flex;
  1289. align-items: center;
  1290. flex-shrink: 0;
  1291. cursor: default;
  1292. color: $darker-text-color;
  1293. strong {
  1294. color: $secondary-text-color;
  1295. }
  1296. a {
  1297. color: inherit;
  1298. }
  1299. .permalink {
  1300. text-decoration: none;
  1301. }
  1302. .navigation-bar__actions {
  1303. position: relative;
  1304. .icon-button.close {
  1305. position: absolute;
  1306. pointer-events: none;
  1307. transform: scale(0.0, 1.0) translate(-100%, 0);
  1308. opacity: 0;
  1309. }
  1310. .compose__action-bar .icon-button {
  1311. pointer-events: auto;
  1312. transform: scale(1.0, 1.0) translate(0, 0);
  1313. opacity: 1;
  1314. }
  1315. }
  1316. }
  1317. .navigation-bar__profile {
  1318. flex: 1 1 auto;
  1319. margin-left: 8px;
  1320. line-height: 20px;
  1321. margin-top: -1px;
  1322. overflow: hidden;
  1323. }
  1324. .navigation-bar__profile-account {
  1325. display: block;
  1326. font-weight: 500;
  1327. overflow: hidden;
  1328. text-overflow: ellipsis;
  1329. }
  1330. .navigation-bar__profile-edit {
  1331. color: inherit;
  1332. text-decoration: none;
  1333. }
  1334. .dropdown {
  1335. display: inline-block;
  1336. }
  1337. .dropdown__content {
  1338. display: none;
  1339. position: absolute;
  1340. }
  1341. .dropdown-menu__separator {
  1342. border-bottom: 1px solid darken($ui-secondary-color, 8%);
  1343. margin: 5px 7px 6px;
  1344. height: 0;
  1345. }
  1346. .dropdown-menu {
  1347. background: $ui-secondary-color;
  1348. padding: 4px 0;
  1349. border-radius: 4px;
  1350. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  1351. ul {
  1352. list-style: none;
  1353. }
  1354. }
  1355. .dropdown-menu__arrow {
  1356. position: absolute;
  1357. width: 0;
  1358. height: 0;
  1359. border: 0 solid transparent;
  1360. &.left {
  1361. right: -5px;
  1362. margin-top: -5px;
  1363. border-width: 5px 0 5px 5px;
  1364. border-left-color: $ui-secondary-color;
  1365. }
  1366. &.top {
  1367. bottom: -5px;
  1368. margin-left: -13px;
  1369. border-width: 5px 7px 0;
  1370. border-top-color: $ui-secondary-color;
  1371. }
  1372. &.bottom {
  1373. top: -5px;
  1374. margin-left: -13px;
  1375. border-width: 0 7px 5px;
  1376. border-bottom-color: $ui-secondary-color;
  1377. }
  1378. &.right {
  1379. left: -5px;
  1380. margin-top: -5px;
  1381. border-width: 5px 5px 5px 0;
  1382. border-right-color: $ui-secondary-color;
  1383. }
  1384. }
  1385. .dropdown-menu__item {
  1386. a {
  1387. font-size: 13px;
  1388. line-height: 18px;
  1389. display: block;
  1390. padding: 4px 14px;
  1391. box-sizing: border-box;
  1392. text-decoration: none;
  1393. background: $ui-secondary-color;
  1394. color: $inverted-text-color;
  1395. overflow: hidden;
  1396. text-overflow: ellipsis;
  1397. white-space: nowrap;
  1398. &:focus,
  1399. &:hover,
  1400. &:active {
  1401. background: $ui-highlight-color;
  1402. color: $secondary-text-color;
  1403. outline: 0;
  1404. }
  1405. }
  1406. }
  1407. .dropdown--active .dropdown__content {
  1408. display: block;
  1409. line-height: 18px;
  1410. max-width: 311px;
  1411. right: 0;
  1412. text-align: left;
  1413. z-index: 9999;
  1414. & > ul {
  1415. list-style: none;
  1416. background: $ui-secondary-color;
  1417. padding: 4px 0;
  1418. border-radius: 4px;
  1419. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1420. min-width: 140px;
  1421. position: relative;
  1422. }
  1423. &.dropdown__right {
  1424. right: 0;
  1425. }
  1426. &.dropdown__left {
  1427. & > ul {
  1428. left: -98px;
  1429. }
  1430. }
  1431. & > ul > li > a {
  1432. font-size: 13px;
  1433. line-height: 18px;
  1434. display: block;
  1435. padding: 4px 14px;
  1436. box-sizing: border-box;
  1437. text-decoration: none;
  1438. background: $ui-secondary-color;
  1439. color: $inverted-text-color;
  1440. overflow: hidden;
  1441. text-overflow: ellipsis;
  1442. white-space: nowrap;
  1443. &:focus {
  1444. outline: 0;
  1445. }
  1446. &:hover {
  1447. background: $ui-highlight-color;
  1448. color: $secondary-text-color;
  1449. }
  1450. }
  1451. }
  1452. .dropdown__icon {
  1453. vertical-align: middle;
  1454. }
  1455. .columns-area {
  1456. display: flex;
  1457. flex: 1 1 auto;
  1458. flex-direction: row;
  1459. justify-content: flex-start;
  1460. overflow-x: auto;
  1461. position: relative;
  1462. &.unscrollable {
  1463. overflow-x: hidden;
  1464. }
  1465. }
  1466. @media screen and (min-width: 360px) {
  1467. .columns-area {
  1468. padding: 10px;
  1469. }
  1470. .react-swipeable-view-container .columns-area {
  1471. height: calc(100% - 20px) !important;
  1472. }
  1473. }
  1474. .react-swipeable-view-container {
  1475. &,
  1476. .columns-area,
  1477. .drawer,
  1478. .column {
  1479. height: 100%;
  1480. }
  1481. }
  1482. .react-swipeable-view-container > * {
  1483. display: flex;
  1484. align-items: center;
  1485. justify-content: center;
  1486. height: 100%;
  1487. }
  1488. .column {
  1489. width: 330px;
  1490. position: relative;
  1491. box-sizing: border-box;
  1492. display: flex;
  1493. flex-direction: column;
  1494. > .scrollable {
  1495. background: $ui-base-color;
  1496. }
  1497. }
  1498. .ui {
  1499. flex: 0 0 auto;
  1500. display: flex;
  1501. flex-direction: column;
  1502. width: 100%;
  1503. height: 100%;
  1504. background: darken($ui-base-color, 7%);
  1505. }
  1506. .drawer {
  1507. width: 300px;
  1508. box-sizing: border-box;
  1509. display: flex;
  1510. flex-direction: column;
  1511. overflow-y: hidden;
  1512. }
  1513. .drawer__tab {
  1514. display: block;
  1515. flex: 1 1 auto;
  1516. padding: 15px 5px 13px;
  1517. color: $darker-text-color;
  1518. text-decoration: none;
  1519. text-align: center;
  1520. font-size: 16px;
  1521. border-bottom: 2px solid transparent;
  1522. }
  1523. .column,
  1524. .drawer {
  1525. flex: 1 1 100%;
  1526. overflow: hidden;
  1527. }
  1528. @media screen and (min-width: 360px) {
  1529. .tabs-bar {
  1530. margin: 10px;
  1531. margin-bottom: 0;
  1532. }
  1533. .getting-started__wrapper,
  1534. .getting-started__trends,
  1535. .search {
  1536. margin-bottom: 10px;
  1537. }
  1538. }
  1539. @media screen and (max-width: 630px) {
  1540. .column,
  1541. .drawer {
  1542. width: 100%;
  1543. padding: 0;
  1544. }
  1545. .columns-area {
  1546. flex-direction: column;
  1547. }
  1548. .search__input,
  1549. .autosuggest-textarea__textarea {
  1550. font-size: 16px;
  1551. }
  1552. }
  1553. @media screen and (min-width: 631px) {
  1554. .columns-area {
  1555. padding: 0;
  1556. }
  1557. .column,
  1558. .drawer {
  1559. flex: 0 0 auto;
  1560. padding: 10px;
  1561. padding-left: 5px;
  1562. padding-right: 5px;
  1563. &:first-child {
  1564. padding-left: 10px;
  1565. }
  1566. &:last-child {
  1567. padding-right: 10px;
  1568. }
  1569. }
  1570. .columns-area > div {
  1571. .column,
  1572. .drawer {
  1573. padding-left: 5px;
  1574. padding-right: 5px;
  1575. }
  1576. }
  1577. }
  1578. .drawer__pager {
  1579. box-sizing: border-box;
  1580. padding: 0;
  1581. flex-grow: 1;
  1582. position: relative;
  1583. overflow: hidden;
  1584. display: flex;
  1585. }
  1586. .drawer__inner {
  1587. position: absolute;
  1588. top: 0;
  1589. left: 0;
  1590. background: lighten($ui-base-color, 13%);
  1591. box-sizing: border-box;
  1592. padding: 0;
  1593. display: flex;
  1594. flex-direction: column;
  1595. overflow: hidden;
  1596. overflow-y: auto;
  1597. width: 100%;
  1598. height: 100%;
  1599. &.darker {
  1600. background: $ui-base-color;
  1601. }
  1602. }
  1603. .drawer__inner__mastodon {
  1604. background: lighten($ui-base-color, 13%) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 234.80078 31.757813" width="234.80078" height="31.757812"><path d="M19.599609 0c-1.05 0-2.10039.375-2.90039 1.125L0 16.925781v14.832031h234.80078V17.025391l-16.5-15.900391c-1.6-1.5-4.20078-1.5-5.80078 0l-13.80078 13.099609c-1.6 1.5-4.19883 1.5-5.79883 0L179.09961 1.125c-1.6-1.5-4.19883-1.5-5.79883 0L159.5 14.224609c-1.6 1.5-4.20078 1.5-5.80078 0L139.90039 1.125c-1.6-1.5-4.20078-1.5-5.80078 0l-13.79883 13.099609c-1.6 1.5-4.20078 1.5-5.80078 0L100.69922 1.125c-1.600001-1.5-4.198829-1.5-5.798829 0l-13.59961 13.099609c-1.6 1.5-4.200781 1.5-5.800781 0L61.699219 1.125c-1.6-1.5-4.198828-1.5-5.798828 0L42.099609 14.224609c-1.6 1.5-4.198828 1.5-5.798828 0L22.5 1.125C21.7.375 20.649609 0 19.599609 0z" fill="#{hex-color($ui-base-color)}"/></svg>') no-repeat bottom / 100% auto;
  1605. flex: 1;
  1606. min-height: 47px;
  1607. > img {
  1608. display: block;
  1609. object-fit: contain;
  1610. object-position: bottom left;
  1611. width: 100%;
  1612. height: 100%;
  1613. pointer-events: none;
  1614. user-drag: none;
  1615. user-select: none;
  1616. }
  1617. }
  1618. .pseudo-drawer {
  1619. background: lighten($ui-base-color, 13%);
  1620. font-size: 13px;
  1621. text-align: left;
  1622. }
  1623. .drawer__header {
  1624. flex: 0 0 auto;
  1625. font-size: 16px;
  1626. background: lighten($ui-base-color, 8%);
  1627. margin-bottom: 10px;
  1628. display: flex;
  1629. flex-direction: row;
  1630. a {
  1631. transition: background 100ms ease-in;
  1632. &:hover {
  1633. background: lighten($ui-base-color, 3%);
  1634. transition: background 200ms ease-out;
  1635. }
  1636. }
  1637. }
  1638. .tabs-bar {
  1639. display: flex;
  1640. background: lighten($ui-base-color, 8%);
  1641. flex: 0 0 auto;
  1642. overflow-y: auto;
  1643. }
  1644. .tabs-bar__link {
  1645. display: block;
  1646. flex: 1 1 auto;
  1647. padding: 15px 10px;
  1648. color: $primary-text-color;
  1649. text-decoration: none;
  1650. text-align: center;
  1651. font-size: 14px;
  1652. font-weight: 500;
  1653. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1654. transition: all 50ms linear;
  1655. .fa {
  1656. font-weight: 400;
  1657. font-size: 16px;
  1658. }
  1659. &.active {
  1660. border-bottom: 2px solid $highlight-text-color;
  1661. color: $highlight-text-color;
  1662. }
  1663. &:hover,
  1664. &:focus,
  1665. &:active {
  1666. @media screen and (min-width: 631px) {
  1667. background: lighten($ui-base-color, 14%);
  1668. }
  1669. }
  1670. span {
  1671. margin-left: 5px;
  1672. display: none;
  1673. }
  1674. }
  1675. @media screen and (min-width: 600px) {
  1676. .tabs-bar__link {
  1677. span {
  1678. display: inline;
  1679. }
  1680. }
  1681. }
  1682. @media screen and (min-width: 631px) {
  1683. .tabs-bar {
  1684. display: none;
  1685. }
  1686. }
  1687. .scrollable {
  1688. overflow-y: scroll;
  1689. overflow-x: hidden;
  1690. flex: 1 1 auto;
  1691. -webkit-overflow-scrolling: touch;
  1692. will-change: transform; // improves perf in mobile Chrome
  1693. &.optionally-scrollable {
  1694. overflow-y: auto;
  1695. }
  1696. @supports(display: grid) { // hack to fix Chrome <57
  1697. contain: strict;
  1698. }
  1699. }
  1700. .scrollable.fullscreen {
  1701. @supports(display: grid) { // hack to fix Chrome <57
  1702. contain: none;
  1703. }
  1704. }
  1705. .column-back-button {
  1706. background: lighten($ui-base-color, 4%);
  1707. color: $highlight-text-color;
  1708. cursor: pointer;
  1709. flex: 0 0 auto;
  1710. font-size: 16px;
  1711. line-height: inherit;
  1712. border: 0;
  1713. text-align: unset;
  1714. padding: 15px;
  1715. margin: 0;
  1716. z-index: 3;
  1717. outline: 0;
  1718. &:hover {
  1719. text-decoration: underline;
  1720. }
  1721. }
  1722. .column-header__back-button {
  1723. background: lighten($ui-base-color, 4%);
  1724. border: 0;
  1725. font-family: inherit;
  1726. color: $highlight-text-color;
  1727. cursor: pointer;
  1728. white-space: nowrap;
  1729. font-size: 16px;
  1730. padding: 0 5px 0 0;
  1731. z-index: 3;
  1732. &:hover {
  1733. text-decoration: underline;
  1734. }
  1735. &:last-child {
  1736. padding: 0 15px 0 0;
  1737. }
  1738. }
  1739. .column-back-button__icon {
  1740. display: inline-block;
  1741. margin-right: 5px;
  1742. }
  1743. .column-back-button--slim {
  1744. position: relative;
  1745. }
  1746. .column-back-button--slim-button {
  1747. cursor: pointer;
  1748. flex: 0 0 auto;
  1749. font-size: 16px;
  1750. padding: 15px;
  1751. position: absolute;
  1752. right: 0;
  1753. top: -48px;
  1754. }
  1755. .react-toggle {
  1756. display: inline-block;
  1757. position: relative;
  1758. cursor: pointer;
  1759. background-color: transparent;
  1760. border: 0;
  1761. padding: 0;
  1762. user-select: none;
  1763. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  1764. -webkit-tap-highlight-color: transparent;
  1765. }
  1766. .react-toggle-screenreader-only {
  1767. border: 0;
  1768. clip: rect(0 0 0 0);
  1769. height: 1px;
  1770. margin: -1px;
  1771. overflow: hidden;
  1772. padding: 0;
  1773. position: absolute;
  1774. width: 1px;
  1775. }
  1776. .react-toggle--disabled {
  1777. cursor: not-allowed;
  1778. opacity: 0.5;
  1779. transition: opacity 0.25s;
  1780. }
  1781. .react-toggle-track {
  1782. width: 50px;
  1783. height: 24px;
  1784. padding: 0;
  1785. border-radius: 30px;
  1786. background-color: $ui-base-color;
  1787. transition: all 0.2s ease;
  1788. }
  1789. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  1790. background-color: darken($ui-base-color, 10%);
  1791. }
  1792. .react-toggle--checked .react-toggle-track {
  1793. background-color: $ui-highlight-color;
  1794. }
  1795. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  1796. background-color: lighten($ui-highlight-color, 10%);
  1797. }
  1798. .react-toggle-track-check {
  1799. position: absolute;
  1800. width: 14px;
  1801. height: 10px;
  1802. top: 0;
  1803. bottom: 0;
  1804. margin-top: auto;
  1805. margin-bottom: auto;
  1806. line-height: 0;
  1807. left: 8px;
  1808. opacity: 0;
  1809. transition: opacity 0.25s ease;
  1810. }
  1811. .react-toggle--checked .react-toggle-track-check {
  1812. opacity: 1;
  1813. transition: opacity 0.25s ease;
  1814. }
  1815. .react-toggle-track-x {
  1816. position: absolute;
  1817. width: 10px;
  1818. height: 10px;
  1819. top: 0;
  1820. bottom: 0;
  1821. margin-top: auto;
  1822. margin-bottom: auto;
  1823. line-height: 0;
  1824. right: 10px;
  1825. opacity: 1;
  1826. transition: opacity 0.25s ease;
  1827. }
  1828. .react-toggle--checked .react-toggle-track-x {
  1829. opacity: 0;
  1830. }
  1831. .react-toggle-thumb {
  1832. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  1833. position: absolute;
  1834. top: 1px;
  1835. left: 1px;
  1836. width: 22px;
  1837. height: 22px;
  1838. border: 1px solid $ui-base-color;
  1839. border-radius: 50%;
  1840. background-color: darken($simple-background-color, 2%);
  1841. box-sizing: border-box;
  1842. transition: all 0.25s ease;
  1843. }
  1844. .react-toggle--checked .react-toggle-thumb {
  1845. left: 27px;
  1846. border-color: $ui-highlight-color;
  1847. }
  1848. .column-link {
  1849. background: lighten($ui-base-color, 8%);
  1850. color: $primary-text-color;
  1851. display: block;
  1852. font-size: 16px;
  1853. padding: 15px;
  1854. text-decoration: none;
  1855. &:hover {
  1856. background: lighten($ui-base-color, 11%);
  1857. }
  1858. }
  1859. .column-link__icon {
  1860. display: inline-block;
  1861. margin-right: 5px;
  1862. }
  1863. .column-link__badge {
  1864. display: inline-block;
  1865. border-radius: 4px;
  1866. font-size: 12px;
  1867. line-height: 19px;
  1868. font-weight: 500;
  1869. background: $ui-base-color;
  1870. padding: 4px 8px;
  1871. margin: -6px 10px;
  1872. }
  1873. .column-subheading {
  1874. background: $ui-base-color;
  1875. color: $dark-text-color;
  1876. padding: 8px 20px;
  1877. font-size: 12px;
  1878. font-weight: 500;
  1879. text-transform: uppercase;
  1880. cursor: default;
  1881. }
  1882. .getting-started__wrapper,
  1883. .getting-started,
  1884. .flex-spacer {
  1885. background: $ui-base-color;
  1886. }
  1887. .getting-started__wrapper {
  1888. flex: 0 0 auto;
  1889. }
  1890. .flex-spacer {
  1891. flex: 1 1 auto;
  1892. }
  1893. .getting-started {
  1894. color: $dark-text-color;
  1895. p {
  1896. color: $dark-text-color;
  1897. font-size: 13px;
  1898. margin-bottom: 20px;
  1899. a {
  1900. color: $dark-text-color;
  1901. text-decoration: underline;
  1902. }
  1903. }
  1904. a {
  1905. text-decoration: none;
  1906. color: $darker-text-color;
  1907. &:hover,
  1908. &:focus,
  1909. &:active {
  1910. text-decoration: underline;
  1911. }
  1912. }
  1913. &__footer {
  1914. flex: 0 0 auto;
  1915. padding: 10px;
  1916. padding-top: 20px;
  1917. ul {
  1918. margin-bottom: 10px;
  1919. }
  1920. ul li {
  1921. display: inline;
  1922. }
  1923. }
  1924. &__trends {
  1925. background: $ui-base-color;
  1926. flex: 0 1 auto;
  1927. @media screen and (max-height: 810px) {
  1928. .trends__item:nth-child(3) {
  1929. display: none;
  1930. }
  1931. }
  1932. @media screen and (max-height: 720px) {
  1933. .trends__item:nth-child(2) {
  1934. display: none;
  1935. }
  1936. }
  1937. @media screen and (max-height: 670px) {
  1938. display: none;
  1939. }
  1940. }
  1941. &__scrollable {
  1942. max-height: 100%;
  1943. overflow-y: auto;
  1944. }
  1945. }
  1946. .keyboard-shortcuts {
  1947. padding: 8px 0 0;
  1948. overflow: hidden;
  1949. thead {
  1950. position: absolute;
  1951. left: -9999px;
  1952. }
  1953. td {
  1954. padding: 0 10px 8px;
  1955. }
  1956. kbd {
  1957. display: inline-block;
  1958. padding: 3px 5px;
  1959. background-color: lighten($ui-base-color, 8%);
  1960. border: 1px solid darken($ui-base-color, 4%);
  1961. }
  1962. }
  1963. .setting-text {
  1964. color: $darker-text-color;
  1965. background: transparent;
  1966. border: none;
  1967. border-bottom: 2px solid $ui-primary-color;
  1968. box-sizing: border-box;
  1969. display: block;
  1970. font-family: inherit;
  1971. margin-bottom: 10px;
  1972. padding: 7px 0;
  1973. width: 100%;
  1974. &:focus,
  1975. &:active {
  1976. color: $primary-text-color;
  1977. border-bottom-color: $highlight-text-color;
  1978. }
  1979. @media screen and (max-width: 600px) {
  1980. font-size: 16px;
  1981. }
  1982. }
  1983. .no-reduce-motion button.icon-button i.fa-retweet {
  1984. background-position: 0 0;
  1985. height: 19px;
  1986. transition: background-position 0.9s steps(10);
  1987. transition-duration: 0s;
  1988. vertical-align: middle;
  1989. width: 22px;
  1990. &::before {
  1991. display: none !important;
  1992. }
  1993. }
  1994. .no-reduce-motion button.icon-button.active i.fa-retweet {
  1995. transition-duration: 0.9s;
  1996. background-position: 0 100%;
  1997. }
  1998. .reduce-motion button.icon-button i.fa-retweet {
  1999. color: $action-button-color;
  2000. transition: color 100ms ease-in;
  2001. }
  2002. .reduce-motion button.icon-button.active i.fa-retweet {
  2003. color: $highlight-text-color;
  2004. }
  2005. .status-card {
  2006. display: flex;
  2007. font-size: 14px;
  2008. border: 1px solid lighten($ui-base-color, 8%);
  2009. border-radius: 4px;
  2010. color: $dark-text-color;
  2011. margin-top: 14px;
  2012. text-decoration: none;
  2013. overflow: hidden;
  2014. &__actions {
  2015. bottom: 0;
  2016. left: 0;
  2017. position: absolute;
  2018. right: 0;
  2019. top: 0;
  2020. display: flex;
  2021. justify-content: center;
  2022. align-items: center;
  2023. & > div {
  2024. background: rgba($base-shadow-color, 0.6);
  2025. border-radius: 4px;
  2026. padding: 12px 9px;
  2027. flex: 0 0 auto;
  2028. display: flex;
  2029. justify-content: center;
  2030. align-items: center;
  2031. }
  2032. button,
  2033. a {
  2034. display: inline;
  2035. color: $primary-text-color;
  2036. background: transparent;
  2037. border: 0;
  2038. padding: 0 5px;
  2039. text-decoration: none;
  2040. opacity: 0.6;
  2041. font-size: 18px;
  2042. line-height: 18px;
  2043. &:hover,
  2044. &:active,
  2045. &:focus {
  2046. opacity: 1;
  2047. }
  2048. }
  2049. a {
  2050. font-size: 19px;
  2051. position: relative;
  2052. bottom: -1px;
  2053. }
  2054. }
  2055. }
  2056. a.status-card {
  2057. cursor: pointer;
  2058. &:hover {
  2059. background: lighten($ui-base-color, 8%);
  2060. }
  2061. }
  2062. .status-card-photo {
  2063. cursor: zoom-in;
  2064. display: block;
  2065. text-decoration: none;
  2066. width: 100%;
  2067. height: auto;
  2068. margin: 0;
  2069. }
  2070. .status-card-video {
  2071. iframe {
  2072. width: 100%;
  2073. height: 100%;
  2074. }
  2075. }
  2076. .status-card__title {
  2077. display: block;
  2078. font-weight: 500;
  2079. margin-bottom: 5px;
  2080. color: $darker-text-color;
  2081. overflow: hidden;
  2082. text-overflow: ellipsis;
  2083. white-space: nowrap;
  2084. text-decoration: none;
  2085. }
  2086. .status-card__content {
  2087. flex: 1 1 auto;
  2088. overflow: hidden;
  2089. padding: 14px 14px 14px 8px;
  2090. }
  2091. .status-card__description {
  2092. color: $darker-text-color;
  2093. }
  2094. .status-card__host {
  2095. display: block;
  2096. margin-top: 5px;
  2097. font-size: 13px;
  2098. }
  2099. .status-card__image {
  2100. flex: 0 0 100px;
  2101. background: lighten($ui-base-color, 8%);
  2102. position: relative;
  2103. }
  2104. .status-card.horizontal {
  2105. display: block;
  2106. .status-card__image {
  2107. width: 100%;
  2108. }
  2109. .status-card__image-image {
  2110. border-radius: 4px 4px 0 0;
  2111. }
  2112. .status-card__title {
  2113. white-space: inherit;
  2114. }
  2115. }
  2116. .status-card__image-image {
  2117. border-radius: 4px 0 0 4px;
  2118. display: block;
  2119. margin: 0;
  2120. width: 100%;
  2121. height: 100%;
  2122. object-fit: cover;
  2123. background-size: cover;
  2124. background-position: center center;
  2125. }
  2126. .load-more {
  2127. display: block;
  2128. color: $dark-text-color;
  2129. background-color: transparent;
  2130. border: 0;
  2131. font-size: inherit;
  2132. text-align: center;
  2133. line-height: inherit;
  2134. margin: 0;
  2135. padding: 15px;
  2136. box-sizing: border-box;
  2137. width: 100%;
  2138. clear: both;
  2139. text-decoration: none;
  2140. &:hover {
  2141. background: lighten($ui-base-color, 2%);
  2142. }
  2143. }
  2144. .load-gap {
  2145. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2146. }
  2147. .regeneration-indicator {
  2148. text-align: center;
  2149. font-size: 16px;
  2150. font-weight: 500;
  2151. color: $dark-text-color;
  2152. background: $ui-base-color;
  2153. cursor: default;
  2154. display: flex;
  2155. flex: 1 1 auto;
  2156. align-items: center;
  2157. justify-content: center;
  2158. padding: 20px;
  2159. & > div {
  2160. width: 100%;
  2161. background: transparent;
  2162. padding-top: 0;
  2163. }
  2164. &__figure {
  2165. background: url('../images/elephant_ui_working.svg') no-repeat center 0;
  2166. width: 100%;
  2167. height: 160px;
  2168. background-size: contain;
  2169. position: absolute;
  2170. top: 50%;
  2171. left: 50%;
  2172. transform: translate(-50%, -50%);
  2173. }
  2174. &.missing-indicator {
  2175. padding-top: 20px + 48px;
  2176. .regeneration-indicator__figure {
  2177. background-image: url('../images/elephant_ui_disappointed.svg');
  2178. }
  2179. }
  2180. &__label {
  2181. margin-top: 200px;
  2182. strong {
  2183. display: block;
  2184. margin-bottom: 10px;
  2185. color: $dark-text-color;
  2186. }
  2187. span {
  2188. font-size: 15px;
  2189. font-weight: 400;
  2190. }
  2191. }
  2192. }
  2193. .column-header__wrapper {
  2194. position: relative;
  2195. flex: 0 0 auto;
  2196. &.active {
  2197. &::before {
  2198. display: block;
  2199. content: "";
  2200. position: absolute;
  2201. top: 35px;
  2202. left: 0;
  2203. right: 0;
  2204. margin: 0 auto;
  2205. width: 60%;
  2206. pointer-events: none;
  2207. height: 28px;
  2208. z-index: 1;
  2209. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  2210. }
  2211. }
  2212. }
  2213. .column-header {
  2214. display: flex;
  2215. font-size: 16px;
  2216. background: lighten($ui-base-color, 4%);
  2217. flex: 0 0 auto;
  2218. cursor: pointer;
  2219. position: relative;
  2220. z-index: 2;
  2221. outline: 0;
  2222. overflow: hidden;
  2223. & > button {
  2224. margin: 0;
  2225. border: none;
  2226. padding: 15px 0 15px 15px;
  2227. color: inherit;
  2228. background: transparent;
  2229. font: inherit;
  2230. text-align: left;
  2231. text-overflow: ellipsis;
  2232. overflow: hidden;
  2233. white-space: nowrap;
  2234. flex: 1;
  2235. }
  2236. & > .column-header__back-button {
  2237. color: $highlight-text-color;
  2238. }
  2239. &.active {
  2240. box-shadow: 0 1px 0 rgba($highlight-text-color, 0.3);
  2241. .column-header__icon {
  2242. color: $highlight-text-color;
  2243. text-shadow: 0 0 10px rgba($highlight-text-color, 0.4);
  2244. }
  2245. }
  2246. &:focus,
  2247. &:active {
  2248. outline: 0;
  2249. }
  2250. }
  2251. .column-header__buttons {
  2252. height: 48px;
  2253. display: flex;
  2254. }
  2255. .column-header__links .text-btn {
  2256. margin-right: 10px;
  2257. }
  2258. .column-header__button {
  2259. background: lighten($ui-base-color, 4%);
  2260. border: 0;
  2261. color: $darker-text-color;
  2262. cursor: pointer;
  2263. font-size: 16px;
  2264. padding: 0 15px;
  2265. &:hover {
  2266. color: lighten($darker-text-color, 7%);
  2267. }
  2268. &.active {
  2269. color: $primary-text-color;
  2270. background: lighten($ui-base-color, 8%);
  2271. &:hover {
  2272. color: $primary-text-color;
  2273. background: lighten($ui-base-color, 8%);
  2274. }
  2275. }
  2276. }
  2277. .column-header__collapsible {
  2278. max-height: 70vh;
  2279. overflow: hidden;
  2280. overflow-y: auto;
  2281. color: $darker-text-color;
  2282. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  2283. opacity: 1;
  2284. &.collapsed {
  2285. max-height: 0;
  2286. opacity: 0.5;
  2287. }
  2288. &.animating {
  2289. overflow-y: hidden;
  2290. }
  2291. hr {
  2292. height: 0;
  2293. background: transparent;
  2294. border: 0;
  2295. border-top: 1px solid lighten($ui-base-color, 12%);
  2296. margin: 10px 0;
  2297. }
  2298. }
  2299. .column-header__collapsible-inner {
  2300. background: lighten($ui-base-color, 8%);
  2301. padding: 15px;
  2302. }
  2303. .column-header__setting-btn {
  2304. &:hover {
  2305. color: $darker-text-color;
  2306. text-decoration: underline;
  2307. }
  2308. }
  2309. .column-header__setting-arrows {
  2310. float: right;
  2311. .column-header__setting-btn {
  2312. padding: 0 10px;
  2313. &:last-child {
  2314. padding-right: 0;
  2315. }
  2316. }
  2317. }
  2318. .text-btn {
  2319. display: inline-block;
  2320. padding: 0;
  2321. font-family: inherit;
  2322. font-size: inherit;
  2323. color: inherit;
  2324. border: 0;
  2325. background: transparent;
  2326. cursor: pointer;
  2327. }
  2328. .column-header__icon {
  2329. display: inline-block;
  2330. margin-right: 5px;
  2331. }
  2332. .loading-indicator {
  2333. color: $dark-text-color;
  2334. font-size: 12px;
  2335. font-weight: 400;
  2336. text-transform: uppercase;
  2337. overflow: visible;
  2338. position: absolute;
  2339. top: 50%;
  2340. left: 50%;
  2341. transform: translate(-50%, -50%);
  2342. span {
  2343. display: block;
  2344. float: left;
  2345. margin-left: 50%;
  2346. transform: translateX(-50%);
  2347. margin: 82px 0 0 50%;
  2348. white-space: nowrap;
  2349. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  2350. }
  2351. }
  2352. .loading-indicator__figure {
  2353. position: absolute;
  2354. top: 50%;
  2355. left: 50%;
  2356. transform: translate(-50%, -50%);
  2357. width: 0;
  2358. height: 0;
  2359. box-sizing: border-box;
  2360. border: 0 solid lighten($ui-base-color, 26%);
  2361. border-radius: 50%;
  2362. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  2363. }
  2364. @keyframes loader-figure {
  2365. 0% {
  2366. width: 0;
  2367. height: 0;
  2368. background-color: lighten($ui-base-color, 26%);
  2369. }
  2370. 29% {
  2371. background-color: lighten($ui-base-color, 26%);
  2372. }
  2373. 30% {
  2374. width: 42px;
  2375. height: 42px;
  2376. background-color: transparent;
  2377. border-width: 21px;
  2378. opacity: 1;
  2379. }
  2380. 100% {
  2381. width: 42px;
  2382. height: 42px;
  2383. border-width: 0;
  2384. opacity: 0;
  2385. background-color: transparent;
  2386. }
  2387. }
  2388. @keyframes loader-label {
  2389. 0% { opacity: 0.25; }
  2390. 30% { opacity: 1; }
  2391. 100% { opacity: 0.25; }
  2392. }
  2393. .video-error-cover {
  2394. align-items: center;
  2395. background: $base-overlay-background;
  2396. color: $primary-text-color;
  2397. cursor: pointer;
  2398. display: flex;
  2399. flex-direction: column;
  2400. height: 100%;
  2401. justify-content: center;
  2402. margin-top: 8px;
  2403. position: relative;
  2404. text-align: center;
  2405. z-index: 100;
  2406. }
  2407. .media-spoiler {
  2408. background: $base-overlay-background;
  2409. color: $darker-text-color;
  2410. border: 0;
  2411. padding: 0;
  2412. width: 100%;
  2413. height: 100%;
  2414. border-radius: 4px;
  2415. appearance: none;
  2416. &:hover,
  2417. &:active,
  2418. &:focus {
  2419. padding: 0;
  2420. color: lighten($darker-text-color, 8%);
  2421. }
  2422. }
  2423. .media-spoiler__warning {
  2424. display: block;
  2425. font-size: 14px;
  2426. }
  2427. .media-spoiler__trigger {
  2428. display: block;
  2429. font-size: 11px;
  2430. font-weight: 700;
  2431. }
  2432. .spoiler-button {
  2433. display: none;
  2434. left: 4px;
  2435. position: absolute;
  2436. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  2437. top: 4px;
  2438. z-index: 100;
  2439. &.spoiler-button--visible {
  2440. display: block;
  2441. }
  2442. }
  2443. .modal-container--preloader {
  2444. background: lighten($ui-base-color, 8%);
  2445. }
  2446. .account--panel {
  2447. background: lighten($ui-base-color, 4%);
  2448. border-top: 1px solid lighten($ui-base-color, 8%);
  2449. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2450. display: flex;
  2451. flex-direction: row;
  2452. padding: 10px 0;
  2453. }
  2454. .account--panel__button,
  2455. .detailed-status__button {
  2456. flex: 1 1 auto;
  2457. text-align: center;
  2458. }
  2459. .column-settings__outer {
  2460. background: lighten($ui-base-color, 8%);
  2461. padding: 15px;
  2462. }
  2463. .column-settings__section {
  2464. color: $darker-text-color;
  2465. cursor: default;
  2466. display: block;
  2467. font-weight: 500;
  2468. margin-bottom: 10px;
  2469. }
  2470. .column-settings__row {
  2471. .text-btn {
  2472. margin-bottom: 15px;
  2473. }
  2474. }
  2475. .account--follows-info {
  2476. color: $primary-text-color;
  2477. position: absolute;
  2478. top: 10px;
  2479. left: 10px;
  2480. opacity: 0.7;
  2481. display: inline-block;
  2482. vertical-align: top;
  2483. background-color: rgba($base-overlay-background, 0.4);
  2484. text-transform: uppercase;
  2485. font-size: 11px;
  2486. font-weight: 500;
  2487. padding: 4px;
  2488. border-radius: 4px;
  2489. }
  2490. .account--muting-info {
  2491. color: $primary-text-color;
  2492. position: absolute;
  2493. top: 40px;
  2494. left: 10px;
  2495. opacity: 0.7;
  2496. display: inline-block;
  2497. vertical-align: top;
  2498. background-color: rgba($base-overlay-background, 0.4);
  2499. text-transform: uppercase;
  2500. font-size: 11px;
  2501. font-weight: 500;
  2502. padding: 4px;
  2503. border-radius: 4px;
  2504. }
  2505. .account--action-button {
  2506. position: absolute;
  2507. top: 10px;
  2508. right: 20px;
  2509. }
  2510. .setting-toggle {
  2511. display: block;
  2512. line-height: 24px;
  2513. }
  2514. .setting-toggle__label,
  2515. .setting-meta__label {
  2516. color: $darker-text-color;
  2517. display: inline-block;
  2518. margin-bottom: 14px;
  2519. margin-left: 8px;
  2520. vertical-align: middle;
  2521. }
  2522. .setting-meta__label {
  2523. float: right;
  2524. }
  2525. .empty-column-indicator,
  2526. .error-column {
  2527. color: $dark-text-color;
  2528. background: $ui-base-color;
  2529. text-align: center;
  2530. padding: 20px;
  2531. font-size: 15px;
  2532. font-weight: 400;
  2533. cursor: default;
  2534. display: flex;
  2535. flex: 1 1 auto;
  2536. align-items: center;
  2537. justify-content: center;
  2538. @supports(display: grid) { // hack to fix Chrome <57
  2539. contain: strict;
  2540. }
  2541. a {
  2542. color: $highlight-text-color;
  2543. text-decoration: none;
  2544. &:hover {
  2545. text-decoration: underline;
  2546. }
  2547. }
  2548. }
  2549. .error-column {
  2550. flex-direction: column;
  2551. }
  2552. @keyframes heartbeat {
  2553. from {
  2554. transform: scale(1);
  2555. animation-timing-function: ease-out;
  2556. }
  2557. 10% {
  2558. transform: scale(0.91);
  2559. animation-timing-function: ease-in;
  2560. }
  2561. 17% {
  2562. transform: scale(0.98);
  2563. animation-timing-function: ease-out;
  2564. }
  2565. 33% {
  2566. transform: scale(0.87);
  2567. animation-timing-function: ease-in;
  2568. }
  2569. 45% {
  2570. transform: scale(1);
  2571. animation-timing-function: ease-out;
  2572. }
  2573. }
  2574. .no-reduce-motion .pulse-loading {
  2575. transform-origin: center center;
  2576. animation: heartbeat 1.5s ease-in-out infinite both;
  2577. }
  2578. @keyframes shake-bottom {
  2579. 0%,
  2580. 100% {
  2581. transform: rotate(0deg);
  2582. transform-origin: 50% 100%;
  2583. }
  2584. 10% {
  2585. transform: rotate(2deg);
  2586. }
  2587. 20%,
  2588. 40%,
  2589. 60% {
  2590. transform: rotate(-4deg);
  2591. }
  2592. 30%,
  2593. 50%,
  2594. 70% {
  2595. transform: rotate(4deg);
  2596. }
  2597. 80% {
  2598. transform: rotate(-2deg);
  2599. }
  2600. 90% {
  2601. transform: rotate(2deg);
  2602. }
  2603. }
  2604. .no-reduce-motion .shake-bottom {
  2605. transform-origin: 50% 100%;
  2606. animation: shake-bottom 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) 2s 2 both;
  2607. }
  2608. .emoji-picker-dropdown__menu {
  2609. background: $simple-background-color;
  2610. position: absolute;
  2611. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  2612. border-radius: 4px;
  2613. margin-top: 5px;
  2614. .emoji-mart-scroll {
  2615. transition: opacity 200ms ease;
  2616. }
  2617. &.selecting .emoji-mart-scroll {
  2618. opacity: 0.5;
  2619. }
  2620. }
  2621. .emoji-picker-dropdown__modifiers {
  2622. position: absolute;
  2623. top: 60px;
  2624. right: 11px;
  2625. cursor: pointer;
  2626. }
  2627. .emoji-picker-dropdown__modifiers__menu {
  2628. position: absolute;
  2629. z-index: 4;
  2630. top: -4px;
  2631. left: -8px;
  2632. background: $simple-background-color;
  2633. border-radius: 4px;
  2634. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  2635. overflow: hidden;
  2636. button {
  2637. display: block;
  2638. cursor: pointer;
  2639. border: 0;
  2640. padding: 4px 8px;
  2641. background: transparent;
  2642. &:hover,
  2643. &:focus,
  2644. &:active {
  2645. background: rgba($ui-secondary-color, 0.4);
  2646. }
  2647. }
  2648. .emoji-mart-emoji {
  2649. height: 22px;
  2650. }
  2651. }
  2652. .emoji-mart-emoji {
  2653. span {
  2654. background-repeat: no-repeat;
  2655. }
  2656. }
  2657. .upload-area {
  2658. align-items: center;
  2659. background: rgba($base-overlay-background, 0.8);
  2660. display: flex;
  2661. height: 100%;
  2662. justify-content: center;
  2663. left: 0;
  2664. opacity: 0;
  2665. position: absolute;
  2666. top: 0;
  2667. visibility: hidden;
  2668. width: 100%;
  2669. z-index: 2000;
  2670. * {
  2671. pointer-events: none;
  2672. }
  2673. }
  2674. .upload-area__drop {
  2675. width: 320px;
  2676. height: 160px;
  2677. display: flex;
  2678. box-sizing: border-box;
  2679. position: relative;
  2680. padding: 8px;
  2681. }
  2682. .upload-area__background {
  2683. position: absolute;
  2684. top: 0;
  2685. right: 0;
  2686. bottom: 0;
  2687. left: 0;
  2688. z-index: -1;
  2689. border-radius: 4px;
  2690. background: $ui-base-color;
  2691. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2692. }
  2693. .upload-area__content {
  2694. flex: 1;
  2695. display: flex;
  2696. align-items: center;
  2697. justify-content: center;
  2698. color: $secondary-text-color;
  2699. font-size: 18px;
  2700. font-weight: 500;
  2701. border: 2px dashed $ui-base-lighter-color;
  2702. border-radius: 4px;
  2703. }
  2704. .upload-progress {
  2705. padding: 10px;
  2706. color: $lighter-text-color;
  2707. overflow: hidden;
  2708. display: flex;
  2709. .fa {
  2710. font-size: 34px;
  2711. margin-right: 10px;
  2712. }
  2713. span {
  2714. font-size: 12px;
  2715. text-transform: uppercase;
  2716. font-weight: 500;
  2717. display: block;
  2718. }
  2719. }
  2720. .upload-progess__message {
  2721. flex: 1 1 auto;
  2722. }
  2723. .upload-progress__backdrop {
  2724. width: 100%;
  2725. height: 6px;
  2726. border-radius: 6px;
  2727. background: $ui-base-lighter-color;
  2728. position: relative;
  2729. margin-top: 5px;
  2730. }
  2731. .upload-progress__tracker {
  2732. position: absolute;
  2733. left: 0;
  2734. top: 0;
  2735. height: 6px;
  2736. background: $ui-highlight-color;
  2737. border-radius: 6px;
  2738. }
  2739. .emoji-button {
  2740. display: block;
  2741. font-size: 24px;
  2742. line-height: 24px;
  2743. margin-left: 2px;
  2744. width: 24px;
  2745. outline: 0;
  2746. cursor: pointer;
  2747. &:active,
  2748. &:focus {
  2749. outline: 0 !important;
  2750. }
  2751. img {
  2752. filter: grayscale(100%);
  2753. opacity: 0.8;
  2754. display: block;
  2755. margin: 0;
  2756. width: 22px;
  2757. height: 22px;
  2758. margin-top: 2px;
  2759. }
  2760. &:hover,
  2761. &:active,
  2762. &:focus {
  2763. img {
  2764. opacity: 1;
  2765. filter: none;
  2766. }
  2767. }
  2768. }
  2769. .dropdown--active .emoji-button img {
  2770. opacity: 1;
  2771. filter: none;
  2772. }
  2773. .privacy-dropdown__dropdown {
  2774. position: absolute;
  2775. background: $simple-background-color;
  2776. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  2777. border-radius: 4px;
  2778. margin-left: 40px;
  2779. overflow: hidden;
  2780. transform-origin: 50% 0;
  2781. }
  2782. .privacy-dropdown__option {
  2783. color: $inverted-text-color;
  2784. padding: 10px;
  2785. cursor: pointer;
  2786. display: flex;
  2787. &:hover,
  2788. &.active {
  2789. background: $ui-highlight-color;
  2790. color: $primary-text-color;
  2791. outline: 0;
  2792. .privacy-dropdown__option__content {
  2793. color: $primary-text-color;
  2794. strong {
  2795. color: $primary-text-color;
  2796. }
  2797. }
  2798. }
  2799. &.active:hover {
  2800. background: lighten($ui-highlight-color, 4%);
  2801. }
  2802. }
  2803. .privacy-dropdown__option__icon {
  2804. display: flex;
  2805. align-items: center;
  2806. justify-content: center;
  2807. margin-right: 10px;
  2808. }
  2809. .privacy-dropdown__option__content {
  2810. flex: 1 1 auto;
  2811. color: $lighter-text-color;
  2812. strong {
  2813. font-weight: 500;
  2814. display: block;
  2815. color: $inverted-text-color;
  2816. @each $lang in $cjk-langs {
  2817. &:lang(#{$lang}) {
  2818. font-weight: 700;
  2819. }
  2820. }
  2821. }
  2822. }
  2823. .privacy-dropdown.active {
  2824. .privacy-dropdown__value {
  2825. background: $simple-background-color;
  2826. border-radius: 4px 4px 0 0;
  2827. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2828. .icon-button {
  2829. transition: none;
  2830. }
  2831. &.active {
  2832. background: $ui-highlight-color;
  2833. .icon-button {
  2834. color: $primary-text-color;
  2835. }
  2836. }
  2837. }
  2838. .privacy-dropdown__dropdown {
  2839. display: block;
  2840. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2841. }
  2842. }
  2843. .search {
  2844. position: relative;
  2845. }
  2846. .search__input {
  2847. outline: 0;
  2848. box-sizing: border-box;
  2849. display: block;
  2850. width: 100%;
  2851. border: none;
  2852. padding: 10px;
  2853. padding-right: 30px;
  2854. font-family: inherit;
  2855. background: $ui-base-color;
  2856. color: $darker-text-color;
  2857. font-size: 14px;
  2858. margin: 0;
  2859. &::-moz-focus-inner {
  2860. border: 0;
  2861. }
  2862. &::-moz-focus-inner,
  2863. &:focus,
  2864. &:active {
  2865. outline: 0 !important;
  2866. }
  2867. &:focus {
  2868. background: lighten($ui-base-color, 4%);
  2869. }
  2870. @media screen and (max-width: 600px) {
  2871. font-size: 16px;
  2872. }
  2873. }
  2874. .search__icon {
  2875. &::-moz-focus-inner {
  2876. border: 0;
  2877. }
  2878. &::-moz-focus-inner,
  2879. &:focus {
  2880. outline: 0 !important;
  2881. }
  2882. .fa {
  2883. position: absolute;
  2884. top: 10px;
  2885. right: 10px;
  2886. z-index: 2;
  2887. display: inline-block;
  2888. opacity: 0;
  2889. transition: all 100ms linear;
  2890. font-size: 18px;
  2891. width: 18px;
  2892. height: 18px;
  2893. color: $secondary-text-color;
  2894. cursor: default;
  2895. pointer-events: none;
  2896. &.active {
  2897. pointer-events: auto;
  2898. opacity: 0.3;
  2899. }
  2900. }
  2901. .fa-search {
  2902. transform: rotate(90deg);
  2903. &.active {
  2904. pointer-events: none;
  2905. transform: rotate(0deg);
  2906. }
  2907. }
  2908. .fa-times-circle {
  2909. top: 11px;
  2910. transform: rotate(0deg);
  2911. color: $action-button-color;
  2912. cursor: pointer;
  2913. &.active {
  2914. transform: rotate(90deg);
  2915. }
  2916. &:hover {
  2917. color: lighten($action-button-color, 7%);
  2918. }
  2919. }
  2920. }
  2921. .search-results__header {
  2922. color: $dark-text-color;
  2923. background: lighten($ui-base-color, 2%);
  2924. padding: 15px;
  2925. font-weight: 500;
  2926. font-size: 16px;
  2927. cursor: default;
  2928. .fa {
  2929. display: inline-block;
  2930. margin-right: 5px;
  2931. }
  2932. }
  2933. .search-results__section {
  2934. margin-bottom: 5px;
  2935. h5 {
  2936. background: darken($ui-base-color, 4%);
  2937. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2938. cursor: default;
  2939. display: flex;
  2940. padding: 15px;
  2941. font-weight: 500;
  2942. font-size: 16px;
  2943. color: $dark-text-color;
  2944. .fa {
  2945. display: inline-block;
  2946. margin-right: 5px;
  2947. }
  2948. }
  2949. .account:last-child,
  2950. & > div:last-child .status {
  2951. border-bottom: 0;
  2952. }
  2953. }
  2954. .search-results__hashtag {
  2955. display: block;
  2956. padding: 10px;
  2957. color: $secondary-text-color;
  2958. text-decoration: none;
  2959. &:hover,
  2960. &:active,
  2961. &:focus {
  2962. color: lighten($secondary-text-color, 4%);
  2963. text-decoration: underline;
  2964. }
  2965. }
  2966. .modal-root {
  2967. position: relative;
  2968. transition: opacity 0.3s linear;
  2969. will-change: opacity;
  2970. z-index: 9999;
  2971. }
  2972. .modal-root__overlay {
  2973. position: fixed;
  2974. top: 0;
  2975. left: 0;
  2976. right: 0;
  2977. bottom: 0;
  2978. background: rgba($base-overlay-background, 0.7);
  2979. }
  2980. .modal-root__container {
  2981. position: fixed;
  2982. top: 0;
  2983. left: 0;
  2984. width: 100%;
  2985. height: 100%;
  2986. display: flex;
  2987. flex-direction: column;
  2988. align-items: center;
  2989. justify-content: center;
  2990. align-content: space-around;
  2991. z-index: 9999;
  2992. pointer-events: none;
  2993. user-select: none;
  2994. }
  2995. .modal-root__modal {
  2996. pointer-events: auto;
  2997. display: flex;
  2998. z-index: 9999;
  2999. }
  3000. .video-modal {
  3001. max-width: 100vw;
  3002. max-height: 100vh;
  3003. position: relative;
  3004. }
  3005. .media-modal {
  3006. width: 100%;
  3007. height: 100%;
  3008. position: relative;
  3009. .extended-video-player {
  3010. width: 100%;
  3011. height: 100%;
  3012. display: flex;
  3013. align-items: center;
  3014. justify-content: center;
  3015. video {
  3016. max-width: $media-modal-media-max-width;
  3017. max-height: $media-modal-media-max-height;
  3018. }
  3019. }
  3020. }
  3021. .media-modal__closer {
  3022. position: absolute;
  3023. top: 0;
  3024. left: 0;
  3025. right: 0;
  3026. bottom: 0;
  3027. }
  3028. .media-modal__navigation {
  3029. position: absolute;
  3030. top: 0;
  3031. left: 0;
  3032. right: 0;
  3033. bottom: 0;
  3034. pointer-events: none;
  3035. transition: opacity 0.3s linear;
  3036. will-change: opacity;
  3037. * {
  3038. pointer-events: auto;
  3039. }
  3040. &.media-modal__navigation--hidden {
  3041. opacity: 0;
  3042. * {
  3043. pointer-events: none;
  3044. }
  3045. }
  3046. }
  3047. .media-modal__nav {
  3048. background: rgba($base-overlay-background, 0.5);
  3049. box-sizing: border-box;
  3050. border: 0;
  3051. color: $primary-text-color;
  3052. cursor: pointer;
  3053. display: flex;
  3054. align-items: center;
  3055. font-size: 24px;
  3056. height: 20vmax;
  3057. margin: auto 0;
  3058. padding: 30px 15px;
  3059. position: absolute;
  3060. top: 0;
  3061. bottom: 0;
  3062. }
  3063. .media-modal__nav--left {
  3064. left: 0;
  3065. }
  3066. .media-modal__nav--right {
  3067. right: 0;
  3068. }
  3069. .media-modal__pagination {
  3070. width: 100%;
  3071. text-align: center;
  3072. position: absolute;
  3073. left: 0;
  3074. bottom: 20px;
  3075. pointer-events: none;
  3076. }
  3077. .media-modal__page-dot {
  3078. display: inline-block;
  3079. }
  3080. .media-modal__button {
  3081. background-color: $primary-text-color;
  3082. height: 12px;
  3083. width: 12px;
  3084. border-radius: 6px;
  3085. margin: 10px;
  3086. padding: 0;
  3087. border: 0;
  3088. font-size: 0;
  3089. }
  3090. .media-modal__button--active {
  3091. background-color: $highlight-text-color;
  3092. }
  3093. .media-modal__close {
  3094. position: absolute;
  3095. right: 8px;
  3096. top: 8px;
  3097. z-index: 100;
  3098. }
  3099. .onboarding-modal,
  3100. .error-modal,
  3101. .embed-modal {
  3102. background: $ui-secondary-color;
  3103. color: $inverted-text-color;
  3104. border-radius: 8px;
  3105. overflow: hidden;
  3106. display: flex;
  3107. flex-direction: column;
  3108. }
  3109. .onboarding-modal__pager {
  3110. height: 80vh;
  3111. width: 80vw;
  3112. max-width: 520px;
  3113. max-height: 470px;
  3114. .react-swipeable-view-container > div {
  3115. width: 100%;
  3116. height: 100%;
  3117. box-sizing: border-box;
  3118. display: none;
  3119. flex-direction: column;
  3120. align-items: center;
  3121. justify-content: center;
  3122. display: flex;
  3123. user-select: text;
  3124. }
  3125. }
  3126. .error-modal__body {
  3127. height: 80vh;
  3128. width: 80vw;
  3129. max-width: 520px;
  3130. max-height: 420px;
  3131. position: relative;
  3132. & > div {
  3133. position: absolute;
  3134. top: 0;
  3135. left: 0;
  3136. width: 100%;
  3137. height: 100%;
  3138. box-sizing: border-box;
  3139. padding: 25px;
  3140. display: none;
  3141. flex-direction: column;
  3142. align-items: center;
  3143. justify-content: center;
  3144. display: flex;
  3145. opacity: 0;
  3146. user-select: text;
  3147. }
  3148. }
  3149. .error-modal__body {
  3150. display: flex;
  3151. flex-direction: column;
  3152. justify-content: center;
  3153. align-items: center;
  3154. text-align: center;
  3155. }
  3156. @media screen and (max-width: 550px) {
  3157. .onboarding-modal {
  3158. width: 100%;
  3159. height: 100%;
  3160. border-radius: 0;
  3161. }
  3162. .onboarding-modal__pager {
  3163. width: 100%;
  3164. height: auto;
  3165. max-width: none;
  3166. max-height: none;
  3167. flex: 1 1 auto;
  3168. }
  3169. }
  3170. .onboarding-modal__paginator,
  3171. .error-modal__footer {
  3172. flex: 0 0 auto;
  3173. background: darken($ui-secondary-color, 8%);
  3174. display: flex;
  3175. padding: 25px;
  3176. & > div {
  3177. min-width: 33px;
  3178. }
  3179. .onboarding-modal__nav,
  3180. .error-modal__nav {
  3181. color: $lighter-text-color;
  3182. border: 0;
  3183. font-size: 14px;
  3184. font-weight: 500;
  3185. padding: 10px 25px;
  3186. line-height: inherit;
  3187. height: auto;
  3188. margin: -10px;
  3189. border-radius: 4px;
  3190. background-color: transparent;
  3191. &:hover,
  3192. &:focus,
  3193. &:active {
  3194. color: darken($lighter-text-color, 4%);
  3195. background-color: darken($ui-secondary-color, 16%);
  3196. }
  3197. &.onboarding-modal__done,
  3198. &.onboarding-modal__next {
  3199. color: $inverted-text-color;
  3200. &:hover,
  3201. &:focus,
  3202. &:active {
  3203. color: lighten($inverted-text-color, 4%);
  3204. }
  3205. }
  3206. }
  3207. }
  3208. .error-modal__footer {
  3209. justify-content: center;
  3210. }
  3211. .onboarding-modal__dots {
  3212. flex: 1 1 auto;
  3213. display: flex;
  3214. align-items: center;
  3215. justify-content: center;
  3216. }
  3217. .onboarding-modal__dot {
  3218. width: 14px;
  3219. height: 14px;
  3220. border-radius: 14px;
  3221. background: darken($ui-secondary-color, 16%);
  3222. margin: 0 3px;
  3223. cursor: pointer;
  3224. &:hover {
  3225. background: darken($ui-secondary-color, 18%);
  3226. }
  3227. &.active {
  3228. cursor: default;
  3229. background: darken($ui-secondary-color, 24%);
  3230. }
  3231. }
  3232. .onboarding-modal__page__wrapper {
  3233. pointer-events: none;
  3234. padding: 25px;
  3235. padding-bottom: 0;
  3236. &.onboarding-modal__page__wrapper--active {
  3237. pointer-events: auto;
  3238. }
  3239. }
  3240. .onboarding-modal__page {
  3241. cursor: default;
  3242. line-height: 21px;
  3243. h1 {
  3244. font-size: 18px;
  3245. font-weight: 500;
  3246. color: $inverted-text-color;
  3247. margin-bottom: 20px;
  3248. }
  3249. a {
  3250. color: $highlight-text-color;
  3251. &:hover,
  3252. &:focus,
  3253. &:active {
  3254. color: lighten($highlight-text-color, 4%);
  3255. }
  3256. }
  3257. .navigation-bar a {
  3258. color: inherit;
  3259. }
  3260. p {
  3261. font-size: 16px;
  3262. color: $lighter-text-color;
  3263. margin-top: 10px;
  3264. margin-bottom: 10px;
  3265. &:last-child {
  3266. margin-bottom: 0;
  3267. }
  3268. strong {
  3269. font-weight: 500;
  3270. background: $ui-base-color;
  3271. color: $secondary-text-color;
  3272. border-radius: 4px;
  3273. font-size: 14px;
  3274. padding: 3px 6px;
  3275. @each $lang in $cjk-langs {
  3276. &:lang(#{$lang}) {
  3277. font-weight: 700;
  3278. }
  3279. }
  3280. }
  3281. }
  3282. }
  3283. .onboarding-modal__page__wrapper-0 {
  3284. background: url('../images/elephant_ui_greeting.svg') no-repeat left bottom / auto 250px;
  3285. height: 100%;
  3286. padding: 0;
  3287. }
  3288. .onboarding-modal__page-one {
  3289. &__lead {
  3290. padding: 65px;
  3291. padding-top: 45px;
  3292. padding-bottom: 0;
  3293. margin-bottom: 10px;
  3294. h1 {
  3295. font-size: 26px;
  3296. line-height: 36px;
  3297. margin-bottom: 8px;
  3298. }
  3299. p {
  3300. margin-bottom: 0;
  3301. }
  3302. }
  3303. &__extra {
  3304. padding-right: 65px;
  3305. padding-left: 185px;
  3306. text-align: center;
  3307. }
  3308. }
  3309. .display-case {
  3310. text-align: center;
  3311. font-size: 15px;
  3312. margin-bottom: 15px;
  3313. &__label {
  3314. font-weight: 500;
  3315. color: $inverted-text-color;
  3316. margin-bottom: 5px;
  3317. text-transform: uppercase;
  3318. font-size: 12px;
  3319. }
  3320. &__case {
  3321. background: $ui-base-color;
  3322. color: $secondary-text-color;
  3323. font-weight: 500;
  3324. padding: 10px;
  3325. border-radius: 4px;
  3326. }
  3327. }
  3328. .onboarding-modal__page-two,
  3329. .onboarding-modal__page-three,
  3330. .onboarding-modal__page-four,
  3331. .onboarding-modal__page-five {
  3332. p {
  3333. text-align: left;
  3334. }
  3335. .figure {
  3336. background: darken($ui-base-color, 8%);
  3337. color: $secondary-text-color;
  3338. margin-bottom: 20px;
  3339. border-radius: 4px;
  3340. padding: 10px;
  3341. text-align: center;
  3342. font-size: 14px;
  3343. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  3344. .onboarding-modal__image {
  3345. border-radius: 4px;
  3346. margin-bottom: 10px;
  3347. }
  3348. &.non-interactive {
  3349. pointer-events: none;
  3350. text-align: left;
  3351. }
  3352. }
  3353. }
  3354. .onboarding-modal__page-four__columns {
  3355. .row {
  3356. display: flex;
  3357. margin-bottom: 20px;
  3358. & > div {
  3359. flex: 1 1 0;
  3360. margin: 0 10px;
  3361. &:first-child {
  3362. margin-left: 0;
  3363. }
  3364. &:last-child {
  3365. margin-right: 0;
  3366. }
  3367. p {
  3368. text-align: center;
  3369. }
  3370. }
  3371. &:last-child {
  3372. margin-bottom: 0;
  3373. }
  3374. }
  3375. .column-header {
  3376. color: $primary-text-color;
  3377. }
  3378. }
  3379. @media screen and (max-width: 320px) and (max-height: 600px) {
  3380. .onboarding-modal__page p {
  3381. font-size: 14px;
  3382. line-height: 20px;
  3383. }
  3384. .onboarding-modal__page-two .figure,
  3385. .onboarding-modal__page-three .figure,
  3386. .onboarding-modal__page-four .figure,
  3387. .onboarding-modal__page-five .figure {
  3388. font-size: 12px;
  3389. margin-bottom: 10px;
  3390. }
  3391. .onboarding-modal__page-four__columns .row {
  3392. margin-bottom: 10px;
  3393. }
  3394. .onboarding-modal__page-four__columns .column-header {
  3395. padding: 5px;
  3396. font-size: 12px;
  3397. }
  3398. }
  3399. .onboard-sliders {
  3400. display: inline-block;
  3401. max-width: 30px;
  3402. max-height: auto;
  3403. margin-left: 10px;
  3404. }
  3405. .boost-modal,
  3406. .confirmation-modal,
  3407. .report-modal,
  3408. .actions-modal,
  3409. .mute-modal {
  3410. background: lighten($ui-secondary-color, 8%);
  3411. color: $inverted-text-color;
  3412. border-radius: 8px;
  3413. overflow: hidden;
  3414. max-width: 90vw;
  3415. width: 480px;
  3416. position: relative;
  3417. flex-direction: column;
  3418. .status__display-name {
  3419. display: block;
  3420. max-width: 100%;
  3421. padding-right: 25px;
  3422. }
  3423. .status__avatar {
  3424. height: 28px;
  3425. left: 10px;
  3426. position: absolute;
  3427. top: 10px;
  3428. width: 48px;
  3429. }
  3430. .status__content__spoiler-link {
  3431. color: lighten($secondary-text-color, 8%);
  3432. }
  3433. }
  3434. .actions-modal {
  3435. .status {
  3436. background: $white;
  3437. border-bottom-color: $ui-secondary-color;
  3438. padding-top: 10px;
  3439. padding-bottom: 10px;
  3440. }
  3441. .dropdown-menu__separator {
  3442. border-bottom-color: $ui-secondary-color;
  3443. }
  3444. }
  3445. .boost-modal__container {
  3446. overflow-x: scroll;
  3447. padding: 10px;
  3448. .status {
  3449. user-select: text;
  3450. border-bottom: 0;
  3451. }
  3452. }
  3453. .boost-modal__action-bar,
  3454. .confirmation-modal__action-bar,
  3455. .mute-modal__action-bar {
  3456. display: flex;
  3457. justify-content: space-between;
  3458. background: $ui-secondary-color;
  3459. padding: 10px;
  3460. line-height: 36px;
  3461. & > div {
  3462. flex: 1 1 auto;
  3463. text-align: right;
  3464. color: $lighter-text-color;
  3465. padding-right: 10px;
  3466. }
  3467. .button {
  3468. flex: 0 0 auto;
  3469. }
  3470. }
  3471. .boost-modal__status-header {
  3472. font-size: 15px;
  3473. }
  3474. .boost-modal__status-time {
  3475. float: right;
  3476. font-size: 14px;
  3477. }
  3478. .confirmation-modal {
  3479. max-width: 85vw;
  3480. @media screen and (min-width: 480px) {
  3481. max-width: 380px;
  3482. }
  3483. }
  3484. .mute-modal {
  3485. line-height: 24px;
  3486. }
  3487. .mute-modal .react-toggle {
  3488. vertical-align: middle;
  3489. }
  3490. .report-modal {
  3491. width: 90vw;
  3492. max-width: 700px;
  3493. }
  3494. .report-modal__container {
  3495. display: flex;
  3496. border-top: 1px solid $ui-secondary-color;
  3497. @media screen and (max-width: 480px) {
  3498. flex-wrap: wrap;
  3499. overflow-y: auto;
  3500. }
  3501. }
  3502. .report-modal__statuses,
  3503. .report-modal__comment {
  3504. box-sizing: border-box;
  3505. width: 50%;
  3506. @media screen and (max-width: 480px) {
  3507. width: 100%;
  3508. }
  3509. }
  3510. .report-modal__statuses {
  3511. flex: 1 1 auto;
  3512. min-height: 20vh;
  3513. max-height: 80vh;
  3514. overflow-y: auto;
  3515. overflow-x: hidden;
  3516. .status__content a {
  3517. color: $highlight-text-color;
  3518. }
  3519. @media screen and (max-width: 480px) {
  3520. max-height: 10vh;
  3521. }
  3522. }
  3523. .report-modal__comment {
  3524. padding: 20px;
  3525. border-right: 1px solid $ui-secondary-color;
  3526. max-width: 320px;
  3527. p {
  3528. font-size: 14px;
  3529. line-height: 20px;
  3530. margin-bottom: 20px;
  3531. }
  3532. .setting-text {
  3533. display: block;
  3534. box-sizing: border-box;
  3535. width: 100%;
  3536. margin: 0;
  3537. color: $inverted-text-color;
  3538. background: $white;
  3539. padding: 10px;
  3540. font-family: inherit;
  3541. font-size: 14px;
  3542. resize: vertical;
  3543. border: 0;
  3544. outline: 0;
  3545. border-radius: 4px;
  3546. border: 1px solid $ui-secondary-color;
  3547. margin-bottom: 20px;
  3548. &:focus {
  3549. border: 1px solid darken($ui-secondary-color, 8%);
  3550. }
  3551. }
  3552. .setting-toggle {
  3553. margin-top: 20px;
  3554. margin-bottom: 24px;
  3555. &__label {
  3556. color: $inverted-text-color;
  3557. font-size: 14px;
  3558. }
  3559. }
  3560. @media screen and (max-width: 480px) {
  3561. padding: 10px;
  3562. max-width: 100%;
  3563. order: 2;
  3564. .setting-toggle {
  3565. margin-bottom: 4px;
  3566. }
  3567. }
  3568. }
  3569. .actions-modal {
  3570. .status {
  3571. overflow-y: auto;
  3572. max-height: 300px;
  3573. }
  3574. max-height: 80vh;
  3575. max-width: 80vw;
  3576. .actions-modal__item-label {
  3577. font-weight: 500;
  3578. }
  3579. ul {
  3580. overflow-y: auto;
  3581. flex-shrink: 0;
  3582. li:empty {
  3583. margin: 0;
  3584. }
  3585. li:not(:empty) {
  3586. a {
  3587. color: $inverted-text-color;
  3588. display: flex;
  3589. padding: 12px 16px;
  3590. font-size: 15px;
  3591. align-items: center;
  3592. text-decoration: none;
  3593. &,
  3594. button {
  3595. transition: none;
  3596. }
  3597. &.active,
  3598. &:hover,
  3599. &:active,
  3600. &:focus {
  3601. &,
  3602. button {
  3603. background: $ui-highlight-color;
  3604. color: $primary-text-color;
  3605. }
  3606. }
  3607. button:first-child {
  3608. margin-right: 10px;
  3609. }
  3610. }
  3611. }
  3612. }
  3613. }
  3614. .confirmation-modal__action-bar,
  3615. .mute-modal__action-bar {
  3616. .confirmation-modal__cancel-button,
  3617. .mute-modal__cancel-button {
  3618. background-color: transparent;
  3619. color: $lighter-text-color;
  3620. font-size: 14px;
  3621. font-weight: 500;
  3622. &:hover,
  3623. &:focus,
  3624. &:active {
  3625. color: darken($lighter-text-color, 4%);
  3626. }
  3627. }
  3628. }
  3629. .confirmation-modal__container,
  3630. .mute-modal__container,
  3631. .report-modal__target {
  3632. padding: 30px;
  3633. font-size: 16px;
  3634. text-align: center;
  3635. strong {
  3636. font-weight: 500;
  3637. @each $lang in $cjk-langs {
  3638. &:lang(#{$lang}) {
  3639. font-weight: 700;
  3640. }
  3641. }
  3642. }
  3643. }
  3644. .report-modal__target {
  3645. padding: 20px;
  3646. .media-modal__close {
  3647. top: 19px;
  3648. right: 15px;
  3649. }
  3650. }
  3651. .loading-bar {
  3652. background-color: $highlight-text-color;
  3653. height: 3px;
  3654. position: absolute;
  3655. top: 0;
  3656. left: 0;
  3657. }
  3658. .media-gallery__gifv__label {
  3659. display: block;
  3660. position: absolute;
  3661. color: $primary-text-color;
  3662. background: rgba($base-overlay-background, 0.5);
  3663. bottom: 6px;
  3664. left: 6px;
  3665. padding: 2px 6px;
  3666. border-radius: 2px;
  3667. font-size: 11px;
  3668. font-weight: 600;
  3669. z-index: 1;
  3670. pointer-events: none;
  3671. opacity: 0.9;
  3672. transition: opacity 0.1s ease;
  3673. }
  3674. .media-gallery__gifv {
  3675. &.autoplay {
  3676. .media-gallery__gifv__label {
  3677. display: none;
  3678. }
  3679. }
  3680. &:hover {
  3681. .media-gallery__gifv__label {
  3682. opacity: 1;
  3683. }
  3684. }
  3685. }
  3686. .attachment-list {
  3687. display: flex;
  3688. font-size: 14px;
  3689. border: 1px solid lighten($ui-base-color, 8%);
  3690. border-radius: 4px;
  3691. margin-top: 14px;
  3692. overflow: hidden;
  3693. &__icon {
  3694. flex: 0 0 auto;
  3695. color: $dark-text-color;
  3696. padding: 8px 18px;
  3697. cursor: default;
  3698. border-right: 1px solid lighten($ui-base-color, 8%);
  3699. display: flex;
  3700. flex-direction: column;
  3701. align-items: center;
  3702. justify-content: center;
  3703. font-size: 26px;
  3704. .fa {
  3705. display: block;
  3706. }
  3707. }
  3708. &__list {
  3709. list-style: none;
  3710. padding: 4px 0;
  3711. padding-left: 8px;
  3712. display: flex;
  3713. flex-direction: column;
  3714. justify-content: center;
  3715. li {
  3716. display: block;
  3717. padding: 4px 0;
  3718. }
  3719. a {
  3720. text-decoration: none;
  3721. color: $dark-text-color;
  3722. font-weight: 500;
  3723. &:hover {
  3724. text-decoration: underline;
  3725. }
  3726. }
  3727. }
  3728. &.compact {
  3729. border: 0;
  3730. margin-top: 4px;
  3731. .attachment-list__list {
  3732. padding: 0;
  3733. display: block;
  3734. }
  3735. .fa {
  3736. color: $dark-text-color;
  3737. }
  3738. }
  3739. }
  3740. /* Media Gallery */
  3741. .media-gallery {
  3742. box-sizing: border-box;
  3743. margin-top: 8px;
  3744. overflow: hidden;
  3745. border-radius: 4px;
  3746. position: relative;
  3747. width: 100%;
  3748. }
  3749. .media-gallery__item {
  3750. border: none;
  3751. box-sizing: border-box;
  3752. display: block;
  3753. float: left;
  3754. position: relative;
  3755. border-radius: 4px;
  3756. overflow: hidden;
  3757. &.standalone {
  3758. .media-gallery__item-gifv-thumbnail {
  3759. transform: none;
  3760. top: 0;
  3761. }
  3762. }
  3763. }
  3764. .media-gallery__item-thumbnail {
  3765. cursor: zoom-in;
  3766. display: block;
  3767. text-decoration: none;
  3768. color: $secondary-text-color;
  3769. line-height: 0;
  3770. &,
  3771. img {
  3772. height: 100%;
  3773. width: 100%;
  3774. }
  3775. img {
  3776. object-fit: cover;
  3777. }
  3778. }
  3779. .media-gallery__gifv {
  3780. height: 100%;
  3781. overflow: hidden;
  3782. position: relative;
  3783. width: 100%;
  3784. }
  3785. .media-gallery__item-gifv-thumbnail {
  3786. cursor: zoom-in;
  3787. height: 100%;
  3788. object-fit: cover;
  3789. position: relative;
  3790. top: 50%;
  3791. transform: translateY(-50%);
  3792. width: 100%;
  3793. z-index: 1;
  3794. }
  3795. .media-gallery__item-thumbnail-label {
  3796. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3797. clip: rect(1px, 1px, 1px, 1px);
  3798. overflow: hidden;
  3799. position: absolute;
  3800. }
  3801. /* End Media Gallery */
  3802. /* Status Video Player */
  3803. .status__video-player {
  3804. background: $base-overlay-background;
  3805. box-sizing: border-box;
  3806. cursor: default; /* May not be needed */
  3807. margin-top: 8px;
  3808. overflow: hidden;
  3809. position: relative;
  3810. }
  3811. .status__video-player-video {
  3812. height: 100%;
  3813. object-fit: cover;
  3814. position: relative;
  3815. top: 50%;
  3816. transform: translateY(-50%);
  3817. width: 100%;
  3818. z-index: 1;
  3819. }
  3820. .status__video-player-expand,
  3821. .status__video-player-mute {
  3822. color: $primary-text-color;
  3823. opacity: 0.8;
  3824. position: absolute;
  3825. right: 4px;
  3826. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3827. }
  3828. .status__video-player-spoiler {
  3829. display: none;
  3830. color: $primary-text-color;
  3831. left: 4px;
  3832. position: absolute;
  3833. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3834. top: 4px;
  3835. z-index: 100;
  3836. &.status__video-player-spoiler--visible {
  3837. display: block;
  3838. }
  3839. }
  3840. .status__video-player-expand {
  3841. bottom: 4px;
  3842. z-index: 100;
  3843. }
  3844. .status__video-player-mute {
  3845. top: 4px;
  3846. z-index: 5;
  3847. }
  3848. .video-player {
  3849. overflow: hidden;
  3850. position: relative;
  3851. background: $base-shadow-color;
  3852. max-width: 100%;
  3853. border-radius: 4px;
  3854. &:focus {
  3855. outline: 0;
  3856. }
  3857. video {
  3858. max-width: 100vw;
  3859. max-height: 80vh;
  3860. z-index: 1;
  3861. }
  3862. &.fullscreen {
  3863. width: 100% !important;
  3864. height: 100% !important;
  3865. margin: 0;
  3866. video {
  3867. max-width: 100% !important;
  3868. max-height: 100% !important;
  3869. width: 100% !important;
  3870. height: 100% !important;
  3871. }
  3872. }
  3873. &.inline {
  3874. video {
  3875. object-fit: contain;
  3876. position: relative;
  3877. top: 50%;
  3878. transform: translateY(-50%);
  3879. }
  3880. }
  3881. &__controls {
  3882. position: absolute;
  3883. z-index: 2;
  3884. bottom: 0;
  3885. left: 0;
  3886. right: 0;
  3887. box-sizing: border-box;
  3888. background: linear-gradient(0deg, rgba($base-shadow-color, 0.85) 0, rgba($base-shadow-color, 0.45) 60%, transparent);
  3889. padding: 0 15px;
  3890. opacity: 0;
  3891. transition: opacity .1s ease;
  3892. &.active {
  3893. opacity: 1;
  3894. }
  3895. }
  3896. &.inactive {
  3897. video,
  3898. .video-player__controls {
  3899. visibility: hidden;
  3900. }
  3901. }
  3902. &__spoiler {
  3903. display: none;
  3904. position: absolute;
  3905. top: 0;
  3906. left: 0;
  3907. width: 100%;
  3908. height: 100%;
  3909. z-index: 4;
  3910. border: 0;
  3911. background: $base-overlay-background;
  3912. color: $darker-text-color;
  3913. transition: none;
  3914. pointer-events: none;
  3915. &.active {
  3916. display: block;
  3917. pointer-events: auto;
  3918. &:hover,
  3919. &:active,
  3920. &:focus {
  3921. color: lighten($darker-text-color, 7%);
  3922. }
  3923. }
  3924. &__title {
  3925. display: block;
  3926. font-size: 14px;
  3927. }
  3928. &__subtitle {
  3929. display: block;
  3930. font-size: 11px;
  3931. font-weight: 500;
  3932. }
  3933. }
  3934. &__buttons-bar {
  3935. display: flex;
  3936. justify-content: space-between;
  3937. padding-bottom: 10px;
  3938. }
  3939. &__buttons {
  3940. font-size: 16px;
  3941. white-space: nowrap;
  3942. overflow: hidden;
  3943. text-overflow: ellipsis;
  3944. &.left {
  3945. button {
  3946. padding-left: 0;
  3947. }
  3948. }
  3949. &.right {
  3950. button {
  3951. padding-right: 0;
  3952. }
  3953. }
  3954. button {
  3955. background: transparent;
  3956. padding: 2px 10px;
  3957. font-size: 16px;
  3958. border: 0;
  3959. color: rgba($white, 0.75);
  3960. &:active,
  3961. &:hover,
  3962. &:focus {
  3963. color: $white;
  3964. }
  3965. }
  3966. }
  3967. &__time-sep,
  3968. &__time-total,
  3969. &__time-current {
  3970. font-size: 14px;
  3971. font-weight: 500;
  3972. }
  3973. &__time-current {
  3974. color: $white;
  3975. margin-left: 10px;
  3976. }
  3977. &__time-sep {
  3978. display: inline-block;
  3979. margin: 0 6px;
  3980. }
  3981. &__time-sep,
  3982. &__time-total {
  3983. color: $white;
  3984. }
  3985. &__seek {
  3986. cursor: pointer;
  3987. height: 24px;
  3988. position: relative;
  3989. &::before {
  3990. content: "";
  3991. width: 100%;
  3992. background: rgba($white, 0.35);
  3993. border-radius: 4px;
  3994. display: block;
  3995. position: absolute;
  3996. height: 4px;
  3997. top: 10px;
  3998. }
  3999. &__progress,
  4000. &__buffer {
  4001. display: block;
  4002. position: absolute;
  4003. height: 4px;
  4004. border-radius: 4px;
  4005. top: 10px;
  4006. background: lighten($ui-highlight-color, 8%);
  4007. }
  4008. &__buffer {
  4009. background: rgba($white, 0.2);
  4010. }
  4011. &__handle {
  4012. position: absolute;
  4013. z-index: 3;
  4014. opacity: 0;
  4015. border-radius: 50%;
  4016. width: 12px;
  4017. height: 12px;
  4018. top: 6px;
  4019. margin-left: -6px;
  4020. transition: opacity .1s ease;
  4021. background: lighten($ui-highlight-color, 8%);
  4022. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  4023. pointer-events: none;
  4024. &.active {
  4025. opacity: 1;
  4026. }
  4027. }
  4028. &:hover {
  4029. .video-player__seek__handle {
  4030. opacity: 1;
  4031. }
  4032. }
  4033. }
  4034. &.detailed,
  4035. &.fullscreen {
  4036. .video-player__buttons {
  4037. button {
  4038. padding-top: 10px;
  4039. padding-bottom: 10px;
  4040. }
  4041. }
  4042. }
  4043. }
  4044. .media-spoiler-video {
  4045. background-size: cover;
  4046. background-repeat: no-repeat;
  4047. background-position: center;
  4048. cursor: pointer;
  4049. margin-top: 8px;
  4050. position: relative;
  4051. border: 0;
  4052. display: block;
  4053. }
  4054. .media-spoiler-video-play-icon {
  4055. border-radius: 100px;
  4056. color: rgba($primary-text-color, 0.8);
  4057. font-size: 36px;
  4058. left: 50%;
  4059. padding: 5px;
  4060. position: absolute;
  4061. top: 50%;
  4062. transform: translate(-50%, -50%);
  4063. }
  4064. /* End Video Player */
  4065. .account-gallery__container {
  4066. display: flex;
  4067. justify-content: center;
  4068. flex-wrap: wrap;
  4069. padding: 2px;
  4070. }
  4071. .account-gallery__item {
  4072. flex-grow: 1;
  4073. width: 50%;
  4074. overflow: hidden;
  4075. position: relative;
  4076. &::before {
  4077. content: "";
  4078. display: block;
  4079. padding-top: 100%;
  4080. }
  4081. a {
  4082. display: block;
  4083. width: calc(100% - 4px);
  4084. height: calc(100% - 4px);
  4085. margin: 2px;
  4086. top: 0;
  4087. left: 0;
  4088. background-color: $base-overlay-background;
  4089. background-size: cover;
  4090. background-position: center;
  4091. position: absolute;
  4092. color: $darker-text-color;
  4093. text-decoration: none;
  4094. border-radius: 4px;
  4095. &:hover,
  4096. &:active,
  4097. &:focus {
  4098. outline: 0;
  4099. color: $secondary-text-color;
  4100. &::before {
  4101. content: "";
  4102. display: block;
  4103. width: 100%;
  4104. height: 100%;
  4105. background: rgba($base-overlay-background, 0.3);
  4106. border-radius: 4px;
  4107. }
  4108. }
  4109. }
  4110. &__icons {
  4111. position: absolute;
  4112. top: 50%;
  4113. left: 50%;
  4114. transform: translate(-50%, -50%);
  4115. font-size: 24px;
  4116. }
  4117. }
  4118. .account__section-headline {
  4119. background: darken($ui-base-color, 4%);
  4120. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4121. cursor: default;
  4122. display: flex;
  4123. a {
  4124. display: block;
  4125. flex: 1 1 auto;
  4126. color: $darker-text-color;
  4127. padding: 15px 0;
  4128. font-size: 14px;
  4129. font-weight: 500;
  4130. text-align: center;
  4131. text-decoration: none;
  4132. position: relative;
  4133. &.active {
  4134. color: $secondary-text-color;
  4135. &::before,
  4136. &::after {
  4137. display: block;
  4138. content: "";
  4139. position: absolute;
  4140. bottom: 0;
  4141. left: 50%;
  4142. width: 0;
  4143. height: 0;
  4144. transform: translateX(-50%);
  4145. border-style: solid;
  4146. border-width: 0 10px 10px;
  4147. border-color: transparent transparent lighten($ui-base-color, 8%);
  4148. }
  4149. &::after {
  4150. bottom: -1px;
  4151. border-color: transparent transparent $ui-base-color;
  4152. }
  4153. }
  4154. }
  4155. }
  4156. ::-webkit-scrollbar-thumb {
  4157. border-radius: 0;
  4158. }
  4159. .search-popout {
  4160. background: $simple-background-color;
  4161. border-radius: 4px;
  4162. padding: 10px 14px;
  4163. padding-bottom: 14px;
  4164. margin-top: 10px;
  4165. color: $light-text-color;
  4166. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4167. h4 {
  4168. text-transform: uppercase;
  4169. color: $light-text-color;
  4170. font-size: 13px;
  4171. font-weight: 500;
  4172. margin-bottom: 10px;
  4173. }
  4174. li {
  4175. padding: 4px 0;
  4176. }
  4177. ul {
  4178. margin-bottom: 10px;
  4179. }
  4180. em {
  4181. font-weight: 500;
  4182. color: $inverted-text-color;
  4183. }
  4184. }
  4185. noscript {
  4186. text-align: center;
  4187. img {
  4188. width: 200px;
  4189. opacity: 0.5;
  4190. animation: flicker 4s infinite;
  4191. }
  4192. div {
  4193. font-size: 14px;
  4194. margin: 30px auto;
  4195. color: $secondary-text-color;
  4196. max-width: 400px;
  4197. a {
  4198. color: $highlight-text-color;
  4199. text-decoration: underline;
  4200. &:hover {
  4201. text-decoration: none;
  4202. }
  4203. }
  4204. }
  4205. }
  4206. @keyframes flicker {
  4207. 0% { opacity: 1; }
  4208. 30% { opacity: 0.75; }
  4209. 100% { opacity: 1; }
  4210. }
  4211. @media screen and (max-width: 630px) and (max-height: 400px) {
  4212. $duration: 400ms;
  4213. $delay: 100ms;
  4214. .tabs-bar,
  4215. .search {
  4216. will-change: margin-top;
  4217. transition: margin-top $duration $delay;
  4218. }
  4219. .navigation-bar {
  4220. will-change: padding-bottom;
  4221. transition: padding-bottom $duration $delay;
  4222. }
  4223. .navigation-bar {
  4224. & > a:first-child {
  4225. will-change: margin-top, margin-left, margin-right, width;
  4226. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay), margin-right $duration ($duration + $delay);
  4227. }
  4228. & > .navigation-bar__profile-edit {
  4229. will-change: margin-top;
  4230. transition: margin-top $duration $delay;
  4231. }
  4232. .navigation-bar__actions {
  4233. & > .icon-button.close {
  4234. will-change: opacity transform;
  4235. transition: opacity $duration * 0.5 $delay,
  4236. transform $duration $delay;
  4237. }
  4238. & > .compose__action-bar .icon-button {
  4239. will-change: opacity transform;
  4240. transition: opacity $duration * 0.5 $delay + $duration * 0.5,
  4241. transform $duration $delay;
  4242. }
  4243. }
  4244. }
  4245. .is-composing {
  4246. .tabs-bar,
  4247. .search {
  4248. margin-top: -50px;
  4249. }
  4250. .navigation-bar {
  4251. padding-bottom: 0;
  4252. & > a:first-child {
  4253. margin: -100px 10px 0 -50px;
  4254. }
  4255. .navigation-bar__profile {
  4256. padding-top: 2px;
  4257. }
  4258. .navigation-bar__profile-edit {
  4259. position: absolute;
  4260. margin-top: -60px;
  4261. }
  4262. .navigation-bar__actions {
  4263. .icon-button.close {
  4264. pointer-events: auto;
  4265. opacity: 1;
  4266. transform: scale(1.0, 1.0) translate(0, 0);
  4267. bottom: 5px;
  4268. }
  4269. .compose__action-bar .icon-button {
  4270. pointer-events: none;
  4271. opacity: 0;
  4272. transform: scale(0.0, 1.0) translate(100%, 0);
  4273. }
  4274. }
  4275. }
  4276. }
  4277. }
  4278. .embed-modal {
  4279. max-width: 80vw;
  4280. max-height: 80vh;
  4281. h4 {
  4282. padding: 30px;
  4283. font-weight: 500;
  4284. font-size: 16px;
  4285. text-align: center;
  4286. }
  4287. .embed-modal__container {
  4288. padding: 10px;
  4289. .hint {
  4290. margin-bottom: 15px;
  4291. }
  4292. .embed-modal__html {
  4293. outline: 0;
  4294. box-sizing: border-box;
  4295. display: block;
  4296. width: 100%;
  4297. border: none;
  4298. padding: 10px;
  4299. font-family: 'mastodon-font-monospace', monospace;
  4300. background: $ui-base-color;
  4301. color: $primary-text-color;
  4302. font-size: 14px;
  4303. margin: 0;
  4304. margin-bottom: 15px;
  4305. &::-moz-focus-inner {
  4306. border: 0;
  4307. }
  4308. &::-moz-focus-inner,
  4309. &:focus,
  4310. &:active {
  4311. outline: 0 !important;
  4312. }
  4313. &:focus {
  4314. background: lighten($ui-base-color, 4%);
  4315. }
  4316. @media screen and (max-width: 600px) {
  4317. font-size: 16px;
  4318. }
  4319. }
  4320. .embed-modal__iframe {
  4321. width: 400px;
  4322. max-width: 100%;
  4323. overflow: hidden;
  4324. border: 0;
  4325. }
  4326. }
  4327. }
  4328. .account__moved-note {
  4329. padding: 14px 10px;
  4330. padding-bottom: 16px;
  4331. background: lighten($ui-base-color, 4%);
  4332. border-top: 1px solid lighten($ui-base-color, 8%);
  4333. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4334. &__message {
  4335. position: relative;
  4336. margin-left: 58px;
  4337. color: $dark-text-color;
  4338. padding: 8px 0;
  4339. padding-top: 0;
  4340. padding-bottom: 4px;
  4341. font-size: 14px;
  4342. > span {
  4343. display: block;
  4344. overflow: hidden;
  4345. text-overflow: ellipsis;
  4346. }
  4347. }
  4348. &__icon-wrapper {
  4349. left: -26px;
  4350. position: absolute;
  4351. }
  4352. .detailed-status__display-avatar {
  4353. position: relative;
  4354. }
  4355. .detailed-status__display-name {
  4356. margin-bottom: 0;
  4357. }
  4358. }
  4359. .column-inline-form {
  4360. padding: 7px 15px;
  4361. padding-right: 5px;
  4362. display: flex;
  4363. justify-content: flex-start;
  4364. align-items: center;
  4365. background: lighten($ui-base-color, 4%);
  4366. label {
  4367. flex: 1 1 auto;
  4368. input {
  4369. width: 100%;
  4370. margin-bottom: 6px;
  4371. &:focus {
  4372. outline: 0;
  4373. }
  4374. }
  4375. }
  4376. .icon-button {
  4377. flex: 0 0 auto;
  4378. margin-left: 5px;
  4379. }
  4380. }
  4381. .drawer__backdrop {
  4382. cursor: pointer;
  4383. position: absolute;
  4384. top: 0;
  4385. left: 0;
  4386. width: 100%;
  4387. height: 100%;
  4388. background: rgba($base-overlay-background, 0.5);
  4389. }
  4390. .list-editor {
  4391. background: $ui-base-color;
  4392. flex-direction: column;
  4393. border-radius: 8px;
  4394. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4395. width: 380px;
  4396. overflow: hidden;
  4397. @media screen and (max-width: 420px) {
  4398. width: 90%;
  4399. }
  4400. h4 {
  4401. padding: 15px 0;
  4402. background: lighten($ui-base-color, 13%);
  4403. font-weight: 500;
  4404. font-size: 16px;
  4405. text-align: center;
  4406. border-radius: 8px 8px 0 0;
  4407. }
  4408. .drawer__pager {
  4409. height: 50vh;
  4410. }
  4411. .drawer__inner {
  4412. border-radius: 0 0 8px 8px;
  4413. &.backdrop {
  4414. width: calc(100% - 60px);
  4415. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4416. border-radius: 0 0 0 8px;
  4417. }
  4418. }
  4419. &__accounts {
  4420. overflow-y: auto;
  4421. }
  4422. .account__display-name {
  4423. &:hover strong {
  4424. text-decoration: none;
  4425. }
  4426. }
  4427. .account__avatar {
  4428. cursor: default;
  4429. }
  4430. .search {
  4431. margin-bottom: 0;
  4432. }
  4433. }
  4434. .focal-point-modal {
  4435. max-width: 80vw;
  4436. max-height: 80vh;
  4437. position: relative;
  4438. }
  4439. .focal-point {
  4440. position: relative;
  4441. cursor: pointer;
  4442. overflow: hidden;
  4443. &.dragging {
  4444. cursor: move;
  4445. }
  4446. img {
  4447. max-width: 80vw;
  4448. max-height: 80vh;
  4449. width: auto;
  4450. height: auto;
  4451. margin: auto;
  4452. }
  4453. &__reticle {
  4454. position: absolute;
  4455. width: 100px;
  4456. height: 100px;
  4457. transform: translate(-50%, -50%);
  4458. background: url('../images/reticle.png') no-repeat 0 0;
  4459. border-radius: 50%;
  4460. box-shadow: 0 0 0 9999em rgba($base-shadow-color, 0.35);
  4461. }
  4462. &__overlay {
  4463. position: absolute;
  4464. width: 100%;
  4465. height: 100%;
  4466. top: 0;
  4467. left: 0;
  4468. }
  4469. }
  4470. .floating-action-button {
  4471. position: fixed;
  4472. display: flex;
  4473. justify-content: center;
  4474. align-items: center;
  4475. width: 3.9375rem;
  4476. height: 3.9375rem;
  4477. bottom: 1.3125rem;
  4478. right: 1.3125rem;
  4479. background: darken($ui-highlight-color, 3%);
  4480. color: $white;
  4481. border-radius: 50%;
  4482. font-size: 21px;
  4483. line-height: 21px;
  4484. text-decoration: none;
  4485. box-shadow: 2px 3px 9px rgba($base-shadow-color, 0.4);
  4486. &:hover,
  4487. &:focus,
  4488. &:active {
  4489. background: lighten($ui-highlight-color, 7%);
  4490. }
  4491. }
  4492. .account__header .roles {
  4493. margin-top: 20px;
  4494. margin-bottom: 20px;
  4495. padding: 0 15px;
  4496. }
  4497. .account__header .account__header__fields {
  4498. font-size: 14px;
  4499. line-height: 20px;
  4500. overflow: hidden;
  4501. margin: 20px -10px -20px;
  4502. border-bottom: 0;
  4503. dl {
  4504. border-top: 1px solid lighten($ui-base-color, 8%);
  4505. display: flex;
  4506. }
  4507. dt,
  4508. dd {
  4509. box-sizing: border-box;
  4510. padding: 14px 20px;
  4511. text-align: center;
  4512. max-height: 48px;
  4513. overflow: hidden;
  4514. white-space: nowrap;
  4515. text-overflow: ellipsis;
  4516. }
  4517. dt {
  4518. color: $darker-text-color;
  4519. background: darken($ui-base-color, 4%);
  4520. width: 120px;
  4521. flex: 0 0 auto;
  4522. font-weight: 500;
  4523. }
  4524. dd {
  4525. flex: 1 1 auto;
  4526. color: $primary-text-color;
  4527. background: $ui-base-color;
  4528. }
  4529. }
  4530. .trends {
  4531. &__header {
  4532. color: $dark-text-color;
  4533. background: lighten($ui-base-color, 2%);
  4534. border-bottom: 1px solid darken($ui-base-color, 4%);
  4535. font-weight: 500;
  4536. padding: 15px;
  4537. font-size: 16px;
  4538. cursor: default;
  4539. .fa {
  4540. display: inline-block;
  4541. margin-right: 5px;
  4542. }
  4543. }
  4544. &__item {
  4545. display: flex;
  4546. align-items: center;
  4547. padding: 15px;
  4548. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4549. &:last-child {
  4550. border-bottom: 0;
  4551. }
  4552. &__name {
  4553. flex: 1 1 auto;
  4554. color: $dark-text-color;
  4555. overflow: hidden;
  4556. text-overflow: ellipsis;
  4557. white-space: nowrap;
  4558. strong {
  4559. font-weight: 500;
  4560. }
  4561. a {
  4562. color: $darker-text-color;
  4563. text-decoration: none;
  4564. font-size: 14px;
  4565. font-weight: 500;
  4566. display: block;
  4567. overflow: hidden;
  4568. text-overflow: ellipsis;
  4569. white-space: nowrap;
  4570. &:hover,
  4571. &:focus,
  4572. &:active {
  4573. span {
  4574. text-decoration: underline;
  4575. }
  4576. }
  4577. }
  4578. }
  4579. &__current {
  4580. flex: 0 0 auto;
  4581. width: 100px;
  4582. font-size: 24px;
  4583. line-height: 36px;
  4584. font-weight: 500;
  4585. text-align: center;
  4586. color: $secondary-text-color;
  4587. }
  4588. &__sparkline {
  4589. flex: 0 0 auto;
  4590. width: 50px;
  4591. path {
  4592. stroke: lighten($highlight-text-color, 6%) !important;
  4593. }
  4594. }
  4595. }
  4596. }