The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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