The code powering m.abunchtell.com https://m.abunchtell.com
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

5142 строки
87 KiB

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