The code powering m.abunchtell.com https://m.abunchtell.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

5436 řádky
92 KiB

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