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.
 
 
 
 

5291 lines
89 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: $secondary-text-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($secondary-text-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: 0 10px 0 68px;
  1147. padding: 8px 0 0;
  1148. cursor: default;
  1149. color: $darker-text-color;
  1150. font-size: 15px;
  1151. position: relative;
  1152. .fa {
  1153. color: $highlight-text-color;
  1154. }
  1155. > span {
  1156. display: block;
  1157. overflow: hidden;
  1158. text-overflow: ellipsis;
  1159. }
  1160. }
  1161. .notification__favourite-icon-wrapper {
  1162. left: -26px;
  1163. position: absolute;
  1164. .star-icon {
  1165. color: $gold-star;
  1166. }
  1167. }
  1168. .star-icon.active {
  1169. color: $gold-star;
  1170. }
  1171. .notification__display-name {
  1172. color: inherit;
  1173. font-weight: 500;
  1174. text-decoration: none;
  1175. &:hover {
  1176. color: $primary-text-color;
  1177. text-decoration: underline;
  1178. }
  1179. }
  1180. .display-name {
  1181. display: block;
  1182. max-width: 100%;
  1183. overflow: hidden;
  1184. text-overflow: ellipsis;
  1185. white-space: nowrap;
  1186. }
  1187. .display-name__html {
  1188. font-weight: 500;
  1189. }
  1190. .display-name__account {
  1191. font-size: 14px;
  1192. }
  1193. .status__relative-time,
  1194. .detailed-status__datetime {
  1195. &:hover {
  1196. text-decoration: underline;
  1197. }
  1198. }
  1199. .image-loader {
  1200. position: relative;
  1201. width: 100%;
  1202. height: 100%;
  1203. display: flex;
  1204. align-items: center;
  1205. justify-content: center;
  1206. .image-loader__preview-canvas {
  1207. max-width: $media-modal-media-max-width;
  1208. max-height: $media-modal-media-max-height;
  1209. background: url('../images/void.png') repeat;
  1210. object-fit: contain;
  1211. }
  1212. &.image-loader--loading .image-loader__preview-canvas {
  1213. filter: blur(2px);
  1214. }
  1215. &.image-loader--amorphous .image-loader__preview-canvas {
  1216. display: none;
  1217. }
  1218. }
  1219. .zoomable-image {
  1220. position: relative;
  1221. width: 100%;
  1222. height: 100%;
  1223. display: flex;
  1224. align-items: center;
  1225. justify-content: center;
  1226. img {
  1227. max-width: $media-modal-media-max-width;
  1228. max-height: $media-modal-media-max-height;
  1229. width: auto;
  1230. height: auto;
  1231. object-fit: contain;
  1232. }
  1233. }
  1234. .navigation-bar {
  1235. padding: 10px;
  1236. display: flex;
  1237. flex-shrink: 0;
  1238. cursor: default;
  1239. color: $darker-text-color;
  1240. strong {
  1241. color: $secondary-text-color;
  1242. }
  1243. a {
  1244. color: inherit;
  1245. }
  1246. .permalink {
  1247. text-decoration: none;
  1248. }
  1249. .icon-button {
  1250. pointer-events: none;
  1251. opacity: 0;
  1252. }
  1253. }
  1254. .navigation-bar__profile {
  1255. flex: 1 1 auto;
  1256. margin-left: 8px;
  1257. overflow: hidden;
  1258. }
  1259. .navigation-bar__profile-account {
  1260. display: block;
  1261. font-weight: 500;
  1262. overflow: hidden;
  1263. text-overflow: ellipsis;
  1264. }
  1265. .navigation-bar__profile-edit {
  1266. color: inherit;
  1267. text-decoration: none;
  1268. }
  1269. .dropdown {
  1270. display: inline-block;
  1271. }
  1272. .dropdown__content {
  1273. display: none;
  1274. position: absolute;
  1275. }
  1276. .dropdown-menu__separator {
  1277. border-bottom: 1px solid darken($ui-secondary-color, 8%);
  1278. margin: 5px 7px 6px;
  1279. height: 0;
  1280. }
  1281. .dropdown-menu {
  1282. background: $ui-secondary-color;
  1283. padding: 4px 0;
  1284. border-radius: 4px;
  1285. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  1286. ul {
  1287. list-style: none;
  1288. }
  1289. }
  1290. .dropdown-menu__arrow {
  1291. position: absolute;
  1292. width: 0;
  1293. height: 0;
  1294. border: 0 solid transparent;
  1295. &.left {
  1296. right: -5px;
  1297. margin-top: -5px;
  1298. border-width: 5px 0 5px 5px;
  1299. border-left-color: $ui-secondary-color;
  1300. }
  1301. &.top {
  1302. bottom: -5px;
  1303. margin-left: -13px;
  1304. border-width: 5px 7px 0;
  1305. border-top-color: $ui-secondary-color;
  1306. }
  1307. &.bottom {
  1308. top: -5px;
  1309. margin-left: -13px;
  1310. border-width: 0 7px 5px;
  1311. border-bottom-color: $ui-secondary-color;
  1312. }
  1313. &.right {
  1314. left: -5px;
  1315. margin-top: -5px;
  1316. border-width: 5px 5px 5px 0;
  1317. border-right-color: $ui-secondary-color;
  1318. }
  1319. }
  1320. .dropdown-menu__item {
  1321. a {
  1322. font-size: 13px;
  1323. line-height: 18px;
  1324. display: block;
  1325. padding: 4px 14px;
  1326. box-sizing: border-box;
  1327. text-decoration: none;
  1328. background: $ui-secondary-color;
  1329. color: $inverted-text-color;
  1330. overflow: hidden;
  1331. text-overflow: ellipsis;
  1332. white-space: nowrap;
  1333. &:focus,
  1334. &:hover,
  1335. &:active {
  1336. background: $ui-highlight-color;
  1337. color: $secondary-text-color;
  1338. outline: 0;
  1339. }
  1340. }
  1341. }
  1342. .dropdown--active .dropdown__content {
  1343. display: block;
  1344. line-height: 18px;
  1345. max-width: 311px;
  1346. right: 0;
  1347. text-align: left;
  1348. z-index: 9999;
  1349. & > ul {
  1350. list-style: none;
  1351. background: $ui-secondary-color;
  1352. padding: 4px 0;
  1353. border-radius: 4px;
  1354. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1355. min-width: 140px;
  1356. position: relative;
  1357. }
  1358. &.dropdown__right {
  1359. right: 0;
  1360. }
  1361. &.dropdown__left {
  1362. & > ul {
  1363. left: -98px;
  1364. }
  1365. }
  1366. & > ul > li > a {
  1367. font-size: 13px;
  1368. line-height: 18px;
  1369. display: block;
  1370. padding: 4px 14px;
  1371. box-sizing: border-box;
  1372. text-decoration: none;
  1373. background: $ui-secondary-color;
  1374. color: $inverted-text-color;
  1375. overflow: hidden;
  1376. text-overflow: ellipsis;
  1377. white-space: nowrap;
  1378. &:focus {
  1379. outline: 0;
  1380. }
  1381. &:hover {
  1382. background: $ui-highlight-color;
  1383. color: $secondary-text-color;
  1384. }
  1385. }
  1386. }
  1387. .dropdown__icon {
  1388. vertical-align: middle;
  1389. }
  1390. .static-content {
  1391. padding: 10px;
  1392. padding-top: 20px;
  1393. color: $dark-text-color;
  1394. h1 {
  1395. font-size: 16px;
  1396. font-weight: 500;
  1397. margin-bottom: 40px;
  1398. text-align: center;
  1399. }
  1400. p {
  1401. font-size: 13px;
  1402. margin-bottom: 20px;
  1403. }
  1404. }
  1405. .columns-area {
  1406. display: flex;
  1407. flex: 1 1 auto;
  1408. flex-direction: row;
  1409. justify-content: flex-start;
  1410. overflow-x: auto;
  1411. position: relative;
  1412. &.unscrollable {
  1413. overflow-x: hidden;
  1414. }
  1415. }
  1416. @media screen and (min-width: 360px) {
  1417. .columns-area {
  1418. padding: 10px;
  1419. }
  1420. .react-swipeable-view-container .columns-area {
  1421. height: calc(100% - 20px) !important;
  1422. }
  1423. }
  1424. .react-swipeable-view-container {
  1425. &,
  1426. .columns-area,
  1427. .drawer,
  1428. .column {
  1429. height: 100%;
  1430. }
  1431. }
  1432. .react-swipeable-view-container > * {
  1433. display: flex;
  1434. align-items: center;
  1435. justify-content: center;
  1436. height: 100%;
  1437. }
  1438. .column {
  1439. width: 330px;
  1440. position: relative;
  1441. box-sizing: border-box;
  1442. display: flex;
  1443. flex-direction: column;
  1444. > .scrollable {
  1445. background: $ui-base-color;
  1446. }
  1447. }
  1448. .ui {
  1449. flex: 0 0 auto;
  1450. display: flex;
  1451. flex-direction: column;
  1452. width: 100%;
  1453. height: 100%;
  1454. background: darken($ui-base-color, 7%);
  1455. }
  1456. .drawer {
  1457. width: 300px;
  1458. box-sizing: border-box;
  1459. display: flex;
  1460. flex-direction: column;
  1461. overflow-y: hidden;
  1462. }
  1463. .drawer__tab {
  1464. display: block;
  1465. flex: 1 1 auto;
  1466. padding: 15px 5px 13px;
  1467. color: $darker-text-color;
  1468. text-decoration: none;
  1469. text-align: center;
  1470. font-size: 16px;
  1471. border-bottom: 2px solid transparent;
  1472. }
  1473. .column,
  1474. .drawer {
  1475. flex: 1 1 100%;
  1476. overflow: hidden;
  1477. }
  1478. @media screen and (min-width: 360px) {
  1479. .tabs-bar {
  1480. margin: 10px;
  1481. margin-bottom: 0;
  1482. }
  1483. .search {
  1484. margin-bottom: 10px;
  1485. }
  1486. }
  1487. @media screen and (max-width: 630px) {
  1488. .column,
  1489. .drawer {
  1490. width: 100%;
  1491. padding: 0;
  1492. }
  1493. .columns-area {
  1494. flex-direction: column;
  1495. }
  1496. .search__input,
  1497. .autosuggest-textarea__textarea {
  1498. font-size: 16px;
  1499. }
  1500. }
  1501. @media screen and (min-width: 631px) {
  1502. .columns-area {
  1503. padding: 0;
  1504. }
  1505. .column,
  1506. .drawer {
  1507. flex: 0 0 auto;
  1508. padding: 10px;
  1509. padding-left: 5px;
  1510. padding-right: 5px;
  1511. &:first-child {
  1512. padding-left: 10px;
  1513. }
  1514. &:last-child {
  1515. padding-right: 10px;
  1516. }
  1517. }
  1518. .columns-area > div {
  1519. .column,
  1520. .drawer {
  1521. padding-left: 5px;
  1522. padding-right: 5px;
  1523. }
  1524. }
  1525. }
  1526. .drawer__pager {
  1527. box-sizing: border-box;
  1528. padding: 0;
  1529. flex-grow: 1;
  1530. position: relative;
  1531. overflow: hidden;
  1532. display: flex;
  1533. }
  1534. .drawer__inner {
  1535. position: absolute;
  1536. top: 0;
  1537. left: 0;
  1538. background: lighten($ui-base-color, 13%);
  1539. box-sizing: border-box;
  1540. padding: 0;
  1541. display: flex;
  1542. flex-direction: column;
  1543. overflow: hidden;
  1544. overflow-y: auto;
  1545. width: 100%;
  1546. height: 100%;
  1547. &.darker {
  1548. background: $ui-base-color;
  1549. }
  1550. }
  1551. .drawer__inner__mastodon {
  1552. 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;
  1553. flex: 1;
  1554. min-height: 47px;
  1555. > img {
  1556. display: block;
  1557. object-fit: contain;
  1558. object-position: bottom left;
  1559. width: 100%;
  1560. height: 100%;
  1561. pointer-events: none;
  1562. user-drag: none;
  1563. user-select: none;
  1564. }
  1565. }
  1566. .pseudo-drawer {
  1567. background: lighten($ui-base-color, 13%);
  1568. font-size: 13px;
  1569. text-align: left;
  1570. }
  1571. .drawer__header {
  1572. flex: 0 0 auto;
  1573. font-size: 16px;
  1574. background: lighten($ui-base-color, 8%);
  1575. margin-bottom: 10px;
  1576. display: flex;
  1577. flex-direction: row;
  1578. a {
  1579. transition: background 100ms ease-in;
  1580. &:hover {
  1581. background: lighten($ui-base-color, 3%);
  1582. transition: background 200ms ease-out;
  1583. }
  1584. }
  1585. }
  1586. .tabs-bar {
  1587. display: flex;
  1588. background: lighten($ui-base-color, 8%);
  1589. flex: 0 0 auto;
  1590. overflow-y: auto;
  1591. }
  1592. .tabs-bar__link {
  1593. display: block;
  1594. flex: 1 1 auto;
  1595. padding: 15px 10px;
  1596. color: $primary-text-color;
  1597. text-decoration: none;
  1598. text-align: center;
  1599. font-size: 14px;
  1600. font-weight: 500;
  1601. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1602. transition: all 50ms linear;
  1603. .fa {
  1604. font-weight: 400;
  1605. font-size: 16px;
  1606. }
  1607. &.active {
  1608. border-bottom: 2px solid $highlight-text-color;
  1609. color: $highlight-text-color;
  1610. }
  1611. &:hover,
  1612. &:focus,
  1613. &:active {
  1614. @media screen and (min-width: 631px) {
  1615. background: lighten($ui-base-color, 14%);
  1616. }
  1617. }
  1618. span {
  1619. margin-left: 5px;
  1620. display: none;
  1621. }
  1622. }
  1623. @media screen and (min-width: 600px) {
  1624. .tabs-bar__link {
  1625. span {
  1626. display: inline;
  1627. }
  1628. }
  1629. }
  1630. @media screen and (min-width: 631px) {
  1631. .tabs-bar {
  1632. display: none;
  1633. }
  1634. }
  1635. .scrollable {
  1636. overflow-y: scroll;
  1637. overflow-x: hidden;
  1638. flex: 1 1 auto;
  1639. -webkit-overflow-scrolling: touch;
  1640. will-change: transform; // improves perf in mobile Chrome
  1641. &.optionally-scrollable {
  1642. overflow-y: auto;
  1643. }
  1644. @supports(display: grid) { // hack to fix Chrome <57
  1645. contain: strict;
  1646. }
  1647. }
  1648. .scrollable.fullscreen {
  1649. @supports(display: grid) { // hack to fix Chrome <57
  1650. contain: none;
  1651. }
  1652. }
  1653. .column-back-button {
  1654. background: lighten($ui-base-color, 4%);
  1655. color: $highlight-text-color;
  1656. cursor: pointer;
  1657. flex: 0 0 auto;
  1658. font-size: 16px;
  1659. border: 0;
  1660. text-align: unset;
  1661. padding: 15px;
  1662. margin: 0;
  1663. z-index: 3;
  1664. outline: 0;
  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. outline: 0;
  2691. .privacy-dropdown__option__content {
  2692. color: $primary-text-color;
  2693. strong {
  2694. color: $primary-text-color;
  2695. }
  2696. }
  2697. }
  2698. &.active:hover {
  2699. background: lighten($ui-highlight-color, 4%);
  2700. }
  2701. }
  2702. .privacy-dropdown__option__icon {
  2703. display: flex;
  2704. align-items: center;
  2705. justify-content: center;
  2706. margin-right: 10px;
  2707. }
  2708. .privacy-dropdown__option__content {
  2709. flex: 1 1 auto;
  2710. color: $lighter-text-color;
  2711. strong {
  2712. font-weight: 500;
  2713. display: block;
  2714. color: $inverted-text-color;
  2715. @each $lang in $cjk-langs {
  2716. &:lang(#{$lang}) {
  2717. font-weight: 700;
  2718. }
  2719. }
  2720. }
  2721. }
  2722. .privacy-dropdown.active {
  2723. .privacy-dropdown__value {
  2724. background: $simple-background-color;
  2725. border-radius: 4px 4px 0 0;
  2726. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2727. .icon-button {
  2728. transition: none;
  2729. }
  2730. &.active {
  2731. background: $ui-highlight-color;
  2732. .icon-button {
  2733. color: $primary-text-color;
  2734. }
  2735. }
  2736. }
  2737. .privacy-dropdown__dropdown {
  2738. display: block;
  2739. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2740. }
  2741. }
  2742. .search {
  2743. position: relative;
  2744. }
  2745. .search__input {
  2746. outline: 0;
  2747. box-sizing: border-box;
  2748. display: block;
  2749. width: 100%;
  2750. border: none;
  2751. padding: 10px;
  2752. padding-right: 30px;
  2753. font-family: inherit;
  2754. background: $ui-base-color;
  2755. color: $darker-text-color;
  2756. font-size: 14px;
  2757. margin: 0;
  2758. &::-moz-focus-inner {
  2759. border: 0;
  2760. }
  2761. &::-moz-focus-inner,
  2762. &:focus,
  2763. &:active {
  2764. outline: 0 !important;
  2765. }
  2766. &:focus {
  2767. background: lighten($ui-base-color, 4%);
  2768. }
  2769. @media screen and (max-width: 600px) {
  2770. font-size: 16px;
  2771. }
  2772. }
  2773. .search__icon {
  2774. .fa {
  2775. position: absolute;
  2776. top: 10px;
  2777. right: 10px;
  2778. z-index: 2;
  2779. display: inline-block;
  2780. opacity: 0;
  2781. transition: all 100ms linear;
  2782. font-size: 18px;
  2783. width: 18px;
  2784. height: 18px;
  2785. color: $secondary-text-color;
  2786. cursor: default;
  2787. pointer-events: none;
  2788. &.active {
  2789. pointer-events: auto;
  2790. opacity: 0.3;
  2791. }
  2792. }
  2793. .fa-search {
  2794. transform: rotate(90deg);
  2795. &.active {
  2796. pointer-events: none;
  2797. transform: rotate(0deg);
  2798. }
  2799. }
  2800. .fa-times-circle {
  2801. top: 11px;
  2802. transform: rotate(0deg);
  2803. color: $action-button-color;
  2804. cursor: pointer;
  2805. &.active {
  2806. transform: rotate(90deg);
  2807. }
  2808. &:hover {
  2809. color: lighten($action-button-color, 7%);
  2810. }
  2811. }
  2812. }
  2813. .search-results__header {
  2814. color: $dark-text-color;
  2815. background: lighten($ui-base-color, 2%);
  2816. border-bottom: 1px solid darken($ui-base-color, 4%);
  2817. padding: 15px;
  2818. font-weight: 500;
  2819. font-size: 16px;
  2820. cursor: default;
  2821. .fa {
  2822. display: inline-block;
  2823. margin-right: 5px;
  2824. }
  2825. }
  2826. .search-results__section {
  2827. margin-bottom: 20px;
  2828. h5 {
  2829. position: relative;
  2830. &::before {
  2831. content: "";
  2832. display: block;
  2833. position: absolute;
  2834. left: 0;
  2835. right: 0;
  2836. top: 50%;
  2837. width: 100%;
  2838. height: 0;
  2839. border-top: 1px solid lighten($ui-base-color, 8%);
  2840. }
  2841. span {
  2842. display: inline-block;
  2843. background: $ui-base-color;
  2844. color: $darker-text-color;
  2845. font-size: 14px;
  2846. font-weight: 500;
  2847. padding: 10px;
  2848. position: relative;
  2849. z-index: 1;
  2850. cursor: default;
  2851. }
  2852. }
  2853. .account:last-child,
  2854. & > div:last-child .status {
  2855. border-bottom: 0;
  2856. }
  2857. }
  2858. .search-results__hashtag {
  2859. display: block;
  2860. padding: 10px;
  2861. color: $secondary-text-color;
  2862. text-decoration: none;
  2863. &:hover,
  2864. &:active,
  2865. &:focus {
  2866. color: lighten($secondary-text-color, 4%);
  2867. text-decoration: underline;
  2868. }
  2869. }
  2870. .modal-root {
  2871. position: relative;
  2872. transition: opacity 0.3s linear;
  2873. will-change: opacity;
  2874. z-index: 9999;
  2875. }
  2876. .modal-root__overlay {
  2877. position: fixed;
  2878. top: 0;
  2879. left: 0;
  2880. right: 0;
  2881. bottom: 0;
  2882. background: rgba($base-overlay-background, 0.7);
  2883. }
  2884. .modal-root__container {
  2885. position: fixed;
  2886. top: 0;
  2887. left: 0;
  2888. width: 100%;
  2889. height: 100%;
  2890. display: flex;
  2891. flex-direction: column;
  2892. align-items: center;
  2893. justify-content: center;
  2894. align-content: space-around;
  2895. z-index: 9999;
  2896. pointer-events: none;
  2897. user-select: none;
  2898. }
  2899. .modal-root__modal {
  2900. pointer-events: auto;
  2901. display: flex;
  2902. z-index: 9999;
  2903. }
  2904. .video-modal {
  2905. max-width: 100vw;
  2906. max-height: 100vh;
  2907. position: relative;
  2908. }
  2909. .media-modal {
  2910. width: 100%;
  2911. height: 100%;
  2912. position: relative;
  2913. .extended-video-player {
  2914. width: 100%;
  2915. height: 100%;
  2916. display: flex;
  2917. align-items: center;
  2918. justify-content: center;
  2919. video {
  2920. max-width: $media-modal-media-max-width;
  2921. max-height: $media-modal-media-max-height;
  2922. }
  2923. }
  2924. }
  2925. .media-modal__closer {
  2926. position: absolute;
  2927. top: 0;
  2928. left: 0;
  2929. right: 0;
  2930. bottom: 0;
  2931. }
  2932. .media-modal__navigation {
  2933. position: absolute;
  2934. top: 0;
  2935. left: 0;
  2936. right: 0;
  2937. bottom: 0;
  2938. pointer-events: none;
  2939. transition: opacity 0.3s linear;
  2940. will-change: opacity;
  2941. * {
  2942. pointer-events: auto;
  2943. }
  2944. &.media-modal__navigation--hidden {
  2945. opacity: 0;
  2946. * {
  2947. pointer-events: none;
  2948. }
  2949. }
  2950. }
  2951. .media-modal__nav {
  2952. background: rgba($base-overlay-background, 0.5);
  2953. box-sizing: border-box;
  2954. border: 0;
  2955. color: $primary-text-color;
  2956. cursor: pointer;
  2957. display: flex;
  2958. align-items: center;
  2959. font-size: 24px;
  2960. height: 20vmax;
  2961. margin: auto 0;
  2962. padding: 30px 15px;
  2963. position: absolute;
  2964. top: 0;
  2965. bottom: 0;
  2966. }
  2967. .media-modal__nav--left {
  2968. left: 0;
  2969. }
  2970. .media-modal__nav--right {
  2971. right: 0;
  2972. }
  2973. .media-modal__pagination {
  2974. width: 100%;
  2975. text-align: center;
  2976. position: absolute;
  2977. left: 0;
  2978. bottom: 20px;
  2979. pointer-events: none;
  2980. }
  2981. .media-modal__page-dot {
  2982. display: inline-block;
  2983. }
  2984. .media-modal__button {
  2985. background-color: $primary-text-color;
  2986. height: 12px;
  2987. width: 12px;
  2988. border-radius: 6px;
  2989. margin: 10px;
  2990. padding: 0;
  2991. border: 0;
  2992. font-size: 0;
  2993. }
  2994. .media-modal__button--active {
  2995. background-color: $highlight-text-color;
  2996. }
  2997. .media-modal__close {
  2998. position: absolute;
  2999. right: 8px;
  3000. top: 8px;
  3001. z-index: 100;
  3002. }
  3003. .onboarding-modal,
  3004. .error-modal,
  3005. .embed-modal {
  3006. background: $ui-secondary-color;
  3007. color: $inverted-text-color;
  3008. border-radius: 8px;
  3009. overflow: hidden;
  3010. display: flex;
  3011. flex-direction: column;
  3012. }
  3013. .onboarding-modal__pager {
  3014. height: 80vh;
  3015. width: 80vw;
  3016. max-width: 520px;
  3017. max-height: 470px;
  3018. .react-swipeable-view-container > div {
  3019. width: 100%;
  3020. height: 100%;
  3021. box-sizing: border-box;
  3022. display: none;
  3023. flex-direction: column;
  3024. align-items: center;
  3025. justify-content: center;
  3026. display: flex;
  3027. user-select: text;
  3028. }
  3029. }
  3030. .error-modal__body {
  3031. height: 80vh;
  3032. width: 80vw;
  3033. max-width: 520px;
  3034. max-height: 420px;
  3035. position: relative;
  3036. & > div {
  3037. position: absolute;
  3038. top: 0;
  3039. left: 0;
  3040. width: 100%;
  3041. height: 100%;
  3042. box-sizing: border-box;
  3043. padding: 25px;
  3044. display: none;
  3045. flex-direction: column;
  3046. align-items: center;
  3047. justify-content: center;
  3048. display: flex;
  3049. opacity: 0;
  3050. user-select: text;
  3051. }
  3052. }
  3053. .error-modal__body {
  3054. display: flex;
  3055. flex-direction: column;
  3056. justify-content: center;
  3057. align-items: center;
  3058. text-align: center;
  3059. }
  3060. @media screen and (max-width: 550px) {
  3061. .onboarding-modal {
  3062. width: 100%;
  3063. height: 100%;
  3064. border-radius: 0;
  3065. }
  3066. .onboarding-modal__pager {
  3067. width: 100%;
  3068. height: auto;
  3069. max-width: none;
  3070. max-height: none;
  3071. flex: 1 1 auto;
  3072. }
  3073. }
  3074. .onboarding-modal__paginator,
  3075. .error-modal__footer {
  3076. flex: 0 0 auto;
  3077. background: darken($ui-secondary-color, 8%);
  3078. display: flex;
  3079. padding: 25px;
  3080. & > div {
  3081. min-width: 33px;
  3082. }
  3083. .onboarding-modal__nav,
  3084. .error-modal__nav {
  3085. color: $lighter-text-color;
  3086. border: 0;
  3087. font-size: 14px;
  3088. font-weight: 500;
  3089. padding: 10px 25px;
  3090. line-height: inherit;
  3091. height: auto;
  3092. margin: -10px;
  3093. border-radius: 4px;
  3094. background-color: transparent;
  3095. &:hover,
  3096. &:focus,
  3097. &:active {
  3098. color: darken($lighter-text-color, 4%);
  3099. background-color: darken($ui-secondary-color, 16%);
  3100. }
  3101. &.onboarding-modal__done,
  3102. &.onboarding-modal__next {
  3103. color: $inverted-text-color;
  3104. &:hover,
  3105. &:focus,
  3106. &:active {
  3107. color: lighten($inverted-text-color, 4%);
  3108. }
  3109. }
  3110. }
  3111. }
  3112. .error-modal__footer {
  3113. justify-content: center;
  3114. }
  3115. .onboarding-modal__dots {
  3116. flex: 1 1 auto;
  3117. display: flex;
  3118. align-items: center;
  3119. justify-content: center;
  3120. }
  3121. .onboarding-modal__dot {
  3122. width: 14px;
  3123. height: 14px;
  3124. border-radius: 14px;
  3125. background: darken($ui-secondary-color, 16%);
  3126. margin: 0 3px;
  3127. cursor: pointer;
  3128. &:hover {
  3129. background: darken($ui-secondary-color, 18%);
  3130. }
  3131. &.active {
  3132. cursor: default;
  3133. background: darken($ui-secondary-color, 24%);
  3134. }
  3135. }
  3136. .onboarding-modal__page__wrapper {
  3137. pointer-events: none;
  3138. padding: 25px;
  3139. padding-bottom: 0;
  3140. &.onboarding-modal__page__wrapper--active {
  3141. pointer-events: auto;
  3142. }
  3143. }
  3144. .onboarding-modal__page {
  3145. cursor: default;
  3146. line-height: 21px;
  3147. h1 {
  3148. font-size: 18px;
  3149. font-weight: 500;
  3150. color: $inverted-text-color;
  3151. margin-bottom: 20px;
  3152. }
  3153. a {
  3154. color: $highlight-text-color;
  3155. &:hover,
  3156. &:focus,
  3157. &:active {
  3158. color: lighten($highlight-text-color, 4%);
  3159. }
  3160. }
  3161. .navigation-bar a {
  3162. color: inherit;
  3163. }
  3164. p {
  3165. font-size: 16px;
  3166. color: $lighter-text-color;
  3167. margin-top: 10px;
  3168. margin-bottom: 10px;
  3169. &:last-child {
  3170. margin-bottom: 0;
  3171. }
  3172. strong {
  3173. font-weight: 500;
  3174. background: $ui-base-color;
  3175. color: $secondary-text-color;
  3176. border-radius: 4px;
  3177. font-size: 14px;
  3178. padding: 3px 6px;
  3179. @each $lang in $cjk-langs {
  3180. &:lang(#{$lang}) {
  3181. font-weight: 700;
  3182. }
  3183. }
  3184. }
  3185. }
  3186. }
  3187. .onboarding-modal__page__wrapper-0 {
  3188. background: url('../images/elephant_ui_greeting.svg') no-repeat left bottom / auto 250px;
  3189. height: 100%;
  3190. padding: 0;
  3191. }
  3192. .onboarding-modal__page-one {
  3193. &__lead {
  3194. padding: 65px;
  3195. padding-top: 45px;
  3196. padding-bottom: 0;
  3197. margin-bottom: 10px;
  3198. h1 {
  3199. font-size: 26px;
  3200. line-height: 36px;
  3201. margin-bottom: 8px;
  3202. }
  3203. p {
  3204. margin-bottom: 0;
  3205. }
  3206. }
  3207. &__extra {
  3208. padding-right: 65px;
  3209. padding-left: 185px;
  3210. text-align: center;
  3211. }
  3212. }
  3213. .display-case {
  3214. text-align: center;
  3215. font-size: 15px;
  3216. margin-bottom: 15px;
  3217. &__label {
  3218. font-weight: 500;
  3219. color: $inverted-text-color;
  3220. margin-bottom: 5px;
  3221. text-transform: uppercase;
  3222. font-size: 12px;
  3223. }
  3224. &__case {
  3225. background: $ui-base-color;
  3226. color: $secondary-text-color;
  3227. font-weight: 500;
  3228. padding: 10px;
  3229. border-radius: 4px;
  3230. }
  3231. }
  3232. .onboarding-modal__page-two,
  3233. .onboarding-modal__page-three,
  3234. .onboarding-modal__page-four,
  3235. .onboarding-modal__page-five {
  3236. p {
  3237. text-align: left;
  3238. }
  3239. .figure {
  3240. background: darken($ui-base-color, 8%);
  3241. color: $secondary-text-color;
  3242. margin-bottom: 20px;
  3243. border-radius: 4px;
  3244. padding: 10px;
  3245. text-align: center;
  3246. font-size: 14px;
  3247. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  3248. .onboarding-modal__image {
  3249. border-radius: 4px;
  3250. margin-bottom: 10px;
  3251. }
  3252. &.non-interactive {
  3253. pointer-events: none;
  3254. text-align: left;
  3255. }
  3256. }
  3257. }
  3258. .onboarding-modal__page-four__columns {
  3259. .row {
  3260. display: flex;
  3261. margin-bottom: 20px;
  3262. & > div {
  3263. flex: 1 1 0;
  3264. margin: 0 10px;
  3265. &:first-child {
  3266. margin-left: 0;
  3267. }
  3268. &:last-child {
  3269. margin-right: 0;
  3270. }
  3271. p {
  3272. text-align: center;
  3273. }
  3274. }
  3275. &:last-child {
  3276. margin-bottom: 0;
  3277. }
  3278. }
  3279. .column-header {
  3280. color: $primary-text-color;
  3281. }
  3282. }
  3283. @media screen and (max-width: 320px) and (max-height: 600px) {
  3284. .onboarding-modal__page p {
  3285. font-size: 14px;
  3286. line-height: 20px;
  3287. }
  3288. .onboarding-modal__page-two .figure,
  3289. .onboarding-modal__page-three .figure,
  3290. .onboarding-modal__page-four .figure,
  3291. .onboarding-modal__page-five .figure {
  3292. font-size: 12px;
  3293. margin-bottom: 10px;
  3294. }
  3295. .onboarding-modal__page-four__columns .row {
  3296. margin-bottom: 10px;
  3297. }
  3298. .onboarding-modal__page-four__columns .column-header {
  3299. padding: 5px;
  3300. font-size: 12px;
  3301. }
  3302. }
  3303. .onboard-sliders {
  3304. display: inline-block;
  3305. max-width: 30px;
  3306. max-height: auto;
  3307. margin-left: 10px;
  3308. }
  3309. .boost-modal,
  3310. .confirmation-modal,
  3311. .report-modal,
  3312. .actions-modal,
  3313. .mute-modal {
  3314. background: lighten($ui-secondary-color, 8%);
  3315. color: $inverted-text-color;
  3316. border-radius: 8px;
  3317. overflow: hidden;
  3318. max-width: 90vw;
  3319. width: 480px;
  3320. position: relative;
  3321. flex-direction: column;
  3322. .status__display-name {
  3323. display: block;
  3324. max-width: 100%;
  3325. padding-right: 25px;
  3326. }
  3327. .status__avatar {
  3328. height: 28px;
  3329. left: 10px;
  3330. position: absolute;
  3331. top: 10px;
  3332. width: 48px;
  3333. }
  3334. .status__content__spoiler-link {
  3335. color: lighten($secondary-text-color, 8%);
  3336. }
  3337. }
  3338. .actions-modal {
  3339. .status {
  3340. background: $white;
  3341. border-bottom-color: $ui-secondary-color;
  3342. padding-top: 10px;
  3343. padding-bottom: 10px;
  3344. }
  3345. .dropdown-menu__separator {
  3346. border-bottom-color: $ui-secondary-color;
  3347. }
  3348. }
  3349. .boost-modal__container {
  3350. overflow-x: scroll;
  3351. padding: 10px;
  3352. .status {
  3353. user-select: text;
  3354. border-bottom: 0;
  3355. }
  3356. }
  3357. .boost-modal__action-bar,
  3358. .confirmation-modal__action-bar,
  3359. .mute-modal__action-bar {
  3360. display: flex;
  3361. justify-content: space-between;
  3362. background: $ui-secondary-color;
  3363. padding: 10px;
  3364. line-height: 36px;
  3365. & > div {
  3366. flex: 1 1 auto;
  3367. text-align: right;
  3368. color: $lighter-text-color;
  3369. padding-right: 10px;
  3370. }
  3371. .button {
  3372. flex: 0 0 auto;
  3373. }
  3374. }
  3375. .boost-modal__status-header {
  3376. font-size: 15px;
  3377. }
  3378. .boost-modal__status-time {
  3379. float: right;
  3380. font-size: 14px;
  3381. }
  3382. .confirmation-modal {
  3383. max-width: 85vw;
  3384. @media screen and (min-width: 480px) {
  3385. max-width: 380px;
  3386. }
  3387. }
  3388. .mute-modal {
  3389. line-height: 24px;
  3390. }
  3391. .mute-modal .react-toggle {
  3392. vertical-align: middle;
  3393. }
  3394. .report-modal {
  3395. width: 90vw;
  3396. max-width: 700px;
  3397. }
  3398. .report-modal__container {
  3399. display: flex;
  3400. border-top: 1px solid $ui-secondary-color;
  3401. @media screen and (max-width: 480px) {
  3402. flex-wrap: wrap;
  3403. overflow-y: auto;
  3404. }
  3405. }
  3406. .report-modal__statuses,
  3407. .report-modal__comment {
  3408. box-sizing: border-box;
  3409. width: 50%;
  3410. @media screen and (max-width: 480px) {
  3411. width: 100%;
  3412. }
  3413. }
  3414. .report-modal__statuses {
  3415. flex: 1 1 auto;
  3416. min-height: 20vh;
  3417. max-height: 80vh;
  3418. overflow-y: auto;
  3419. overflow-x: hidden;
  3420. .status__content a {
  3421. color: $highlight-text-color;
  3422. }
  3423. @media screen and (max-width: 480px) {
  3424. max-height: 10vh;
  3425. }
  3426. }
  3427. .report-modal__comment {
  3428. padding: 20px;
  3429. border-right: 1px solid $ui-secondary-color;
  3430. max-width: 320px;
  3431. p {
  3432. font-size: 14px;
  3433. line-height: 20px;
  3434. margin-bottom: 20px;
  3435. }
  3436. .setting-text {
  3437. display: block;
  3438. box-sizing: border-box;
  3439. width: 100%;
  3440. margin: 0;
  3441. color: $inverted-text-color;
  3442. background: $white;
  3443. padding: 10px;
  3444. font-family: inherit;
  3445. font-size: 14px;
  3446. resize: vertical;
  3447. border: 0;
  3448. outline: 0;
  3449. border-radius: 4px;
  3450. border: 1px solid $ui-secondary-color;
  3451. margin-bottom: 20px;
  3452. &:focus {
  3453. border: 1px solid darken($ui-secondary-color, 8%);
  3454. }
  3455. }
  3456. .setting-toggle {
  3457. margin-top: 20px;
  3458. margin-bottom: 24px;
  3459. &__label {
  3460. color: $inverted-text-color;
  3461. font-size: 14px;
  3462. }
  3463. }
  3464. @media screen and (max-width: 480px) {
  3465. padding: 10px;
  3466. max-width: 100%;
  3467. order: 2;
  3468. .setting-toggle {
  3469. margin-bottom: 4px;
  3470. }
  3471. }
  3472. }
  3473. .actions-modal {
  3474. .status {
  3475. overflow-y: auto;
  3476. max-height: 300px;
  3477. }
  3478. max-height: 80vh;
  3479. max-width: 80vw;
  3480. .actions-modal__item-label {
  3481. font-weight: 500;
  3482. }
  3483. ul {
  3484. overflow-y: auto;
  3485. flex-shrink: 0;
  3486. li:empty {
  3487. margin: 0;
  3488. }
  3489. li:not(:empty) {
  3490. a {
  3491. color: $inverted-text-color;
  3492. display: flex;
  3493. padding: 12px 16px;
  3494. font-size: 15px;
  3495. align-items: center;
  3496. text-decoration: none;
  3497. &,
  3498. button {
  3499. transition: none;
  3500. }
  3501. &.active,
  3502. &:hover,
  3503. &:active,
  3504. &:focus {
  3505. &,
  3506. button {
  3507. background: $ui-highlight-color;
  3508. color: $primary-text-color;
  3509. }
  3510. }
  3511. button:first-child {
  3512. margin-right: 10px;
  3513. }
  3514. }
  3515. }
  3516. }
  3517. }
  3518. .confirmation-modal__action-bar,
  3519. .mute-modal__action-bar {
  3520. .confirmation-modal__cancel-button,
  3521. .mute-modal__cancel-button {
  3522. background-color: transparent;
  3523. color: $lighter-text-color;
  3524. font-size: 14px;
  3525. font-weight: 500;
  3526. &:hover,
  3527. &:focus,
  3528. &:active {
  3529. color: darken($lighter-text-color, 4%);
  3530. }
  3531. }
  3532. }
  3533. .confirmation-modal__container,
  3534. .mute-modal__container,
  3535. .report-modal__target {
  3536. padding: 30px;
  3537. font-size: 16px;
  3538. text-align: center;
  3539. strong {
  3540. font-weight: 500;
  3541. @each $lang in $cjk-langs {
  3542. &:lang(#{$lang}) {
  3543. font-weight: 700;
  3544. }
  3545. }
  3546. }
  3547. }
  3548. .report-modal__target {
  3549. padding: 20px;
  3550. .media-modal__close {
  3551. top: 19px;
  3552. right: 15px;
  3553. }
  3554. }
  3555. .loading-bar {
  3556. background-color: $highlight-text-color;
  3557. height: 3px;
  3558. position: absolute;
  3559. top: 0;
  3560. left: 0;
  3561. }
  3562. .media-gallery__gifv__label {
  3563. display: block;
  3564. position: absolute;
  3565. color: $primary-text-color;
  3566. background: rgba($base-overlay-background, 0.5);
  3567. bottom: 6px;
  3568. left: 6px;
  3569. padding: 2px 6px;
  3570. border-radius: 2px;
  3571. font-size: 11px;
  3572. font-weight: 600;
  3573. z-index: 1;
  3574. pointer-events: none;
  3575. opacity: 0.9;
  3576. transition: opacity 0.1s ease;
  3577. }
  3578. .media-gallery__gifv {
  3579. &.autoplay {
  3580. .media-gallery__gifv__label {
  3581. display: none;
  3582. }
  3583. }
  3584. &:hover {
  3585. .media-gallery__gifv__label {
  3586. opacity: 1;
  3587. }
  3588. }
  3589. }
  3590. .attachment-list {
  3591. display: flex;
  3592. font-size: 14px;
  3593. border: 1px solid lighten($ui-base-color, 8%);
  3594. border-radius: 4px;
  3595. margin-top: 14px;
  3596. overflow: hidden;
  3597. &__icon {
  3598. flex: 0 0 auto;
  3599. color: $dark-text-color;
  3600. padding: 8px 18px;
  3601. cursor: default;
  3602. border-right: 1px solid lighten($ui-base-color, 8%);
  3603. display: flex;
  3604. flex-direction: column;
  3605. align-items: center;
  3606. justify-content: center;
  3607. font-size: 26px;
  3608. .fa {
  3609. display: block;
  3610. }
  3611. }
  3612. &__list {
  3613. list-style: none;
  3614. padding: 4px 0;
  3615. padding-left: 8px;
  3616. display: flex;
  3617. flex-direction: column;
  3618. justify-content: center;
  3619. li {
  3620. display: block;
  3621. padding: 4px 0;
  3622. }
  3623. a {
  3624. text-decoration: none;
  3625. color: $dark-text-color;
  3626. font-weight: 500;
  3627. &:hover {
  3628. text-decoration: underline;
  3629. }
  3630. }
  3631. }
  3632. &.compact {
  3633. border: 0;
  3634. margin-top: 4px;
  3635. .attachment-list__list {
  3636. padding: 0;
  3637. display: block;
  3638. }
  3639. .fa {
  3640. color: $dark-text-color;
  3641. }
  3642. }
  3643. }
  3644. /* Media Gallery */
  3645. .media-gallery {
  3646. box-sizing: border-box;
  3647. margin-top: 8px;
  3648. overflow: hidden;
  3649. border-radius: 4px;
  3650. position: relative;
  3651. width: 100%;
  3652. }
  3653. .media-gallery__item {
  3654. border: none;
  3655. box-sizing: border-box;
  3656. display: block;
  3657. float: left;
  3658. position: relative;
  3659. border-radius: 4px;
  3660. overflow: hidden;
  3661. &.standalone {
  3662. .media-gallery__item-gifv-thumbnail {
  3663. transform: none;
  3664. top: 0;
  3665. }
  3666. }
  3667. }
  3668. .media-gallery__item-thumbnail {
  3669. cursor: zoom-in;
  3670. display: block;
  3671. text-decoration: none;
  3672. color: $secondary-text-color;
  3673. line-height: 0;
  3674. &,
  3675. img {
  3676. height: 100%;
  3677. width: 100%;
  3678. }
  3679. img {
  3680. object-fit: cover;
  3681. }
  3682. }
  3683. .media-gallery__gifv {
  3684. height: 100%;
  3685. overflow: hidden;
  3686. position: relative;
  3687. width: 100%;
  3688. }
  3689. .media-gallery__item-gifv-thumbnail {
  3690. cursor: zoom-in;
  3691. height: 100%;
  3692. object-fit: cover;
  3693. position: relative;
  3694. top: 50%;
  3695. transform: translateY(-50%);
  3696. width: 100%;
  3697. z-index: 1;
  3698. }
  3699. .media-gallery__item-thumbnail-label {
  3700. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3701. clip: rect(1px, 1px, 1px, 1px);
  3702. overflow: hidden;
  3703. position: absolute;
  3704. }
  3705. /* End Media Gallery */
  3706. /* Status Video Player */
  3707. .status__video-player {
  3708. background: $base-overlay-background;
  3709. box-sizing: border-box;
  3710. cursor: default; /* May not be needed */
  3711. margin-top: 8px;
  3712. overflow: hidden;
  3713. position: relative;
  3714. }
  3715. .status__video-player-video {
  3716. height: 100%;
  3717. object-fit: cover;
  3718. position: relative;
  3719. top: 50%;
  3720. transform: translateY(-50%);
  3721. width: 100%;
  3722. z-index: 1;
  3723. }
  3724. .status__video-player-expand,
  3725. .status__video-player-mute {
  3726. color: $primary-text-color;
  3727. opacity: 0.8;
  3728. position: absolute;
  3729. right: 4px;
  3730. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3731. }
  3732. .status__video-player-spoiler {
  3733. display: none;
  3734. color: $primary-text-color;
  3735. left: 4px;
  3736. position: absolute;
  3737. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3738. top: 4px;
  3739. z-index: 100;
  3740. &.status__video-player-spoiler--visible {
  3741. display: block;
  3742. }
  3743. }
  3744. .status__video-player-expand {
  3745. bottom: 4px;
  3746. z-index: 100;
  3747. }
  3748. .status__video-player-mute {
  3749. top: 4px;
  3750. z-index: 5;
  3751. }
  3752. .video-player {
  3753. overflow: hidden;
  3754. position: relative;
  3755. background: $base-shadow-color;
  3756. max-width: 100%;
  3757. border-radius: 4px;
  3758. &:focus {
  3759. outline: 0;
  3760. }
  3761. video {
  3762. max-width: 100vw;
  3763. max-height: 80vh;
  3764. z-index: 1;
  3765. }
  3766. &.fullscreen {
  3767. width: 100% !important;
  3768. height: 100% !important;
  3769. margin: 0;
  3770. video {
  3771. max-width: 100% !important;
  3772. max-height: 100% !important;
  3773. width: 100% !important;
  3774. height: 100% !important;
  3775. }
  3776. }
  3777. &.inline {
  3778. video {
  3779. object-fit: contain;
  3780. position: relative;
  3781. top: 50%;
  3782. transform: translateY(-50%);
  3783. }
  3784. }
  3785. &__controls {
  3786. position: absolute;
  3787. z-index: 2;
  3788. bottom: 0;
  3789. left: 0;
  3790. right: 0;
  3791. box-sizing: border-box;
  3792. background: linear-gradient(0deg, rgba($base-shadow-color, 0.85) 0, rgba($base-shadow-color, 0.45) 60%, transparent);
  3793. padding: 0 15px;
  3794. opacity: 0;
  3795. transition: opacity .1s ease;
  3796. &.active {
  3797. opacity: 1;
  3798. }
  3799. }
  3800. &.inactive {
  3801. video,
  3802. .video-player__controls {
  3803. visibility: hidden;
  3804. }
  3805. }
  3806. &__spoiler {
  3807. display: none;
  3808. position: absolute;
  3809. top: 0;
  3810. left: 0;
  3811. width: 100%;
  3812. height: 100%;
  3813. z-index: 4;
  3814. border: 0;
  3815. background: $base-shadow-color;
  3816. color: $darker-text-color;
  3817. transition: none;
  3818. pointer-events: none;
  3819. &.active {
  3820. display: block;
  3821. pointer-events: auto;
  3822. &:hover,
  3823. &:active,
  3824. &:focus {
  3825. color: lighten($darker-text-color, 7%);
  3826. }
  3827. }
  3828. &__title {
  3829. display: block;
  3830. font-size: 14px;
  3831. }
  3832. &__subtitle {
  3833. display: block;
  3834. font-size: 11px;
  3835. font-weight: 500;
  3836. }
  3837. }
  3838. &__buttons-bar {
  3839. display: flex;
  3840. justify-content: space-between;
  3841. padding-bottom: 10px;
  3842. }
  3843. &__buttons {
  3844. font-size: 16px;
  3845. white-space: nowrap;
  3846. overflow: hidden;
  3847. text-overflow: ellipsis;
  3848. &.left {
  3849. button {
  3850. padding-left: 0;
  3851. }
  3852. }
  3853. &.right {
  3854. button {
  3855. padding-right: 0;
  3856. }
  3857. }
  3858. button {
  3859. background: transparent;
  3860. padding: 2px 10px;
  3861. font-size: 16px;
  3862. border: 0;
  3863. color: rgba($white, 0.75);
  3864. &:active,
  3865. &:hover,
  3866. &:focus {
  3867. color: $white;
  3868. }
  3869. }
  3870. }
  3871. &__time-sep,
  3872. &__time-total,
  3873. &__time-current {
  3874. font-size: 14px;
  3875. font-weight: 500;
  3876. }
  3877. &__time-current {
  3878. color: $white;
  3879. margin-left: 10px;
  3880. }
  3881. &__time-sep {
  3882. display: inline-block;
  3883. margin: 0 6px;
  3884. }
  3885. &__time-sep,
  3886. &__time-total {
  3887. color: $white;
  3888. }
  3889. &__seek {
  3890. cursor: pointer;
  3891. height: 24px;
  3892. position: relative;
  3893. &::before {
  3894. content: "";
  3895. width: 100%;
  3896. background: rgba($white, 0.35);
  3897. border-radius: 4px;
  3898. display: block;
  3899. position: absolute;
  3900. height: 4px;
  3901. top: 10px;
  3902. }
  3903. &__progress,
  3904. &__buffer {
  3905. display: block;
  3906. position: absolute;
  3907. height: 4px;
  3908. border-radius: 4px;
  3909. top: 10px;
  3910. background: lighten($ui-highlight-color, 8%);
  3911. }
  3912. &__buffer {
  3913. background: rgba($white, 0.2);
  3914. }
  3915. &__handle {
  3916. position: absolute;
  3917. z-index: 3;
  3918. opacity: 0;
  3919. border-radius: 50%;
  3920. width: 12px;
  3921. height: 12px;
  3922. top: 6px;
  3923. margin-left: -6px;
  3924. transition: opacity .1s ease;
  3925. background: lighten($ui-highlight-color, 8%);
  3926. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  3927. pointer-events: none;
  3928. &.active {
  3929. opacity: 1;
  3930. }
  3931. }
  3932. &:hover {
  3933. .video-player__seek__handle {
  3934. opacity: 1;
  3935. }
  3936. }
  3937. }
  3938. &.detailed,
  3939. &.fullscreen {
  3940. .video-player__buttons {
  3941. button {
  3942. padding-top: 10px;
  3943. padding-bottom: 10px;
  3944. }
  3945. }
  3946. }
  3947. }
  3948. .media-spoiler-video {
  3949. background-size: cover;
  3950. background-repeat: no-repeat;
  3951. background-position: center;
  3952. cursor: pointer;
  3953. margin-top: 8px;
  3954. position: relative;
  3955. border: 0;
  3956. display: block;
  3957. }
  3958. .media-spoiler-video-play-icon {
  3959. border-radius: 100px;
  3960. color: rgba($primary-text-color, 0.8);
  3961. font-size: 36px;
  3962. left: 50%;
  3963. padding: 5px;
  3964. position: absolute;
  3965. top: 50%;
  3966. transform: translate(-50%, -50%);
  3967. }
  3968. /* End Video Player */
  3969. .account-gallery__container {
  3970. display: flex;
  3971. justify-content: center;
  3972. flex-wrap: wrap;
  3973. padding: 2px;
  3974. }
  3975. .account-gallery__item {
  3976. flex-grow: 1;
  3977. width: 50%;
  3978. overflow: hidden;
  3979. position: relative;
  3980. &::before {
  3981. content: "";
  3982. display: block;
  3983. padding-top: 100%;
  3984. }
  3985. a {
  3986. display: block;
  3987. width: calc(100% - 4px);
  3988. height: calc(100% - 4px);
  3989. margin: 2px;
  3990. top: 0;
  3991. left: 0;
  3992. background-color: $base-overlay-background;
  3993. background-size: cover;
  3994. background-position: center;
  3995. position: absolute;
  3996. color: $darker-text-color;
  3997. text-decoration: none;
  3998. border-radius: 4px;
  3999. &:hover,
  4000. &:active,
  4001. &:focus {
  4002. outline: 0;
  4003. color: $secondary-text-color;
  4004. &::before {
  4005. content: "";
  4006. display: block;
  4007. width: 100%;
  4008. height: 100%;
  4009. background: rgba($base-overlay-background, 0.3);
  4010. border-radius: 4px;
  4011. }
  4012. }
  4013. }
  4014. &__icons {
  4015. position: absolute;
  4016. top: 50%;
  4017. left: 50%;
  4018. transform: translate(-50%, -50%);
  4019. font-size: 24px;
  4020. }
  4021. }
  4022. .community-timeline__section-headline,
  4023. .public-timeline__section-headline,
  4024. .account__section-headline {
  4025. background: darken($ui-base-color, 4%);
  4026. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4027. cursor: default;
  4028. display: flex;
  4029. a {
  4030. display: block;
  4031. flex: 1 1 auto;
  4032. color: $darker-text-color;
  4033. padding: 15px 0;
  4034. font-size: 14px;
  4035. font-weight: 500;
  4036. text-align: center;
  4037. text-decoration: none;
  4038. position: relative;
  4039. &.active {
  4040. color: $secondary-text-color;
  4041. &::before,
  4042. &::after {
  4043. display: block;
  4044. content: "";
  4045. position: absolute;
  4046. bottom: 0;
  4047. left: 50%;
  4048. width: 0;
  4049. height: 0;
  4050. transform: translateX(-50%);
  4051. border-style: solid;
  4052. border-width: 0 10px 10px;
  4053. border-color: transparent transparent lighten($ui-base-color, 8%);
  4054. }
  4055. &::after {
  4056. bottom: -1px;
  4057. border-color: transparent transparent $ui-base-color;
  4058. }
  4059. }
  4060. }
  4061. }
  4062. ::-webkit-scrollbar-thumb {
  4063. border-radius: 0;
  4064. }
  4065. .search-popout {
  4066. background: $simple-background-color;
  4067. border-radius: 4px;
  4068. padding: 10px 14px;
  4069. padding-bottom: 14px;
  4070. margin-top: 10px;
  4071. color: $light-text-color;
  4072. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4073. h4 {
  4074. text-transform: uppercase;
  4075. color: $light-text-color;
  4076. font-size: 13px;
  4077. font-weight: 500;
  4078. margin-bottom: 10px;
  4079. }
  4080. li {
  4081. padding: 4px 0;
  4082. }
  4083. ul {
  4084. margin-bottom: 10px;
  4085. }
  4086. em {
  4087. font-weight: 500;
  4088. color: $inverted-text-color;
  4089. }
  4090. }
  4091. noscript {
  4092. text-align: center;
  4093. img {
  4094. width: 200px;
  4095. opacity: 0.5;
  4096. animation: flicker 4s infinite;
  4097. }
  4098. div {
  4099. font-size: 14px;
  4100. margin: 30px auto;
  4101. color: $secondary-text-color;
  4102. max-width: 400px;
  4103. a {
  4104. color: $highlight-text-color;
  4105. text-decoration: underline;
  4106. &:hover {
  4107. text-decoration: none;
  4108. }
  4109. }
  4110. }
  4111. }
  4112. @keyframes flicker {
  4113. 0% { opacity: 1; }
  4114. 30% { opacity: 0.75; }
  4115. 100% { opacity: 1; }
  4116. }
  4117. @media screen and (max-width: 630px) and (max-height: 400px) {
  4118. $duration: 400ms;
  4119. $delay: 100ms;
  4120. .tabs-bar,
  4121. .search {
  4122. will-change: margin-top;
  4123. transition: margin-top $duration $delay;
  4124. }
  4125. .navigation-bar {
  4126. will-change: padding-bottom;
  4127. transition: padding-bottom $duration $delay;
  4128. }
  4129. .navigation-bar {
  4130. & > a:first-child {
  4131. will-change: margin-top, margin-left, width;
  4132. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay);
  4133. }
  4134. & > .navigation-bar__profile-edit {
  4135. will-change: margin-top;
  4136. transition: margin-top $duration $delay;
  4137. }
  4138. & > .icon-button {
  4139. will-change: opacity;
  4140. transition: opacity $duration $delay;
  4141. }
  4142. }
  4143. .is-composing {
  4144. .tabs-bar,
  4145. .search {
  4146. margin-top: -50px;
  4147. }
  4148. .navigation-bar {
  4149. padding-bottom: 0;
  4150. & > a:first-child {
  4151. margin-top: -50px;
  4152. margin-left: -40px;
  4153. }
  4154. .navigation-bar__profile {
  4155. padding-top: 2px;
  4156. }
  4157. .navigation-bar__profile-edit {
  4158. position: absolute;
  4159. margin-top: -50px;
  4160. }
  4161. .icon-button {
  4162. pointer-events: auto;
  4163. opacity: 1;
  4164. }
  4165. }
  4166. }
  4167. }
  4168. .embed-modal {
  4169. max-width: 80vw;
  4170. max-height: 80vh;
  4171. h4 {
  4172. padding: 30px;
  4173. font-weight: 500;
  4174. font-size: 16px;
  4175. text-align: center;
  4176. }
  4177. .embed-modal__container {
  4178. padding: 10px;
  4179. .hint {
  4180. margin-bottom: 15px;
  4181. }
  4182. .embed-modal__html {
  4183. outline: 0;
  4184. box-sizing: border-box;
  4185. display: block;
  4186. width: 100%;
  4187. border: none;
  4188. padding: 10px;
  4189. font-family: 'mastodon-font-monospace', monospace;
  4190. background: $ui-base-color;
  4191. color: $primary-text-color;
  4192. font-size: 14px;
  4193. margin: 0;
  4194. margin-bottom: 15px;
  4195. &::-moz-focus-inner {
  4196. border: 0;
  4197. }
  4198. &::-moz-focus-inner,
  4199. &:focus,
  4200. &:active {
  4201. outline: 0 !important;
  4202. }
  4203. &:focus {
  4204. background: lighten($ui-base-color, 4%);
  4205. }
  4206. @media screen and (max-width: 600px) {
  4207. font-size: 16px;
  4208. }
  4209. }
  4210. .embed-modal__iframe {
  4211. width: 400px;
  4212. max-width: 100%;
  4213. overflow: hidden;
  4214. border: 0;
  4215. }
  4216. }
  4217. }
  4218. .account__moved-note {
  4219. padding: 14px 10px;
  4220. padding-bottom: 16px;
  4221. background: lighten($ui-base-color, 4%);
  4222. border-top: 1px solid lighten($ui-base-color, 8%);
  4223. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4224. &__message {
  4225. position: relative;
  4226. margin-left: 58px;
  4227. color: $dark-text-color;
  4228. padding: 8px 0;
  4229. padding-top: 0;
  4230. padding-bottom: 4px;
  4231. font-size: 14px;
  4232. > span {
  4233. display: block;
  4234. overflow: hidden;
  4235. text-overflow: ellipsis;
  4236. }
  4237. }
  4238. &__icon-wrapper {
  4239. left: -26px;
  4240. position: absolute;
  4241. }
  4242. .detailed-status__display-avatar {
  4243. position: relative;
  4244. }
  4245. .detailed-status__display-name {
  4246. margin-bottom: 0;
  4247. }
  4248. }
  4249. .column-inline-form {
  4250. padding: 7px 15px;
  4251. padding-right: 5px;
  4252. display: flex;
  4253. justify-content: flex-start;
  4254. align-items: center;
  4255. background: lighten($ui-base-color, 4%);
  4256. label {
  4257. flex: 1 1 auto;
  4258. input {
  4259. width: 100%;
  4260. margin-bottom: 6px;
  4261. &:focus {
  4262. outline: 0;
  4263. }
  4264. }
  4265. }
  4266. .icon-button {
  4267. flex: 0 0 auto;
  4268. margin-left: 5px;
  4269. }
  4270. }
  4271. .drawer__backdrop {
  4272. cursor: pointer;
  4273. position: absolute;
  4274. top: 0;
  4275. left: 0;
  4276. width: 100%;
  4277. height: 100%;
  4278. background: rgba($base-overlay-background, 0.5);
  4279. }
  4280. .list-editor {
  4281. background: $ui-base-color;
  4282. flex-direction: column;
  4283. border-radius: 8px;
  4284. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4285. width: 380px;
  4286. overflow: hidden;
  4287. @media screen and (max-width: 420px) {
  4288. width: 90%;
  4289. }
  4290. h4 {
  4291. padding: 15px 0;
  4292. background: lighten($ui-base-color, 13%);
  4293. font-weight: 500;
  4294. font-size: 16px;
  4295. text-align: center;
  4296. border-radius: 8px 8px 0 0;
  4297. }
  4298. .drawer__pager {
  4299. height: 50vh;
  4300. }
  4301. .drawer__inner {
  4302. border-radius: 0 0 8px 8px;
  4303. &.backdrop {
  4304. width: calc(100% - 60px);
  4305. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4306. border-radius: 0 0 0 8px;
  4307. }
  4308. }
  4309. &__accounts {
  4310. overflow-y: auto;
  4311. }
  4312. .account__display-name {
  4313. &:hover strong {
  4314. text-decoration: none;
  4315. }
  4316. }
  4317. .account__avatar {
  4318. cursor: default;
  4319. }
  4320. .search {
  4321. margin-bottom: 0;
  4322. }
  4323. }
  4324. .focal-point-modal {
  4325. max-width: 80vw;
  4326. max-height: 80vh;
  4327. position: relative;
  4328. }
  4329. .focal-point {
  4330. position: relative;
  4331. cursor: pointer;
  4332. overflow: hidden;
  4333. &.dragging {
  4334. cursor: move;
  4335. }
  4336. img {
  4337. max-width: 80vw;
  4338. max-height: 80vh;
  4339. width: auto;
  4340. height: auto;
  4341. margin: auto;
  4342. }
  4343. &__reticle {
  4344. position: absolute;
  4345. width: 100px;
  4346. height: 100px;
  4347. transform: translate(-50%, -50%);
  4348. background: url('../images/reticle.png') no-repeat 0 0;
  4349. border-radius: 50%;
  4350. box-shadow: 0 0 0 9999em rgba($base-shadow-color, 0.35);
  4351. }
  4352. &__overlay {
  4353. position: absolute;
  4354. width: 100%;
  4355. height: 100%;
  4356. top: 0;
  4357. left: 0;
  4358. }
  4359. }
  4360. .floating-action-button {
  4361. position: fixed;
  4362. display: flex;
  4363. justify-content: center;
  4364. align-items: center;
  4365. width: 3.9375rem;
  4366. height: 3.9375rem;
  4367. bottom: 1.3125rem;
  4368. right: 1.3125rem;
  4369. background: darken($ui-highlight-color, 3%);
  4370. color: $white;
  4371. border-radius: 50%;
  4372. font-size: 21px;
  4373. line-height: 21px;
  4374. text-decoration: none;
  4375. box-shadow: 2px 3px 9px rgba($base-shadow-color, 0.4);
  4376. &:hover,
  4377. &:focus,
  4378. &:active {
  4379. background: lighten($ui-highlight-color, 7%);
  4380. }
  4381. }
  4382. .account__header .roles {
  4383. margin-top: 20px;
  4384. margin-bottom: 20px;
  4385. padding: 0 15px;
  4386. }
  4387. .account__header .account__header__fields {
  4388. font-size: 14px;
  4389. line-height: 20px;
  4390. overflow: hidden;
  4391. margin: 20px -10px -20px;
  4392. border-bottom: 0;
  4393. dl {
  4394. border-top: 1px solid lighten($ui-base-color, 8%);
  4395. display: flex;
  4396. }
  4397. dt,
  4398. dd {
  4399. box-sizing: border-box;
  4400. padding: 14px 20px;
  4401. text-align: center;
  4402. max-height: 48px;
  4403. overflow: hidden;
  4404. white-space: nowrap;
  4405. text-overflow: ellipsis;
  4406. }
  4407. dt {
  4408. color: $darker-text-color;
  4409. background: darken($ui-base-color, 4%);
  4410. width: 120px;
  4411. flex: 0 0 auto;
  4412. font-weight: 500;
  4413. }
  4414. dd {
  4415. flex: 1 1 auto;
  4416. color: $primary-text-color;
  4417. background: $ui-base-color;
  4418. }
  4419. }
  4420. .trends {
  4421. &__header {
  4422. color: $dark-text-color;
  4423. background: lighten($ui-base-color, 2%);
  4424. border-bottom: 1px solid darken($ui-base-color, 4%);
  4425. font-weight: 500;
  4426. padding: 15px;
  4427. font-size: 16px;
  4428. cursor: default;
  4429. .fa {
  4430. display: inline-block;
  4431. margin-right: 5px;
  4432. }
  4433. }
  4434. &__item {
  4435. display: flex;
  4436. align-items: center;
  4437. padding: 15px;
  4438. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4439. &:last-child {
  4440. border-bottom: 0;
  4441. }
  4442. &__name {
  4443. flex: 1 1 auto;
  4444. color: $dark-text-color;
  4445. overflow: hidden;
  4446. text-overflow: ellipsis;
  4447. white-space: nowrap;
  4448. strong {
  4449. font-weight: 500;
  4450. }
  4451. a {
  4452. color: $darker-text-color;
  4453. text-decoration: none;
  4454. font-size: 14px;
  4455. font-weight: 500;
  4456. display: block;
  4457. &:hover,
  4458. &:focus,
  4459. &:active {
  4460. span {
  4461. text-decoration: underline;
  4462. }
  4463. }
  4464. }
  4465. }
  4466. &__current {
  4467. width: 100px;
  4468. font-size: 24px;
  4469. line-height: 36px;
  4470. font-weight: 500;
  4471. text-align: center;
  4472. color: $secondary-text-color;
  4473. }
  4474. &__sparkline {
  4475. width: 50px;
  4476. path {
  4477. stroke: lighten($highlight-text-color, 6%) !important;
  4478. }
  4479. }
  4480. }
  4481. }