logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

components.scss (90418B)


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