The code powering m.abunchtell.com https://m.abunchtell.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

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