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.
 
 
 
 

5413 lines
92 KiB

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