The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

5582 lines
94 KiB

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