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.
 
 
 
 

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