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.
 
 
 
 

6222 rivejä
105 KiB

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