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.
 
 
 
 

6361 lines
108 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. .directory__list {
  1755. display: grid;
  1756. grid-gap: 10px;
  1757. grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  1758. @media screen and (max-width: $no-gap-breakpoint) {
  1759. display: block;
  1760. }
  1761. }
  1762. .directory__card {
  1763. margin-bottom: 0;
  1764. }
  1765. .filter-form {
  1766. display: flex;
  1767. }
  1768. .autosuggest-textarea__textarea {
  1769. font-size: 16px;
  1770. }
  1771. .search__input {
  1772. line-height: 18px;
  1773. font-size: 16px;
  1774. padding: 15px;
  1775. padding-right: 30px;
  1776. }
  1777. .search__icon .fa {
  1778. top: 15px;
  1779. }
  1780. .scrollable {
  1781. overflow: visible;
  1782. @supports(display: grid) {
  1783. contain: content;
  1784. }
  1785. }
  1786. @media screen and (min-width: $no-gap-breakpoint) {
  1787. padding: 10px 0;
  1788. padding-top: 0;
  1789. }
  1790. @media screen and (min-width: 630px) {
  1791. .detailed-status {
  1792. padding: 15px;
  1793. .media-gallery,
  1794. .video-player,
  1795. .audio-player {
  1796. margin-top: 15px;
  1797. }
  1798. }
  1799. .account__header__bar {
  1800. padding: 5px 10px;
  1801. }
  1802. .navigation-bar,
  1803. .compose-form {
  1804. padding: 15px;
  1805. }
  1806. .compose-form .compose-form__publish .compose-form__publish-button-wrapper {
  1807. padding-top: 15px;
  1808. }
  1809. .status {
  1810. padding: 15px 15px 15px (48px + 15px * 2);
  1811. min-height: 48px + 2px;
  1812. &__avatar {
  1813. left: 15px;
  1814. top: 17px;
  1815. }
  1816. &__content {
  1817. padding-top: 5px;
  1818. }
  1819. &__prepend {
  1820. margin-left: 48px + 15px * 2;
  1821. padding-top: 15px;
  1822. }
  1823. &__prepend-icon-wrapper {
  1824. left: -32px;
  1825. }
  1826. .media-gallery,
  1827. &__action-bar,
  1828. .video-player,
  1829. .audio-player {
  1830. margin-top: 10px;
  1831. }
  1832. }
  1833. .account {
  1834. padding: 15px 10px;
  1835. &__header__bio {
  1836. margin: 0 -10px;
  1837. }
  1838. }
  1839. .notification {
  1840. &__message {
  1841. margin-left: 48px + 15px * 2;
  1842. padding-top: 15px;
  1843. }
  1844. &__favourite-icon-wrapper {
  1845. left: -32px;
  1846. }
  1847. .status {
  1848. padding-top: 8px;
  1849. }
  1850. .account {
  1851. padding-top: 8px;
  1852. }
  1853. .account__avatar-wrapper {
  1854. margin-left: 17px;
  1855. margin-right: 15px;
  1856. }
  1857. }
  1858. }
  1859. }
  1860. .floating-action-button {
  1861. position: fixed;
  1862. display: flex;
  1863. justify-content: center;
  1864. align-items: center;
  1865. width: 3.9375rem;
  1866. height: 3.9375rem;
  1867. bottom: 1.3125rem;
  1868. right: 1.3125rem;
  1869. background: darken($ui-highlight-color, 3%);
  1870. color: $white;
  1871. border-radius: 50%;
  1872. font-size: 21px;
  1873. line-height: 21px;
  1874. text-decoration: none;
  1875. box-shadow: 2px 3px 9px rgba($base-shadow-color, 0.4);
  1876. &:hover,
  1877. &:focus,
  1878. &:active {
  1879. background: lighten($ui-highlight-color, 7%);
  1880. }
  1881. }
  1882. @media screen and (min-width: $no-gap-breakpoint) {
  1883. .tabs-bar {
  1884. width: 100%;
  1885. }
  1886. .react-swipeable-view-container .columns-area--mobile {
  1887. height: calc(100% - 10px) !important;
  1888. }
  1889. .getting-started__wrapper,
  1890. .search {
  1891. margin-bottom: 10px;
  1892. }
  1893. }
  1894. @media screen and (max-width: 600px + (285px * 1) + (10px * 1)) {
  1895. .columns-area__panels__pane--compositional {
  1896. display: none;
  1897. }
  1898. }
  1899. @media screen and (min-width: 600px + (285px * 1) + (10px * 1)) {
  1900. .floating-action-button,
  1901. .tabs-bar__link.optional {
  1902. display: none;
  1903. }
  1904. .search-page .search {
  1905. display: none;
  1906. }
  1907. }
  1908. @media screen and (max-width: 600px + (285px * 2) + (10px * 2)) {
  1909. .columns-area__panels__pane--navigational {
  1910. display: none;
  1911. }
  1912. }
  1913. @media screen and (min-width: 600px + (285px * 2) + (10px * 2)) {
  1914. .tabs-bar {
  1915. display: none;
  1916. }
  1917. }
  1918. .icon-with-badge {
  1919. position: relative;
  1920. &__badge {
  1921. position: absolute;
  1922. left: 9px;
  1923. top: -13px;
  1924. background: $ui-highlight-color;
  1925. border: 2px solid lighten($ui-base-color, 8%);
  1926. padding: 1px 6px;
  1927. border-radius: 6px;
  1928. font-size: 10px;
  1929. font-weight: 500;
  1930. line-height: 14px;
  1931. color: $primary-text-color;
  1932. }
  1933. }
  1934. .column-link--transparent .icon-with-badge__badge {
  1935. border-color: darken($ui-base-color, 8%);
  1936. }
  1937. .compose-panel {
  1938. width: 285px;
  1939. margin-top: 10px;
  1940. display: flex;
  1941. flex-direction: column;
  1942. height: calc(100% - 10px);
  1943. overflow-y: hidden;
  1944. .navigation-bar {
  1945. padding-top: 20px;
  1946. padding-bottom: 20px;
  1947. flex: 0 1 48px;
  1948. min-height: 20px;
  1949. }
  1950. .flex-spacer {
  1951. background: transparent;
  1952. }
  1953. .compose-form {
  1954. flex: 1;
  1955. overflow-y: hidden;
  1956. display: flex;
  1957. flex-direction: column;
  1958. min-height: 310px;
  1959. padding-bottom: 71px;
  1960. margin-bottom: -71px;
  1961. }
  1962. .compose-form__autosuggest-wrapper {
  1963. overflow-y: auto;
  1964. background-color: $white;
  1965. border-radius: 4px 4px 0 0;
  1966. flex: 0 1 auto;
  1967. }
  1968. .autosuggest-textarea__textarea {
  1969. overflow-y: hidden;
  1970. }
  1971. .compose-form__upload-thumbnail {
  1972. height: 80px;
  1973. }
  1974. }
  1975. .navigation-panel {
  1976. margin-top: 10px;
  1977. margin-bottom: 10px;
  1978. height: calc(100% - 20px);
  1979. overflow-y: auto;
  1980. display: flex;
  1981. flex-direction: column;
  1982. & > a {
  1983. flex: 0 0 auto;
  1984. }
  1985. hr {
  1986. flex: 0 0 auto;
  1987. border: 0;
  1988. background: transparent;
  1989. border-top: 1px solid lighten($ui-base-color, 4%);
  1990. margin: 10px 0;
  1991. }
  1992. .flex-spacer {
  1993. background: transparent;
  1994. }
  1995. }
  1996. .drawer__pager {
  1997. box-sizing: border-box;
  1998. padding: 0;
  1999. flex-grow: 1;
  2000. position: relative;
  2001. overflow: hidden;
  2002. display: flex;
  2003. }
  2004. .drawer__inner {
  2005. position: absolute;
  2006. top: 0;
  2007. left: 0;
  2008. background: lighten($ui-base-color, 13%);
  2009. box-sizing: border-box;
  2010. padding: 0;
  2011. display: flex;
  2012. flex-direction: column;
  2013. overflow: hidden;
  2014. overflow-y: auto;
  2015. width: 100%;
  2016. height: 100%;
  2017. &.darker {
  2018. background: $ui-base-color;
  2019. }
  2020. }
  2021. .drawer__inner__mastodon {
  2022. 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;
  2023. flex: 1;
  2024. min-height: 47px;
  2025. display: none;
  2026. > img {
  2027. display: block;
  2028. object-fit: contain;
  2029. object-position: bottom left;
  2030. width: 100%;
  2031. height: 100%;
  2032. pointer-events: none;
  2033. user-drag: none;
  2034. user-select: none;
  2035. }
  2036. @media screen and (min-height: 640px) {
  2037. display: block;
  2038. }
  2039. }
  2040. .pseudo-drawer {
  2041. background: lighten($ui-base-color, 13%);
  2042. font-size: 13px;
  2043. text-align: left;
  2044. }
  2045. .drawer__header {
  2046. flex: 0 0 auto;
  2047. font-size: 16px;
  2048. background: lighten($ui-base-color, 8%);
  2049. margin-bottom: 10px;
  2050. display: flex;
  2051. flex-direction: row;
  2052. a {
  2053. transition: background 100ms ease-in;
  2054. &:hover {
  2055. background: lighten($ui-base-color, 3%);
  2056. transition: background 200ms ease-out;
  2057. }
  2058. }
  2059. }
  2060. .scrollable {
  2061. overflow-y: scroll;
  2062. overflow-x: hidden;
  2063. flex: 1 1 auto;
  2064. -webkit-overflow-scrolling: touch;
  2065. will-change: transform; // improves perf in mobile Chrome
  2066. &.optionally-scrollable {
  2067. overflow-y: auto;
  2068. }
  2069. @supports(display: grid) { // hack to fix Chrome <57
  2070. contain: strict;
  2071. }
  2072. &--flex {
  2073. display: flex;
  2074. flex-direction: column;
  2075. }
  2076. &__append {
  2077. flex: 1 1 auto;
  2078. position: relative;
  2079. min-height: 120px;
  2080. }
  2081. }
  2082. .scrollable.fullscreen {
  2083. @supports(display: grid) { // hack to fix Chrome <57
  2084. contain: none;
  2085. }
  2086. }
  2087. .column-back-button {
  2088. box-sizing: border-box;
  2089. width: 100%;
  2090. background: lighten($ui-base-color, 4%);
  2091. color: $highlight-text-color;
  2092. cursor: pointer;
  2093. flex: 0 0 auto;
  2094. font-size: 16px;
  2095. line-height: inherit;
  2096. border: 0;
  2097. text-align: unset;
  2098. padding: 15px;
  2099. margin: 0;
  2100. z-index: 3;
  2101. outline: 0;
  2102. &:hover {
  2103. text-decoration: underline;
  2104. }
  2105. }
  2106. .column-header__back-button {
  2107. background: lighten($ui-base-color, 4%);
  2108. border: 0;
  2109. font-family: inherit;
  2110. color: $highlight-text-color;
  2111. cursor: pointer;
  2112. white-space: nowrap;
  2113. font-size: 16px;
  2114. padding: 0 5px 0 0;
  2115. z-index: 3;
  2116. &:hover {
  2117. text-decoration: underline;
  2118. }
  2119. &:last-child {
  2120. padding: 0 15px 0 0;
  2121. }
  2122. }
  2123. .column-back-button__icon {
  2124. display: inline-block;
  2125. margin-right: 5px;
  2126. }
  2127. .column-back-button--slim {
  2128. position: relative;
  2129. }
  2130. .column-back-button--slim-button {
  2131. cursor: pointer;
  2132. flex: 0 0 auto;
  2133. font-size: 16px;
  2134. padding: 15px;
  2135. position: absolute;
  2136. right: 0;
  2137. top: -48px;
  2138. }
  2139. .react-toggle {
  2140. display: inline-block;
  2141. position: relative;
  2142. cursor: pointer;
  2143. background-color: transparent;
  2144. border: 0;
  2145. padding: 0;
  2146. user-select: none;
  2147. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  2148. -webkit-tap-highlight-color: transparent;
  2149. }
  2150. .react-toggle-screenreader-only {
  2151. border: 0;
  2152. clip: rect(0 0 0 0);
  2153. height: 1px;
  2154. margin: -1px;
  2155. overflow: hidden;
  2156. padding: 0;
  2157. position: absolute;
  2158. width: 1px;
  2159. }
  2160. .react-toggle--disabled {
  2161. cursor: not-allowed;
  2162. opacity: 0.5;
  2163. transition: opacity 0.25s;
  2164. }
  2165. .react-toggle-track {
  2166. width: 50px;
  2167. height: 24px;
  2168. padding: 0;
  2169. border-radius: 30px;
  2170. background-color: $ui-base-color;
  2171. transition: background-color 0.2s ease;
  2172. }
  2173. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  2174. background-color: darken($ui-base-color, 10%);
  2175. }
  2176. .react-toggle--checked .react-toggle-track {
  2177. background-color: $ui-highlight-color;
  2178. }
  2179. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  2180. background-color: lighten($ui-highlight-color, 10%);
  2181. }
  2182. .react-toggle-track-check {
  2183. position: absolute;
  2184. width: 14px;
  2185. height: 10px;
  2186. top: 0;
  2187. bottom: 0;
  2188. margin-top: auto;
  2189. margin-bottom: auto;
  2190. line-height: 0;
  2191. left: 8px;
  2192. opacity: 0;
  2193. transition: opacity 0.25s ease;
  2194. }
  2195. .react-toggle--checked .react-toggle-track-check {
  2196. opacity: 1;
  2197. transition: opacity 0.25s ease;
  2198. }
  2199. .react-toggle-track-x {
  2200. position: absolute;
  2201. width: 10px;
  2202. height: 10px;
  2203. top: 0;
  2204. bottom: 0;
  2205. margin-top: auto;
  2206. margin-bottom: auto;
  2207. line-height: 0;
  2208. right: 10px;
  2209. opacity: 1;
  2210. transition: opacity 0.25s ease;
  2211. }
  2212. .react-toggle--checked .react-toggle-track-x {
  2213. opacity: 0;
  2214. }
  2215. .react-toggle-thumb {
  2216. position: absolute;
  2217. top: 1px;
  2218. left: 1px;
  2219. width: 22px;
  2220. height: 22px;
  2221. border: 1px solid $ui-base-color;
  2222. border-radius: 50%;
  2223. background-color: darken($simple-background-color, 2%);
  2224. box-sizing: border-box;
  2225. transition: all 0.25s ease;
  2226. transition-property: border-color, left;
  2227. }
  2228. .react-toggle--checked .react-toggle-thumb {
  2229. left: 27px;
  2230. border-color: $ui-highlight-color;
  2231. }
  2232. .column-link {
  2233. background: lighten($ui-base-color, 8%);
  2234. color: $primary-text-color;
  2235. display: block;
  2236. font-size: 16px;
  2237. padding: 15px;
  2238. text-decoration: none;
  2239. &:hover,
  2240. &:focus,
  2241. &:active {
  2242. background: lighten($ui-base-color, 11%);
  2243. }
  2244. &:focus {
  2245. outline: 0;
  2246. }
  2247. &--transparent {
  2248. background: transparent;
  2249. color: $ui-secondary-color;
  2250. &:hover,
  2251. &:focus,
  2252. &:active {
  2253. background: transparent;
  2254. color: $primary-text-color;
  2255. }
  2256. &.active {
  2257. color: $ui-highlight-color;
  2258. }
  2259. }
  2260. }
  2261. .column-link__icon {
  2262. display: inline-block;
  2263. margin-right: 5px;
  2264. }
  2265. .column-link__badge {
  2266. display: inline-block;
  2267. border-radius: 4px;
  2268. font-size: 12px;
  2269. line-height: 19px;
  2270. font-weight: 500;
  2271. background: $ui-base-color;
  2272. padding: 4px 8px;
  2273. margin: -6px 10px;
  2274. }
  2275. .column-subheading {
  2276. background: $ui-base-color;
  2277. color: $dark-text-color;
  2278. padding: 8px 20px;
  2279. font-size: 12px;
  2280. font-weight: 500;
  2281. text-transform: uppercase;
  2282. cursor: default;
  2283. }
  2284. .getting-started__wrapper,
  2285. .getting-started,
  2286. .flex-spacer {
  2287. background: $ui-base-color;
  2288. }
  2289. .getting-started__wrapper {
  2290. flex: 0 0 auto;
  2291. }
  2292. .flex-spacer {
  2293. flex: 1 1 auto;
  2294. }
  2295. .getting-started {
  2296. color: $dark-text-color;
  2297. overflow: auto;
  2298. &__footer {
  2299. flex: 0 0 auto;
  2300. padding: 10px;
  2301. padding-top: 20px;
  2302. ul {
  2303. margin-bottom: 10px;
  2304. }
  2305. ul li {
  2306. display: inline;
  2307. }
  2308. p {
  2309. color: $dark-text-color;
  2310. font-size: 13px;
  2311. margin-bottom: 20px;
  2312. a {
  2313. color: $dark-text-color;
  2314. text-decoration: underline;
  2315. }
  2316. }
  2317. a {
  2318. text-decoration: none;
  2319. color: $darker-text-color;
  2320. &:hover,
  2321. &:focus,
  2322. &:active {
  2323. text-decoration: underline;
  2324. }
  2325. }
  2326. }
  2327. &__trends {
  2328. flex: 0 1 auto;
  2329. opacity: 1;
  2330. animation: fade 150ms linear;
  2331. margin-top: 10px;
  2332. h4 {
  2333. font-size: 12px;
  2334. text-transform: uppercase;
  2335. color: $darker-text-color;
  2336. padding: 10px;
  2337. font-weight: 500;
  2338. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2339. }
  2340. @media screen and (max-height: 810px) {
  2341. .trends__item:nth-child(3) {
  2342. display: none;
  2343. }
  2344. }
  2345. @media screen and (max-height: 720px) {
  2346. .trends__item:nth-child(2) {
  2347. display: none;
  2348. }
  2349. }
  2350. @media screen and (max-height: 670px) {
  2351. display: none;
  2352. }
  2353. .trends__item {
  2354. border-bottom: 0;
  2355. padding: 10px;
  2356. &__current {
  2357. color: $darker-text-color;
  2358. }
  2359. }
  2360. }
  2361. }
  2362. .keyboard-shortcuts {
  2363. padding: 8px 0 0;
  2364. overflow: hidden;
  2365. thead {
  2366. position: absolute;
  2367. left: -9999px;
  2368. }
  2369. td {
  2370. padding: 0 10px 8px;
  2371. }
  2372. kbd {
  2373. display: inline-block;
  2374. padding: 3px 5px;
  2375. background-color: lighten($ui-base-color, 8%);
  2376. border: 1px solid darken($ui-base-color, 4%);
  2377. }
  2378. }
  2379. .setting-text {
  2380. display: block;
  2381. box-sizing: border-box;
  2382. width: 100%;
  2383. margin: 0;
  2384. color: $inverted-text-color;
  2385. background: $simple-background-color;
  2386. padding: 10px;
  2387. font-family: inherit;
  2388. font-size: 14px;
  2389. resize: vertical;
  2390. border: 0;
  2391. outline: 0;
  2392. border-radius: 4px;
  2393. &:focus {
  2394. outline: 0;
  2395. }
  2396. @media screen and (max-width: 600px) {
  2397. font-size: 16px;
  2398. }
  2399. }
  2400. .no-reduce-motion button.icon-button i.fa-retweet {
  2401. background-position: 0 0;
  2402. height: 19px;
  2403. transition: background-position 0.9s steps(10);
  2404. transition-duration: 0s;
  2405. vertical-align: middle;
  2406. width: 22px;
  2407. &::before {
  2408. display: none !important;
  2409. }
  2410. }
  2411. .no-reduce-motion button.icon-button.active i.fa-retweet {
  2412. transition-duration: 0.9s;
  2413. background-position: 0 100%;
  2414. }
  2415. .reduce-motion button.icon-button i.fa-retweet {
  2416. color: $action-button-color;
  2417. transition: color 100ms ease-in;
  2418. }
  2419. .reduce-motion button.icon-button.active i.fa-retweet {
  2420. color: $highlight-text-color;
  2421. }
  2422. .status-card {
  2423. display: flex;
  2424. font-size: 14px;
  2425. border: 1px solid lighten($ui-base-color, 8%);
  2426. border-radius: 4px;
  2427. color: $dark-text-color;
  2428. margin-top: 14px;
  2429. text-decoration: none;
  2430. overflow: hidden;
  2431. &__actions {
  2432. bottom: 0;
  2433. left: 0;
  2434. position: absolute;
  2435. right: 0;
  2436. top: 0;
  2437. display: flex;
  2438. justify-content: center;
  2439. align-items: center;
  2440. & > div {
  2441. background: rgba($base-shadow-color, 0.6);
  2442. border-radius: 8px;
  2443. padding: 12px 9px;
  2444. flex: 0 0 auto;
  2445. display: flex;
  2446. justify-content: center;
  2447. align-items: center;
  2448. }
  2449. button,
  2450. a {
  2451. display: inline;
  2452. color: $secondary-text-color;
  2453. background: transparent;
  2454. border: 0;
  2455. padding: 0 8px;
  2456. text-decoration: none;
  2457. font-size: 18px;
  2458. line-height: 18px;
  2459. &:hover,
  2460. &:active,
  2461. &:focus {
  2462. color: $primary-text-color;
  2463. }
  2464. }
  2465. a {
  2466. font-size: 19px;
  2467. position: relative;
  2468. bottom: -1px;
  2469. }
  2470. }
  2471. }
  2472. a.status-card {
  2473. cursor: pointer;
  2474. &:hover {
  2475. background: lighten($ui-base-color, 8%);
  2476. }
  2477. }
  2478. .status-card-photo {
  2479. cursor: zoom-in;
  2480. display: block;
  2481. text-decoration: none;
  2482. width: 100%;
  2483. height: auto;
  2484. margin: 0;
  2485. }
  2486. .status-card-video {
  2487. iframe {
  2488. width: 100%;
  2489. height: 100%;
  2490. }
  2491. }
  2492. .status-card__title {
  2493. display: block;
  2494. font-weight: 500;
  2495. margin-bottom: 5px;
  2496. color: $darker-text-color;
  2497. overflow: hidden;
  2498. text-overflow: ellipsis;
  2499. white-space: nowrap;
  2500. text-decoration: none;
  2501. }
  2502. .status-card__content {
  2503. flex: 1 1 auto;
  2504. overflow: hidden;
  2505. padding: 14px 14px 14px 8px;
  2506. }
  2507. .status-card__description {
  2508. color: $darker-text-color;
  2509. }
  2510. .status-card__host {
  2511. display: block;
  2512. margin-top: 5px;
  2513. font-size: 13px;
  2514. overflow: hidden;
  2515. text-overflow: ellipsis;
  2516. white-space: nowrap;
  2517. }
  2518. .status-card__image {
  2519. flex: 0 0 100px;
  2520. background: lighten($ui-base-color, 8%);
  2521. position: relative;
  2522. & > .fa {
  2523. font-size: 21px;
  2524. position: absolute;
  2525. transform-origin: 50% 50%;
  2526. top: 50%;
  2527. left: 50%;
  2528. transform: translate(-50%, -50%);
  2529. }
  2530. }
  2531. .status-card.horizontal {
  2532. display: block;
  2533. .status-card__image {
  2534. width: 100%;
  2535. }
  2536. .status-card__image-image {
  2537. border-radius: 4px 4px 0 0;
  2538. }
  2539. .status-card__title {
  2540. white-space: inherit;
  2541. }
  2542. }
  2543. .status-card.compact {
  2544. border-color: lighten($ui-base-color, 4%);
  2545. &.interactive {
  2546. border: 0;
  2547. }
  2548. .status-card__content {
  2549. padding: 8px;
  2550. padding-top: 10px;
  2551. }
  2552. .status-card__title {
  2553. white-space: nowrap;
  2554. }
  2555. .status-card__image {
  2556. flex: 0 0 60px;
  2557. }
  2558. }
  2559. a.status-card.compact:hover {
  2560. background-color: lighten($ui-base-color, 4%);
  2561. }
  2562. .status-card__image-image {
  2563. border-radius: 4px 0 0 4px;
  2564. display: block;
  2565. margin: 0;
  2566. width: 100%;
  2567. height: 100%;
  2568. object-fit: cover;
  2569. background-size: cover;
  2570. background-position: center center;
  2571. }
  2572. .load-more {
  2573. display: block;
  2574. color: $dark-text-color;
  2575. background-color: transparent;
  2576. border: 0;
  2577. font-size: inherit;
  2578. text-align: center;
  2579. line-height: inherit;
  2580. margin: 0;
  2581. padding: 15px;
  2582. box-sizing: border-box;
  2583. width: 100%;
  2584. clear: both;
  2585. text-decoration: none;
  2586. &:hover {
  2587. background: lighten($ui-base-color, 2%);
  2588. }
  2589. }
  2590. .load-gap {
  2591. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2592. }
  2593. .regeneration-indicator {
  2594. text-align: center;
  2595. font-size: 16px;
  2596. font-weight: 500;
  2597. color: $dark-text-color;
  2598. background: $ui-base-color;
  2599. cursor: default;
  2600. display: flex;
  2601. flex: 1 1 auto;
  2602. align-items: center;
  2603. justify-content: center;
  2604. padding: 20px;
  2605. & > div {
  2606. width: 100%;
  2607. background: transparent;
  2608. padding-top: 0;
  2609. }
  2610. &__figure {
  2611. background: url('../images/elephant_ui_working.svg') no-repeat center 0;
  2612. width: 100%;
  2613. height: 160px;
  2614. background-size: contain;
  2615. position: absolute;
  2616. top: 50%;
  2617. left: 50%;
  2618. transform: translate(-50%, -50%);
  2619. }
  2620. &.missing-indicator {
  2621. padding-top: 20px + 48px;
  2622. .regeneration-indicator__figure {
  2623. background-image: url('../images/elephant_ui_disappointed.svg');
  2624. }
  2625. }
  2626. &__label {
  2627. margin-top: 200px;
  2628. strong {
  2629. display: block;
  2630. margin-bottom: 10px;
  2631. color: $dark-text-color;
  2632. }
  2633. span {
  2634. font-size: 15px;
  2635. font-weight: 400;
  2636. }
  2637. }
  2638. }
  2639. .column-header__wrapper {
  2640. position: relative;
  2641. flex: 0 0 auto;
  2642. &.active {
  2643. &::before {
  2644. display: block;
  2645. content: "";
  2646. position: absolute;
  2647. top: 35px;
  2648. left: 0;
  2649. right: 0;
  2650. margin: 0 auto;
  2651. width: 60%;
  2652. pointer-events: none;
  2653. height: 28px;
  2654. z-index: 1;
  2655. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  2656. }
  2657. }
  2658. }
  2659. .column-header {
  2660. display: flex;
  2661. font-size: 16px;
  2662. background: lighten($ui-base-color, 4%);
  2663. flex: 0 0 auto;
  2664. cursor: pointer;
  2665. position: relative;
  2666. z-index: 2;
  2667. outline: 0;
  2668. overflow: hidden;
  2669. & > button {
  2670. margin: 0;
  2671. border: 0;
  2672. padding: 15px 0 15px 15px;
  2673. color: inherit;
  2674. background: transparent;
  2675. font: inherit;
  2676. text-align: left;
  2677. text-overflow: ellipsis;
  2678. overflow: hidden;
  2679. white-space: nowrap;
  2680. flex: 1;
  2681. }
  2682. & > .column-header__back-button {
  2683. color: $highlight-text-color;
  2684. }
  2685. &.active {
  2686. box-shadow: 0 1px 0 rgba($highlight-text-color, 0.3);
  2687. .column-header__icon {
  2688. color: $highlight-text-color;
  2689. text-shadow: 0 0 10px rgba($highlight-text-color, 0.4);
  2690. }
  2691. }
  2692. &:focus,
  2693. &:active {
  2694. outline: 0;
  2695. }
  2696. }
  2697. .column-header__buttons {
  2698. height: 48px;
  2699. display: flex;
  2700. }
  2701. .column-header__links {
  2702. margin-bottom: 14px;
  2703. }
  2704. .column-header__links .text-btn {
  2705. margin-right: 10px;
  2706. }
  2707. .column-header__button {
  2708. background: lighten($ui-base-color, 4%);
  2709. border: 0;
  2710. color: $darker-text-color;
  2711. cursor: pointer;
  2712. font-size: 16px;
  2713. padding: 0 15px;
  2714. &:hover {
  2715. color: lighten($darker-text-color, 7%);
  2716. }
  2717. &.active {
  2718. color: $primary-text-color;
  2719. background: lighten($ui-base-color, 8%);
  2720. &:hover {
  2721. color: $primary-text-color;
  2722. background: lighten($ui-base-color, 8%);
  2723. }
  2724. }
  2725. }
  2726. .column-header__collapsible {
  2727. max-height: 70vh;
  2728. overflow: hidden;
  2729. overflow-y: auto;
  2730. color: $darker-text-color;
  2731. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  2732. opacity: 1;
  2733. &.collapsed {
  2734. max-height: 0;
  2735. opacity: 0.5;
  2736. }
  2737. &.animating {
  2738. overflow-y: hidden;
  2739. }
  2740. hr {
  2741. height: 0;
  2742. background: transparent;
  2743. border: 0;
  2744. border-top: 1px solid lighten($ui-base-color, 12%);
  2745. margin: 10px 0;
  2746. }
  2747. }
  2748. .column-header__collapsible-inner {
  2749. background: lighten($ui-base-color, 8%);
  2750. padding: 15px;
  2751. }
  2752. .column-header__setting-btn {
  2753. &:hover {
  2754. color: $darker-text-color;
  2755. text-decoration: underline;
  2756. }
  2757. }
  2758. .column-header__setting-arrows {
  2759. float: right;
  2760. .column-header__setting-btn {
  2761. padding: 0 10px;
  2762. &:last-child {
  2763. padding-right: 0;
  2764. }
  2765. }
  2766. }
  2767. .text-btn {
  2768. display: inline-block;
  2769. padding: 0;
  2770. font-family: inherit;
  2771. font-size: inherit;
  2772. color: inherit;
  2773. border: 0;
  2774. background: transparent;
  2775. cursor: pointer;
  2776. }
  2777. .column-header__icon {
  2778. display: inline-block;
  2779. margin-right: 5px;
  2780. }
  2781. .loading-indicator {
  2782. color: $dark-text-color;
  2783. font-size: 12px;
  2784. font-weight: 400;
  2785. text-transform: uppercase;
  2786. overflow: visible;
  2787. position: absolute;
  2788. top: 50%;
  2789. left: 50%;
  2790. transform: translate(-50%, -50%);
  2791. span {
  2792. display: block;
  2793. float: left;
  2794. margin-left: 50%;
  2795. transform: translateX(-50%);
  2796. margin: 82px 0 0 50%;
  2797. white-space: nowrap;
  2798. }
  2799. }
  2800. .loading-indicator__figure {
  2801. position: absolute;
  2802. top: 50%;
  2803. left: 50%;
  2804. transform: translate(-50%, -50%);
  2805. width: 42px;
  2806. height: 42px;
  2807. box-sizing: border-box;
  2808. background-color: transparent;
  2809. border: 0 solid lighten($ui-base-color, 26%);
  2810. border-width: 6px;
  2811. border-radius: 50%;
  2812. }
  2813. .no-reduce-motion .loading-indicator span {
  2814. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  2815. }
  2816. .no-reduce-motion .loading-indicator__figure {
  2817. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  2818. }
  2819. @keyframes loader-figure {
  2820. 0% {
  2821. width: 0;
  2822. height: 0;
  2823. background-color: lighten($ui-base-color, 26%);
  2824. }
  2825. 29% {
  2826. background-color: lighten($ui-base-color, 26%);
  2827. }
  2828. 30% {
  2829. width: 42px;
  2830. height: 42px;
  2831. background-color: transparent;
  2832. border-width: 21px;
  2833. opacity: 1;
  2834. }
  2835. 100% {
  2836. width: 42px;
  2837. height: 42px;
  2838. border-width: 0;
  2839. opacity: 0;
  2840. background-color: transparent;
  2841. }
  2842. }
  2843. @keyframes loader-label {
  2844. 0% { opacity: 0.25; }
  2845. 30% { opacity: 1; }
  2846. 100% { opacity: 0.25; }
  2847. }
  2848. .video-error-cover {
  2849. align-items: center;
  2850. background: $base-overlay-background;
  2851. color: $primary-text-color;
  2852. cursor: pointer;
  2853. display: flex;
  2854. flex-direction: column;
  2855. height: 100%;
  2856. justify-content: center;
  2857. margin-top: 8px;
  2858. position: relative;
  2859. text-align: center;
  2860. z-index: 100;
  2861. }
  2862. .media-spoiler {
  2863. background: $base-overlay-background;
  2864. color: $darker-text-color;
  2865. border: 0;
  2866. padding: 0;
  2867. width: 100%;
  2868. height: 100%;
  2869. border-radius: 4px;
  2870. appearance: none;
  2871. &:hover,
  2872. &:active,
  2873. &:focus {
  2874. padding: 0;
  2875. color: lighten($darker-text-color, 8%);
  2876. }
  2877. }
  2878. .media-spoiler__warning {
  2879. display: block;
  2880. font-size: 14px;
  2881. }
  2882. .media-spoiler__trigger {
  2883. display: block;
  2884. font-size: 11px;
  2885. font-weight: 700;
  2886. }
  2887. .spoiler-button {
  2888. top: 0;
  2889. left: 0;
  2890. width: 100%;
  2891. height: 100%;
  2892. position: absolute;
  2893. z-index: 100;
  2894. &--minified {
  2895. display: block;
  2896. left: 4px;
  2897. top: 4px;
  2898. width: auto;
  2899. height: auto;
  2900. }
  2901. &--hidden {
  2902. display: none;
  2903. }
  2904. &__overlay {
  2905. display: block;
  2906. background: transparent;
  2907. width: 100%;
  2908. height: 100%;
  2909. border: 0;
  2910. &__label {
  2911. display: inline-block;
  2912. background: rgba($base-overlay-background, 0.5);
  2913. border-radius: 8px;
  2914. padding: 8px 12px;
  2915. color: $primary-text-color;
  2916. font-weight: 500;
  2917. font-size: 14px;
  2918. }
  2919. &:hover,
  2920. &:focus,
  2921. &:active {
  2922. .spoiler-button__overlay__label {
  2923. background: rgba($base-overlay-background, 0.8);
  2924. }
  2925. }
  2926. }
  2927. }
  2928. .modal-container--preloader {
  2929. background: lighten($ui-base-color, 8%);
  2930. }
  2931. .account--panel {
  2932. background: lighten($ui-base-color, 4%);
  2933. border-top: 1px solid lighten($ui-base-color, 8%);
  2934. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2935. display: flex;
  2936. flex-direction: row;
  2937. padding: 10px 0;
  2938. }
  2939. .account--panel__button,
  2940. .detailed-status__button {
  2941. flex: 1 1 auto;
  2942. text-align: center;
  2943. }
  2944. .column-settings__outer {
  2945. background: lighten($ui-base-color, 8%);
  2946. padding: 15px;
  2947. }
  2948. .column-settings__section {
  2949. color: $darker-text-color;
  2950. cursor: default;
  2951. display: block;
  2952. font-weight: 500;
  2953. margin-bottom: 10px;
  2954. }
  2955. .column-settings__hashtags {
  2956. .column-settings__row {
  2957. margin-bottom: 15px;
  2958. }
  2959. .column-select {
  2960. &__control {
  2961. @include search-input;
  2962. }
  2963. &__placeholder {
  2964. color: $dark-text-color;
  2965. padding-left: 2px;
  2966. font-size: 12px;
  2967. }
  2968. &__value-container {
  2969. padding-left: 6px;
  2970. }
  2971. &__multi-value {
  2972. background: lighten($ui-base-color, 8%);
  2973. &__remove {
  2974. cursor: pointer;
  2975. &:hover,
  2976. &:active,
  2977. &:focus {
  2978. background: lighten($ui-base-color, 12%);
  2979. color: lighten($darker-text-color, 4%);
  2980. }
  2981. }
  2982. }
  2983. &__multi-value__label,
  2984. &__input {
  2985. color: $darker-text-color;
  2986. }
  2987. &__clear-indicator,
  2988. &__dropdown-indicator {
  2989. cursor: pointer;
  2990. transition: none;
  2991. color: $dark-text-color;
  2992. &:hover,
  2993. &:active,
  2994. &:focus {
  2995. color: lighten($dark-text-color, 4%);
  2996. }
  2997. }
  2998. &__indicator-separator {
  2999. background-color: lighten($ui-base-color, 8%);
  3000. }
  3001. &__menu {
  3002. @include search-popout;
  3003. padding: 0;
  3004. background: $ui-secondary-color;
  3005. }
  3006. &__menu-list {
  3007. padding: 6px;
  3008. }
  3009. &__option {
  3010. color: $inverted-text-color;
  3011. border-radius: 4px;
  3012. font-size: 14px;
  3013. &--is-focused,
  3014. &--is-selected {
  3015. background: darken($ui-secondary-color, 10%);
  3016. }
  3017. }
  3018. }
  3019. }
  3020. .column-settings__row {
  3021. .text-btn {
  3022. margin-bottom: 15px;
  3023. }
  3024. }
  3025. .relationship-tag {
  3026. color: $primary-text-color;
  3027. margin-bottom: 4px;
  3028. display: block;
  3029. vertical-align: top;
  3030. background-color: $base-overlay-background;
  3031. text-transform: uppercase;
  3032. font-size: 11px;
  3033. font-weight: 500;
  3034. padding: 4px;
  3035. border-radius: 4px;
  3036. opacity: 0.7;
  3037. &:hover {
  3038. opacity: 1;
  3039. }
  3040. }
  3041. .setting-toggle {
  3042. display: block;
  3043. line-height: 24px;
  3044. }
  3045. .setting-toggle__label {
  3046. color: $darker-text-color;
  3047. display: inline-block;
  3048. margin-bottom: 14px;
  3049. margin-left: 8px;
  3050. vertical-align: middle;
  3051. }
  3052. .empty-column-indicator,
  3053. .error-column {
  3054. color: $dark-text-color;
  3055. background: $ui-base-color;
  3056. text-align: center;
  3057. padding: 20px;
  3058. font-size: 15px;
  3059. font-weight: 400;
  3060. cursor: default;
  3061. display: flex;
  3062. flex: 1 1 auto;
  3063. align-items: center;
  3064. justify-content: center;
  3065. @supports(display: grid) { // hack to fix Chrome <57
  3066. contain: strict;
  3067. }
  3068. & > span {
  3069. max-width: 400px;
  3070. }
  3071. a {
  3072. color: $highlight-text-color;
  3073. text-decoration: none;
  3074. &:hover {
  3075. text-decoration: underline;
  3076. }
  3077. }
  3078. }
  3079. .error-column {
  3080. flex-direction: column;
  3081. }
  3082. @keyframes heartbeat {
  3083. from {
  3084. transform: scale(1);
  3085. animation-timing-function: ease-out;
  3086. }
  3087. 10% {
  3088. transform: scale(0.91);
  3089. animation-timing-function: ease-in;
  3090. }
  3091. 17% {
  3092. transform: scale(0.98);
  3093. animation-timing-function: ease-out;
  3094. }
  3095. 33% {
  3096. transform: scale(0.87);
  3097. animation-timing-function: ease-in;
  3098. }
  3099. 45% {
  3100. transform: scale(1);
  3101. animation-timing-function: ease-out;
  3102. }
  3103. }
  3104. .no-reduce-motion .pulse-loading {
  3105. transform-origin: center center;
  3106. animation: heartbeat 1.5s ease-in-out infinite both;
  3107. }
  3108. @keyframes shake-bottom {
  3109. 0%,
  3110. 100% {
  3111. transform: rotate(0deg);
  3112. transform-origin: 50% 100%;
  3113. }
  3114. 10% {
  3115. transform: rotate(2deg);
  3116. }
  3117. 20%,
  3118. 40%,
  3119. 60% {
  3120. transform: rotate(-4deg);
  3121. }
  3122. 30%,
  3123. 50%,
  3124. 70% {
  3125. transform: rotate(4deg);
  3126. }
  3127. 80% {
  3128. transform: rotate(-2deg);
  3129. }
  3130. 90% {
  3131. transform: rotate(2deg);
  3132. }
  3133. }
  3134. .no-reduce-motion .shake-bottom {
  3135. transform-origin: 50% 100%;
  3136. animation: shake-bottom 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) 2s 2 both;
  3137. }
  3138. .emoji-picker-dropdown__menu {
  3139. background: $simple-background-color;
  3140. position: absolute;
  3141. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  3142. border-radius: 4px;
  3143. margin-top: 5px;
  3144. z-index: 2;
  3145. .emoji-mart-scroll {
  3146. transition: opacity 200ms ease;
  3147. }
  3148. &.selecting .emoji-mart-scroll {
  3149. opacity: 0.5;
  3150. }
  3151. }
  3152. .emoji-picker-dropdown__modifiers {
  3153. position: absolute;
  3154. top: 60px;
  3155. right: 11px;
  3156. cursor: pointer;
  3157. }
  3158. .emoji-picker-dropdown__modifiers__menu {
  3159. position: absolute;
  3160. z-index: 4;
  3161. top: -4px;
  3162. left: -8px;
  3163. background: $simple-background-color;
  3164. border-radius: 4px;
  3165. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  3166. overflow: hidden;
  3167. button {
  3168. display: block;
  3169. cursor: pointer;
  3170. border: 0;
  3171. padding: 4px 8px;
  3172. background: transparent;
  3173. &:hover,
  3174. &:focus,
  3175. &:active {
  3176. background: rgba($ui-secondary-color, 0.4);
  3177. }
  3178. }
  3179. .emoji-mart-emoji {
  3180. height: 22px;
  3181. }
  3182. }
  3183. .emoji-mart-emoji {
  3184. span {
  3185. background-repeat: no-repeat;
  3186. }
  3187. }
  3188. .upload-area {
  3189. align-items: center;
  3190. background: rgba($base-overlay-background, 0.8);
  3191. display: flex;
  3192. height: 100%;
  3193. justify-content: center;
  3194. left: 0;
  3195. opacity: 0;
  3196. position: absolute;
  3197. top: 0;
  3198. visibility: hidden;
  3199. width: 100%;
  3200. z-index: 2000;
  3201. * {
  3202. pointer-events: none;
  3203. }
  3204. }
  3205. .upload-area__drop {
  3206. width: 320px;
  3207. height: 160px;
  3208. display: flex;
  3209. box-sizing: border-box;
  3210. position: relative;
  3211. padding: 8px;
  3212. }
  3213. .upload-area__background {
  3214. position: absolute;
  3215. top: 0;
  3216. right: 0;
  3217. bottom: 0;
  3218. left: 0;
  3219. z-index: -1;
  3220. border-radius: 4px;
  3221. background: $ui-base-color;
  3222. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  3223. }
  3224. .upload-area__content {
  3225. flex: 1;
  3226. display: flex;
  3227. align-items: center;
  3228. justify-content: center;
  3229. color: $secondary-text-color;
  3230. font-size: 18px;
  3231. font-weight: 500;
  3232. border: 2px dashed $ui-base-lighter-color;
  3233. border-radius: 4px;
  3234. }
  3235. .upload-progress {
  3236. padding: 10px;
  3237. color: $lighter-text-color;
  3238. overflow: hidden;
  3239. display: flex;
  3240. .fa {
  3241. font-size: 34px;
  3242. margin-right: 10px;
  3243. }
  3244. span {
  3245. font-size: 12px;
  3246. text-transform: uppercase;
  3247. font-weight: 500;
  3248. display: block;
  3249. }
  3250. }
  3251. .upload-progess__message {
  3252. flex: 1 1 auto;
  3253. }
  3254. .upload-progress__backdrop {
  3255. width: 100%;
  3256. height: 6px;
  3257. border-radius: 6px;
  3258. background: $ui-base-lighter-color;
  3259. position: relative;
  3260. margin-top: 5px;
  3261. }
  3262. .upload-progress__tracker {
  3263. position: absolute;
  3264. left: 0;
  3265. top: 0;
  3266. height: 6px;
  3267. background: $ui-highlight-color;
  3268. border-radius: 6px;
  3269. }
  3270. .emoji-button {
  3271. display: block;
  3272. font-size: 24px;
  3273. line-height: 24px;
  3274. margin-left: 2px;
  3275. width: 24px;
  3276. outline: 0;
  3277. cursor: pointer;
  3278. &:active,
  3279. &:focus {
  3280. outline: 0 !important;
  3281. }
  3282. img {
  3283. filter: grayscale(100%);
  3284. opacity: 0.8;
  3285. display: block;
  3286. margin: 0;
  3287. width: 22px;
  3288. height: 22px;
  3289. margin-top: 2px;
  3290. }
  3291. &:hover,
  3292. &:active,
  3293. &:focus {
  3294. img {
  3295. opacity: 1;
  3296. filter: none;
  3297. }
  3298. }
  3299. }
  3300. .dropdown--active .emoji-button img {
  3301. opacity: 1;
  3302. filter: none;
  3303. }
  3304. .privacy-dropdown__dropdown {
  3305. position: absolute;
  3306. background: $simple-background-color;
  3307. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  3308. border-radius: 4px;
  3309. margin-left: 40px;
  3310. overflow: hidden;
  3311. &.top {
  3312. transform-origin: 50% 100%;
  3313. }
  3314. &.bottom {
  3315. transform-origin: 50% 0;
  3316. }
  3317. }
  3318. .privacy-dropdown__option {
  3319. color: $inverted-text-color;
  3320. padding: 10px;
  3321. cursor: pointer;
  3322. display: flex;
  3323. &:hover,
  3324. &.active {
  3325. background: $ui-highlight-color;
  3326. color: $primary-text-color;
  3327. outline: 0;
  3328. .privacy-dropdown__option__content {
  3329. color: $primary-text-color;
  3330. strong {
  3331. color: $primary-text-color;
  3332. }
  3333. }
  3334. }
  3335. &.active:hover {
  3336. background: lighten($ui-highlight-color, 4%);
  3337. }
  3338. }
  3339. .privacy-dropdown__option__icon {
  3340. display: flex;
  3341. align-items: center;
  3342. justify-content: center;
  3343. margin-right: 10px;
  3344. }
  3345. .privacy-dropdown__option__content {
  3346. flex: 1 1 auto;
  3347. color: $lighter-text-color;
  3348. strong {
  3349. font-weight: 500;
  3350. display: block;
  3351. color: $inverted-text-color;
  3352. @each $lang in $cjk-langs {
  3353. &:lang(#{$lang}) {
  3354. font-weight: 700;
  3355. }
  3356. }
  3357. }
  3358. }
  3359. .privacy-dropdown.active {
  3360. .privacy-dropdown__value {
  3361. background: $simple-background-color;
  3362. border-radius: 4px 4px 0 0;
  3363. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  3364. .icon-button {
  3365. transition: none;
  3366. }
  3367. &.active {
  3368. background: $ui-highlight-color;
  3369. .icon-button {
  3370. color: $primary-text-color;
  3371. }
  3372. }
  3373. }
  3374. &.top .privacy-dropdown__value {
  3375. border-radius: 0 0 4px 4px;
  3376. }
  3377. .privacy-dropdown__dropdown {
  3378. display: block;
  3379. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  3380. }
  3381. }
  3382. .search {
  3383. position: relative;
  3384. }
  3385. .search__input {
  3386. @include search-input;
  3387. display: block;
  3388. padding: 15px;
  3389. padding-right: 30px;
  3390. line-height: 18px;
  3391. font-size: 16px;
  3392. }
  3393. .search__icon {
  3394. &::-moz-focus-inner {
  3395. border: 0;
  3396. }
  3397. &::-moz-focus-inner,
  3398. &:focus {
  3399. outline: 0 !important;
  3400. }
  3401. .fa {
  3402. position: absolute;
  3403. top: 16px;
  3404. right: 10px;
  3405. z-index: 2;
  3406. display: inline-block;
  3407. opacity: 0;
  3408. transition: all 100ms linear;
  3409. transition-property: transform, opacity;
  3410. font-size: 18px;
  3411. width: 18px;
  3412. height: 18px;
  3413. color: $secondary-text-color;
  3414. cursor: default;
  3415. pointer-events: none;
  3416. &.active {
  3417. pointer-events: auto;
  3418. opacity: 0.3;
  3419. }
  3420. }
  3421. .fa-search {
  3422. transform: rotate(90deg);
  3423. &.active {
  3424. pointer-events: none;
  3425. transform: rotate(0deg);
  3426. }
  3427. }
  3428. .fa-times-circle {
  3429. top: 17px;
  3430. transform: rotate(0deg);
  3431. color: $action-button-color;
  3432. cursor: pointer;
  3433. &.active {
  3434. transform: rotate(90deg);
  3435. }
  3436. &:hover {
  3437. color: lighten($action-button-color, 7%);
  3438. }
  3439. }
  3440. }
  3441. .search-results__header {
  3442. color: $dark-text-color;
  3443. background: lighten($ui-base-color, 2%);
  3444. padding: 15px;
  3445. font-weight: 500;
  3446. font-size: 16px;
  3447. cursor: default;
  3448. .fa {
  3449. display: inline-block;
  3450. margin-right: 5px;
  3451. }
  3452. }
  3453. .search-results__section {
  3454. margin-bottom: 5px;
  3455. h5 {
  3456. background: darken($ui-base-color, 4%);
  3457. border-bottom: 1px solid lighten($ui-base-color, 8%);
  3458. cursor: default;
  3459. display: flex;
  3460. padding: 15px;
  3461. font-weight: 500;
  3462. font-size: 16px;
  3463. color: $dark-text-color;
  3464. .fa {
  3465. display: inline-block;
  3466. margin-right: 5px;
  3467. }
  3468. }
  3469. .account:last-child,
  3470. & > div:last-child .status {
  3471. border-bottom: 0;
  3472. }
  3473. }
  3474. .search-results__hashtag {
  3475. display: block;
  3476. padding: 10px;
  3477. color: $secondary-text-color;
  3478. text-decoration: none;
  3479. &:hover,
  3480. &:active,
  3481. &:focus {
  3482. color: lighten($secondary-text-color, 4%);
  3483. text-decoration: underline;
  3484. }
  3485. }
  3486. .search-results__info {
  3487. padding: 20px;
  3488. color: $darker-text-color;
  3489. text-align: center;
  3490. }
  3491. .modal-root {
  3492. position: relative;
  3493. transition: opacity 0.3s linear;
  3494. will-change: opacity;
  3495. z-index: 9999;
  3496. }
  3497. .modal-root__overlay {
  3498. position: fixed;
  3499. top: 0;
  3500. left: 0;
  3501. right: 0;
  3502. bottom: 0;
  3503. background: rgba($base-overlay-background, 0.7);
  3504. }
  3505. .modal-root__container {
  3506. position: fixed;
  3507. top: 0;
  3508. left: 0;
  3509. width: 100%;
  3510. height: 100%;
  3511. display: flex;
  3512. flex-direction: column;
  3513. align-items: center;
  3514. justify-content: center;
  3515. align-content: space-around;
  3516. z-index: 9999;
  3517. pointer-events: none;
  3518. user-select: none;
  3519. }
  3520. .modal-root__modal {
  3521. pointer-events: auto;
  3522. display: flex;
  3523. z-index: 9999;
  3524. }
  3525. .video-modal {
  3526. max-width: 100vw;
  3527. max-height: 100vh;
  3528. position: relative;
  3529. }
  3530. .media-modal {
  3531. width: 100%;
  3532. height: 100%;
  3533. position: relative;
  3534. .extended-video-player {
  3535. width: 100%;
  3536. height: 100%;
  3537. display: flex;
  3538. align-items: center;
  3539. justify-content: center;
  3540. video {
  3541. max-width: $media-modal-media-max-width;
  3542. max-height: $media-modal-media-max-height;
  3543. }
  3544. }
  3545. }
  3546. .media-modal__closer {
  3547. position: absolute;
  3548. top: 0;
  3549. left: 0;
  3550. right: 0;
  3551. bottom: 0;
  3552. }
  3553. .media-modal__navigation {
  3554. position: absolute;
  3555. top: 0;
  3556. left: 0;
  3557. right: 0;
  3558. bottom: 0;
  3559. pointer-events: none;
  3560. transition: opacity 0.3s linear;
  3561. will-change: opacity;
  3562. * {
  3563. pointer-events: auto;
  3564. }
  3565. &.media-modal__navigation--hidden {
  3566. opacity: 0;
  3567. * {
  3568. pointer-events: none;
  3569. }
  3570. }
  3571. }
  3572. .media-modal__nav {
  3573. background: rgba($base-overlay-background, 0.5);
  3574. box-sizing: border-box;
  3575. border: 0;
  3576. color: $primary-text-color;
  3577. cursor: pointer;
  3578. display: flex;
  3579. align-items: center;
  3580. font-size: 24px;
  3581. height: 20vmax;
  3582. margin: auto 0;
  3583. padding: 30px 15px;
  3584. position: absolute;
  3585. top: 0;
  3586. bottom: 0;
  3587. }
  3588. .media-modal__nav--left {
  3589. left: 0;
  3590. }
  3591. .media-modal__nav--right {
  3592. right: 0;
  3593. }
  3594. .media-modal__pagination {
  3595. width: 100%;
  3596. text-align: center;
  3597. position: absolute;
  3598. left: 0;
  3599. bottom: 20px;
  3600. pointer-events: none;
  3601. }
  3602. .media-modal__meta {
  3603. text-align: center;
  3604. position: absolute;
  3605. left: 0;
  3606. bottom: 20px;
  3607. width: 100%;
  3608. pointer-events: none;
  3609. &--shifted {
  3610. bottom: 62px;
  3611. }
  3612. a {
  3613. text-decoration: none;
  3614. font-weight: 500;
  3615. color: $ui-secondary-color;
  3616. &:hover,
  3617. &:focus,
  3618. &:active {
  3619. text-decoration: underline;
  3620. }
  3621. }
  3622. }
  3623. .media-modal__page-dot {
  3624. display: inline-block;
  3625. }
  3626. .media-modal__button {
  3627. background-color: $primary-text-color;
  3628. height: 12px;
  3629. width: 12px;
  3630. border-radius: 6px;
  3631. margin: 10px;
  3632. padding: 0;
  3633. border: 0;
  3634. font-size: 0;
  3635. }
  3636. .media-modal__button--active {
  3637. background-color: $highlight-text-color;
  3638. }
  3639. .media-modal__close {
  3640. position: absolute;
  3641. right: 8px;
  3642. top: 8px;
  3643. z-index: 100;
  3644. }
  3645. .onboarding-modal,
  3646. .error-modal,
  3647. .embed-modal {
  3648. background: $ui-secondary-color;
  3649. color: $inverted-text-color;
  3650. border-radius: 8px;
  3651. overflow: hidden;
  3652. display: flex;
  3653. flex-direction: column;
  3654. }
  3655. .error-modal__body {
  3656. height: 80vh;
  3657. width: 80vw;
  3658. max-width: 520px;
  3659. max-height: 420px;
  3660. position: relative;
  3661. & > div {
  3662. position: absolute;
  3663. top: 0;
  3664. left: 0;
  3665. width: 100%;
  3666. height: 100%;
  3667. box-sizing: border-box;
  3668. padding: 25px;
  3669. display: none;
  3670. flex-direction: column;
  3671. align-items: center;
  3672. justify-content: center;
  3673. display: flex;
  3674. opacity: 0;
  3675. user-select: text;
  3676. }
  3677. }
  3678. .error-modal__body {
  3679. display: flex;
  3680. flex-direction: column;
  3681. justify-content: center;
  3682. align-items: center;
  3683. text-align: center;
  3684. }
  3685. .onboarding-modal__paginator,
  3686. .error-modal__footer {
  3687. flex: 0 0 auto;
  3688. background: darken($ui-secondary-color, 8%);
  3689. display: flex;
  3690. padding: 25px;
  3691. & > div {
  3692. min-width: 33px;
  3693. }
  3694. .onboarding-modal__nav,
  3695. .error-modal__nav {
  3696. color: $lighter-text-color;
  3697. border: 0;
  3698. font-size: 14px;
  3699. font-weight: 500;
  3700. padding: 10px 25px;
  3701. line-height: inherit;
  3702. height: auto;
  3703. margin: -10px;
  3704. border-radius: 4px;
  3705. background-color: transparent;
  3706. &:hover,
  3707. &:focus,
  3708. &:active {
  3709. color: darken($lighter-text-color, 4%);
  3710. background-color: darken($ui-secondary-color, 16%);
  3711. }
  3712. &.onboarding-modal__done,
  3713. &.onboarding-modal__next {
  3714. color: $inverted-text-color;
  3715. &:hover,
  3716. &:focus,
  3717. &:active {
  3718. color: lighten($inverted-text-color, 4%);
  3719. }
  3720. }
  3721. }
  3722. }
  3723. .error-modal__footer {
  3724. justify-content: center;
  3725. }
  3726. .display-case {
  3727. text-align: center;
  3728. font-size: 15px;
  3729. margin-bottom: 15px;
  3730. &__label {
  3731. font-weight: 500;
  3732. color: $inverted-text-color;
  3733. margin-bottom: 5px;
  3734. text-transform: uppercase;
  3735. font-size: 12px;
  3736. }
  3737. &__case {
  3738. background: $ui-base-color;
  3739. color: $secondary-text-color;
  3740. font-weight: 500;
  3741. padding: 10px;
  3742. border-radius: 4px;
  3743. }
  3744. }
  3745. .onboard-sliders {
  3746. display: inline-block;
  3747. max-width: 30px;
  3748. max-height: auto;
  3749. margin-left: 10px;
  3750. }
  3751. .boost-modal,
  3752. .confirmation-modal,
  3753. .report-modal,
  3754. .actions-modal,
  3755. .mute-modal {
  3756. background: lighten($ui-secondary-color, 8%);
  3757. color: $inverted-text-color;
  3758. border-radius: 8px;
  3759. overflow: hidden;
  3760. max-width: 90vw;
  3761. width: 480px;
  3762. position: relative;
  3763. flex-direction: column;
  3764. .status__display-name {
  3765. display: block;
  3766. max-width: 100%;
  3767. padding-right: 25px;
  3768. }
  3769. .status__avatar {
  3770. height: 28px;
  3771. left: 10px;
  3772. position: absolute;
  3773. top: 10px;
  3774. width: 48px;
  3775. }
  3776. .status__content__spoiler-link {
  3777. color: lighten($secondary-text-color, 8%);
  3778. }
  3779. }
  3780. .actions-modal {
  3781. .status {
  3782. background: $white;
  3783. border-bottom-color: $ui-secondary-color;
  3784. padding-top: 10px;
  3785. padding-bottom: 10px;
  3786. }
  3787. .dropdown-menu__separator {
  3788. border-bottom-color: $ui-secondary-color;
  3789. }
  3790. }
  3791. .boost-modal__container {
  3792. overflow-x: scroll;
  3793. padding: 10px;
  3794. .status {
  3795. user-select: text;
  3796. border-bottom: 0;
  3797. }
  3798. }
  3799. .boost-modal__action-bar,
  3800. .confirmation-modal__action-bar,
  3801. .mute-modal__action-bar {
  3802. display: flex;
  3803. justify-content: space-between;
  3804. background: $ui-secondary-color;
  3805. padding: 10px;
  3806. line-height: 36px;
  3807. & > div {
  3808. flex: 1 1 auto;
  3809. text-align: right;
  3810. color: $lighter-text-color;
  3811. padding-right: 10px;
  3812. }
  3813. .button {
  3814. flex: 0 0 auto;
  3815. }
  3816. }
  3817. .boost-modal__status-header {
  3818. font-size: 15px;
  3819. }
  3820. .boost-modal__status-time {
  3821. float: right;
  3822. font-size: 14px;
  3823. }
  3824. .mute-modal {
  3825. line-height: 24px;
  3826. }
  3827. .mute-modal .react-toggle {
  3828. vertical-align: middle;
  3829. }
  3830. .report-modal {
  3831. width: 90vw;
  3832. max-width: 700px;
  3833. }
  3834. .report-modal__container {
  3835. display: flex;
  3836. border-top: 1px solid $ui-secondary-color;
  3837. @media screen and (max-width: 480px) {
  3838. flex-wrap: wrap;
  3839. overflow-y: auto;
  3840. }
  3841. }
  3842. .report-modal__statuses,
  3843. .report-modal__comment {
  3844. box-sizing: border-box;
  3845. width: 50%;
  3846. @media screen and (max-width: 480px) {
  3847. width: 100%;
  3848. }
  3849. }
  3850. .report-modal__statuses,
  3851. .focal-point-modal__content {
  3852. flex: 1 1 auto;
  3853. min-height: 20vh;
  3854. max-height: 80vh;
  3855. overflow-y: auto;
  3856. overflow-x: hidden;
  3857. .status__content a {
  3858. color: $highlight-text-color;
  3859. }
  3860. .status__content,
  3861. .status__content p {
  3862. color: $inverted-text-color;
  3863. }
  3864. @media screen and (max-width: 480px) {
  3865. max-height: 10vh;
  3866. }
  3867. }
  3868. .focal-point-modal__content {
  3869. @media screen and (max-width: 480px) {
  3870. max-height: 40vh;
  3871. }
  3872. }
  3873. .report-modal__comment {
  3874. padding: 20px;
  3875. border-right: 1px solid $ui-secondary-color;
  3876. max-width: 320px;
  3877. p {
  3878. font-size: 14px;
  3879. line-height: 20px;
  3880. margin-bottom: 20px;
  3881. }
  3882. .setting-text {
  3883. display: block;
  3884. box-sizing: border-box;
  3885. width: 100%;
  3886. margin: 0;
  3887. color: $inverted-text-color;
  3888. background: $white;
  3889. padding: 10px;
  3890. font-family: inherit;
  3891. font-size: 14px;
  3892. resize: none;
  3893. border: 0;
  3894. outline: 0;
  3895. border-radius: 4px;
  3896. border: 1px solid $ui-secondary-color;
  3897. min-height: 100px;
  3898. max-height: 50vh;
  3899. margin-bottom: 10px;
  3900. &:focus {
  3901. border: 1px solid darken($ui-secondary-color, 8%);
  3902. }
  3903. &__wrapper {
  3904. background: $white;
  3905. border: 1px solid $ui-secondary-color;
  3906. margin-bottom: 10px;
  3907. border-radius: 4px;
  3908. .setting-text {
  3909. border: 0;
  3910. margin-bottom: 0;
  3911. border-radius: 0;
  3912. &:focus {
  3913. border: 0;
  3914. }
  3915. }
  3916. &__modifiers {
  3917. color: $inverted-text-color;
  3918. font-family: inherit;
  3919. font-size: 14px;
  3920. background: $white;
  3921. }
  3922. }
  3923. &__toolbar {
  3924. display: flex;
  3925. justify-content: space-between;
  3926. margin-bottom: 20px;
  3927. }
  3928. }
  3929. .setting-text-label {
  3930. display: block;
  3931. color: $inverted-text-color;
  3932. font-size: 14px;
  3933. font-weight: 500;
  3934. margin-bottom: 10px;
  3935. }
  3936. .setting-toggle {
  3937. margin-top: 20px;
  3938. margin-bottom: 24px;
  3939. &__label {
  3940. color: $inverted-text-color;
  3941. font-size: 14px;
  3942. }
  3943. }
  3944. @media screen and (max-width: 480px) {
  3945. padding: 10px;
  3946. max-width: 100%;
  3947. order: 2;
  3948. .setting-toggle {
  3949. margin-bottom: 4px;
  3950. }
  3951. }
  3952. }
  3953. .actions-modal {
  3954. max-height: 80vh;
  3955. max-width: 80vw;
  3956. .status {
  3957. overflow-y: auto;
  3958. max-height: 300px;
  3959. }
  3960. .actions-modal__item-label {
  3961. font-weight: 500;
  3962. }
  3963. ul {
  3964. overflow-y: auto;
  3965. flex-shrink: 0;
  3966. max-height: 80vh;
  3967. &.with-status {
  3968. max-height: calc(80vh - 75px);
  3969. }
  3970. li:empty {
  3971. margin: 0;
  3972. }
  3973. li:not(:empty) {
  3974. a {
  3975. color: $inverted-text-color;
  3976. display: flex;
  3977. padding: 12px 16px;
  3978. font-size: 15px;
  3979. align-items: center;
  3980. text-decoration: none;
  3981. &,
  3982. button {
  3983. transition: none;
  3984. }
  3985. &.active,
  3986. &:hover,
  3987. &:active,
  3988. &:focus {
  3989. &,
  3990. button {
  3991. background: $ui-highlight-color;
  3992. color: $primary-text-color;
  3993. }
  3994. }
  3995. button:first-child {
  3996. margin-right: 10px;
  3997. }
  3998. }
  3999. }
  4000. }
  4001. }
  4002. .confirmation-modal__action-bar,
  4003. .mute-modal__action-bar {
  4004. .confirmation-modal__secondary-button,
  4005. .confirmation-modal__cancel-button,
  4006. .mute-modal__cancel-button {
  4007. background-color: transparent;
  4008. color: $lighter-text-color;
  4009. font-size: 14px;
  4010. font-weight: 500;
  4011. &:hover,
  4012. &:focus,
  4013. &:active {
  4014. color: darken($lighter-text-color, 4%);
  4015. }
  4016. }
  4017. .confirmation-modal__secondary-button {
  4018. flex-shrink: 1;
  4019. }
  4020. }
  4021. .confirmation-modal__container,
  4022. .mute-modal__container,
  4023. .report-modal__target {
  4024. padding: 30px;
  4025. font-size: 16px;
  4026. text-align: center;
  4027. strong {
  4028. font-weight: 500;
  4029. @each $lang in $cjk-langs {
  4030. &:lang(#{$lang}) {
  4031. font-weight: 700;
  4032. }
  4033. }
  4034. }
  4035. }
  4036. .report-modal__target {
  4037. padding: 15px;
  4038. .media-modal__close {
  4039. top: 14px;
  4040. right: 15px;
  4041. }
  4042. }
  4043. .loading-bar {
  4044. background-color: $highlight-text-color;
  4045. height: 3px;
  4046. position: absolute;
  4047. top: 0;
  4048. left: 0;
  4049. z-index: 9999;
  4050. }
  4051. .media-gallery__gifv__label {
  4052. display: block;
  4053. position: absolute;
  4054. color: $primary-text-color;
  4055. background: rgba($base-overlay-background, 0.5);
  4056. bottom: 6px;
  4057. left: 6px;
  4058. padding: 2px 6px;
  4059. border-radius: 2px;
  4060. font-size: 11px;
  4061. font-weight: 600;
  4062. z-index: 1;
  4063. pointer-events: none;
  4064. opacity: 0.9;
  4065. transition: opacity 0.1s ease;
  4066. line-height: 18px;
  4067. }
  4068. .media-gallery__gifv {
  4069. &.autoplay {
  4070. .media-gallery__gifv__label {
  4071. display: none;
  4072. }
  4073. }
  4074. &:hover {
  4075. .media-gallery__gifv__label {
  4076. opacity: 1;
  4077. }
  4078. }
  4079. }
  4080. .attachment-list {
  4081. display: flex;
  4082. font-size: 14px;
  4083. border: 1px solid lighten($ui-base-color, 8%);
  4084. border-radius: 4px;
  4085. margin-top: 14px;
  4086. overflow: hidden;
  4087. &__icon {
  4088. flex: 0 0 auto;
  4089. color: $dark-text-color;
  4090. padding: 8px 18px;
  4091. cursor: default;
  4092. border-right: 1px solid lighten($ui-base-color, 8%);
  4093. display: flex;
  4094. flex-direction: column;
  4095. align-items: center;
  4096. justify-content: center;
  4097. font-size: 26px;
  4098. .fa {
  4099. display: block;
  4100. }
  4101. }
  4102. &__list {
  4103. list-style: none;
  4104. padding: 4px 0;
  4105. padding-left: 8px;
  4106. display: flex;
  4107. flex-direction: column;
  4108. justify-content: center;
  4109. li {
  4110. display: block;
  4111. padding: 4px 0;
  4112. }
  4113. a {
  4114. text-decoration: none;
  4115. color: $dark-text-color;
  4116. font-weight: 500;
  4117. &:hover {
  4118. text-decoration: underline;
  4119. }
  4120. }
  4121. }
  4122. &.compact {
  4123. border: 0;
  4124. margin-top: 4px;
  4125. .attachment-list__list {
  4126. padding: 0;
  4127. display: block;
  4128. }
  4129. .fa {
  4130. color: $dark-text-color;
  4131. }
  4132. }
  4133. }
  4134. /* Media Gallery */
  4135. .media-gallery {
  4136. box-sizing: border-box;
  4137. margin-top: 8px;
  4138. overflow: hidden;
  4139. border-radius: 4px;
  4140. position: relative;
  4141. width: 100%;
  4142. }
  4143. .media-gallery__item {
  4144. border: 0;
  4145. box-sizing: border-box;
  4146. display: block;
  4147. float: left;
  4148. position: relative;
  4149. border-radius: 4px;
  4150. overflow: hidden;
  4151. &.standalone {
  4152. .media-gallery__item-gifv-thumbnail {
  4153. transform: none;
  4154. top: 0;
  4155. }
  4156. }
  4157. }
  4158. .media-gallery__item-thumbnail {
  4159. cursor: zoom-in;
  4160. display: block;
  4161. text-decoration: none;
  4162. color: $secondary-text-color;
  4163. position: relative;
  4164. z-index: 1;
  4165. &,
  4166. img {
  4167. height: 100%;
  4168. width: 100%;
  4169. }
  4170. img {
  4171. object-fit: cover;
  4172. }
  4173. }
  4174. .media-gallery__preview {
  4175. width: 100%;
  4176. height: 100%;
  4177. object-fit: cover;
  4178. position: absolute;
  4179. top: 0;
  4180. left: 0;
  4181. z-index: 0;
  4182. background: $base-overlay-background;
  4183. &--hidden {
  4184. display: none;
  4185. }
  4186. }
  4187. .media-gallery__gifv {
  4188. height: 100%;
  4189. overflow: hidden;
  4190. position: relative;
  4191. width: 100%;
  4192. }
  4193. .media-gallery__item-gifv-thumbnail {
  4194. cursor: zoom-in;
  4195. height: 100%;
  4196. object-fit: cover;
  4197. position: relative;
  4198. top: 50%;
  4199. transform: translateY(-50%);
  4200. width: 100%;
  4201. z-index: 1;
  4202. }
  4203. .media-gallery__item-thumbnail-label {
  4204. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  4205. clip: rect(1px, 1px, 1px, 1px);
  4206. overflow: hidden;
  4207. position: absolute;
  4208. }
  4209. /* End Media Gallery */
  4210. .detailed,
  4211. .fullscreen {
  4212. .video-player__volume__current,
  4213. .video-player__volume::before {
  4214. bottom: 27px;
  4215. }
  4216. .video-player__volume__handle {
  4217. bottom: 23px;
  4218. }
  4219. }
  4220. .audio-player {
  4221. box-sizing: border-box;
  4222. position: relative;
  4223. background: darken($ui-base-color, 8%);
  4224. border-radius: 4px;
  4225. padding-bottom: 44px;
  4226. &.editable {
  4227. border-radius: 0;
  4228. height: 100%;
  4229. }
  4230. &__waveform {
  4231. padding: 15px 0;
  4232. position: relative;
  4233. overflow: hidden;
  4234. &::before {
  4235. content: "";
  4236. display: block;
  4237. position: absolute;
  4238. border-top: 1px solid lighten($ui-base-color, 4%);
  4239. width: 100%;
  4240. height: 0;
  4241. left: 0;
  4242. top: calc(50% + 1px);
  4243. }
  4244. }
  4245. &__progress-placeholder {
  4246. background-color: rgba(lighten($ui-highlight-color, 8%), 0.5);
  4247. }
  4248. &__wave-placeholder {
  4249. background-color: lighten($ui-base-color, 16%);
  4250. }
  4251. .video-player__controls {
  4252. padding: 0 15px;
  4253. padding-top: 10px;
  4254. background: darken($ui-base-color, 8%);
  4255. border-top: 1px solid lighten($ui-base-color, 4%);
  4256. border-radius: 0 0 4px 4px;
  4257. }
  4258. }
  4259. .video-player {
  4260. overflow: hidden;
  4261. position: relative;
  4262. background: $base-shadow-color;
  4263. max-width: 100%;
  4264. border-radius: 4px;
  4265. box-sizing: border-box;
  4266. &.editable {
  4267. border-radius: 0;
  4268. height: 100% !important;
  4269. }
  4270. &:focus {
  4271. outline: 0;
  4272. }
  4273. video {
  4274. max-width: 100vw;
  4275. max-height: 80vh;
  4276. z-index: 1;
  4277. }
  4278. &.fullscreen {
  4279. width: 100% !important;
  4280. height: 100% !important;
  4281. margin: 0;
  4282. video {
  4283. max-width: 100% !important;
  4284. max-height: 100% !important;
  4285. width: 100% !important;
  4286. height: 100% !important;
  4287. }
  4288. }
  4289. &.inline {
  4290. video {
  4291. object-fit: contain;
  4292. position: relative;
  4293. top: 50%;
  4294. transform: translateY(-50%);
  4295. }
  4296. }
  4297. &__controls {
  4298. position: absolute;
  4299. z-index: 2;
  4300. bottom: 0;
  4301. left: 0;
  4302. right: 0;
  4303. box-sizing: border-box;
  4304. background: linear-gradient(0deg, rgba($base-shadow-color, 0.85) 0, rgba($base-shadow-color, 0.45) 60%, transparent);
  4305. padding: 0 15px;
  4306. opacity: 0;
  4307. transition: opacity .1s ease;
  4308. &.active {
  4309. opacity: 1;
  4310. }
  4311. }
  4312. &.inactive {
  4313. video,
  4314. .video-player__controls {
  4315. visibility: hidden;
  4316. }
  4317. }
  4318. &__spoiler {
  4319. display: none;
  4320. position: absolute;
  4321. top: 0;
  4322. left: 0;
  4323. width: 100%;
  4324. height: 100%;
  4325. z-index: 4;
  4326. border: 0;
  4327. background: $base-overlay-background;
  4328. color: $darker-text-color;
  4329. transition: none;
  4330. pointer-events: none;
  4331. &.active {
  4332. display: block;
  4333. pointer-events: auto;
  4334. &:hover,
  4335. &:active,
  4336. &:focus {
  4337. color: lighten($darker-text-color, 7%);
  4338. }
  4339. }
  4340. &__title {
  4341. display: block;
  4342. font-size: 14px;
  4343. }
  4344. &__subtitle {
  4345. display: block;
  4346. font-size: 11px;
  4347. font-weight: 500;
  4348. }
  4349. }
  4350. &__buttons-bar {
  4351. display: flex;
  4352. justify-content: space-between;
  4353. padding-bottom: 10px;
  4354. }
  4355. &__buttons {
  4356. font-size: 16px;
  4357. white-space: nowrap;
  4358. overflow: hidden;
  4359. text-overflow: ellipsis;
  4360. &.left {
  4361. button {
  4362. padding-left: 0;
  4363. }
  4364. }
  4365. &.right {
  4366. button {
  4367. padding-right: 0;
  4368. }
  4369. }
  4370. button {
  4371. background: transparent;
  4372. padding: 2px 10px;
  4373. font-size: 16px;
  4374. border: 0;
  4375. color: rgba($white, 0.75);
  4376. &:active,
  4377. &:hover,
  4378. &:focus {
  4379. color: $white;
  4380. }
  4381. }
  4382. }
  4383. &__time-sep,
  4384. &__time-total,
  4385. &__time-current {
  4386. font-size: 14px;
  4387. font-weight: 500;
  4388. }
  4389. &__time-current {
  4390. color: $white;
  4391. margin-left: 60px;
  4392. }
  4393. &__time-sep {
  4394. display: inline-block;
  4395. margin: 0 6px;
  4396. }
  4397. &__time-sep,
  4398. &__time-total {
  4399. color: $white;
  4400. }
  4401. &__volume {
  4402. cursor: pointer;
  4403. height: 24px;
  4404. display: inline;
  4405. &::before {
  4406. content: "";
  4407. width: 50px;
  4408. background: rgba($white, 0.35);
  4409. border-radius: 4px;
  4410. display: block;
  4411. position: absolute;
  4412. height: 4px;
  4413. left: 70px;
  4414. bottom: 20px;
  4415. }
  4416. &__current {
  4417. display: block;
  4418. position: absolute;
  4419. height: 4px;
  4420. border-radius: 4px;
  4421. left: 70px;
  4422. bottom: 20px;
  4423. background: lighten($ui-highlight-color, 8%);
  4424. }
  4425. &__handle {
  4426. position: absolute;
  4427. z-index: 3;
  4428. border-radius: 50%;
  4429. width: 12px;
  4430. height: 12px;
  4431. bottom: 16px;
  4432. left: 70px;
  4433. transition: opacity .1s ease;
  4434. background: lighten($ui-highlight-color, 8%);
  4435. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  4436. pointer-events: none;
  4437. }
  4438. }
  4439. &__link {
  4440. padding: 2px 10px;
  4441. a {
  4442. text-decoration: none;
  4443. font-size: 14px;
  4444. font-weight: 500;
  4445. color: $white;
  4446. &:hover,
  4447. &:active,
  4448. &:focus {
  4449. text-decoration: underline;
  4450. }
  4451. }
  4452. }
  4453. &__seek {
  4454. cursor: pointer;
  4455. height: 24px;
  4456. position: relative;
  4457. &::before {
  4458. content: "";
  4459. width: 100%;
  4460. background: rgba($white, 0.35);
  4461. border-radius: 4px;
  4462. display: block;
  4463. position: absolute;
  4464. height: 4px;
  4465. top: 10px;
  4466. }
  4467. &__progress,
  4468. &__buffer {
  4469. display: block;
  4470. position: absolute;
  4471. height: 4px;
  4472. border-radius: 4px;
  4473. top: 10px;
  4474. background: lighten($ui-highlight-color, 8%);
  4475. }
  4476. &__buffer {
  4477. background: rgba($white, 0.2);
  4478. }
  4479. &__handle {
  4480. position: absolute;
  4481. z-index: 3;
  4482. opacity: 0;
  4483. border-radius: 50%;
  4484. width: 12px;
  4485. height: 12px;
  4486. top: 6px;
  4487. margin-left: -6px;
  4488. transition: opacity .1s ease;
  4489. background: lighten($ui-highlight-color, 8%);
  4490. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  4491. pointer-events: none;
  4492. &.active {
  4493. opacity: 1;
  4494. }
  4495. }
  4496. &:hover {
  4497. .video-player__seek__handle {
  4498. opacity: 1;
  4499. }
  4500. }
  4501. }
  4502. &.detailed,
  4503. &.fullscreen {
  4504. .video-player__buttons {
  4505. button {
  4506. padding-top: 10px;
  4507. padding-bottom: 10px;
  4508. }
  4509. }
  4510. }
  4511. }
  4512. .directory {
  4513. &__list {
  4514. width: 100%;
  4515. margin: 10px 0;
  4516. transition: opacity 100ms ease-in;
  4517. &.loading {
  4518. opacity: 0.7;
  4519. }
  4520. @media screen and (max-width: $no-gap-breakpoint) {
  4521. margin: 0;
  4522. }
  4523. }
  4524. &__card {
  4525. box-sizing: border-box;
  4526. margin-bottom: 10px;
  4527. &__img {
  4528. height: 125px;
  4529. position: relative;
  4530. background: darken($ui-base-color, 12%);
  4531. img {
  4532. display: block;
  4533. width: 100%;
  4534. height: 100%;
  4535. margin: 0;
  4536. object-fit: cover;
  4537. }
  4538. }
  4539. &__bar {
  4540. display: flex;
  4541. align-items: center;
  4542. background: lighten($ui-base-color, 4%);
  4543. padding: 10px;
  4544. &__name {
  4545. flex: 1 1 auto;
  4546. display: flex;
  4547. align-items: center;
  4548. text-decoration: none;
  4549. }
  4550. &__relationship {
  4551. width: 23px;
  4552. min-height: 1px;
  4553. flex: 0 0 auto;
  4554. }
  4555. .avatar {
  4556. flex: 0 0 auto;
  4557. width: 48px;
  4558. height: 48px;
  4559. padding-top: 2px;
  4560. img {
  4561. width: 100%;
  4562. height: 100%;
  4563. display: block;
  4564. margin: 0;
  4565. border-radius: 4px;
  4566. background: darken($ui-base-color, 8%);
  4567. object-fit: cover;
  4568. }
  4569. }
  4570. .display-name {
  4571. margin-left: 15px;
  4572. text-align: left;
  4573. strong {
  4574. font-size: 15px;
  4575. color: $primary-text-color;
  4576. font-weight: 500;
  4577. overflow: hidden;
  4578. text-overflow: ellipsis;
  4579. }
  4580. span {
  4581. display: block;
  4582. font-size: 14px;
  4583. color: $darker-text-color;
  4584. font-weight: 400;
  4585. overflow: hidden;
  4586. text-overflow: ellipsis;
  4587. }
  4588. }
  4589. }
  4590. &__extra {
  4591. background: $ui-base-color;
  4592. display: flex;
  4593. align-items: center;
  4594. justify-content: center;
  4595. .accounts-table__count {
  4596. width: 33.33%;
  4597. flex: 0 0 auto;
  4598. padding: 15px 0;
  4599. }
  4600. .account__header__content {
  4601. box-sizing: border-box;
  4602. padding: 15px 10px;
  4603. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4604. width: 100%;
  4605. white-space: nowrap;
  4606. overflow: hidden;
  4607. text-overflow: ellipsis;
  4608. p {
  4609. display: none;
  4610. &:first-child {
  4611. display: inline;
  4612. }
  4613. }
  4614. }
  4615. }
  4616. }
  4617. }
  4618. .account-gallery__container {
  4619. display: flex;
  4620. flex-wrap: wrap;
  4621. padding: 4px 2px;
  4622. }
  4623. .account-gallery__item {
  4624. border: 0;
  4625. box-sizing: border-box;
  4626. display: block;
  4627. position: relative;
  4628. border-radius: 4px;
  4629. overflow: hidden;
  4630. margin: 2px;
  4631. &__icons {
  4632. position: absolute;
  4633. top: 50%;
  4634. left: 50%;
  4635. transform: translate(-50%, -50%);
  4636. font-size: 24px;
  4637. }
  4638. }
  4639. .notification__filter-bar,
  4640. .account__section-headline {
  4641. background: darken($ui-base-color, 4%);
  4642. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4643. cursor: default;
  4644. display: flex;
  4645. flex-shrink: 0;
  4646. button {
  4647. background: darken($ui-base-color, 4%);
  4648. border: 0;
  4649. margin: 0;
  4650. }
  4651. button,
  4652. a {
  4653. display: block;
  4654. flex: 1 1 auto;
  4655. color: $darker-text-color;
  4656. padding: 15px 0;
  4657. font-size: 14px;
  4658. font-weight: 500;
  4659. text-align: center;
  4660. text-decoration: none;
  4661. position: relative;
  4662. &.active {
  4663. color: $secondary-text-color;
  4664. &::before,
  4665. &::after {
  4666. display: block;
  4667. content: "";
  4668. position: absolute;
  4669. bottom: 0;
  4670. left: 50%;
  4671. width: 0;
  4672. height: 0;
  4673. transform: translateX(-50%);
  4674. border-style: solid;
  4675. border-width: 0 10px 10px;
  4676. border-color: transparent transparent lighten($ui-base-color, 8%);
  4677. }
  4678. &::after {
  4679. bottom: -1px;
  4680. border-color: transparent transparent $ui-base-color;
  4681. }
  4682. }
  4683. }
  4684. &.directory__section-headline {
  4685. background: darken($ui-base-color, 2%);
  4686. border-bottom-color: transparent;
  4687. a,
  4688. button {
  4689. &.active {
  4690. &::before {
  4691. display: none;
  4692. }
  4693. &::after {
  4694. border-color: transparent transparent darken($ui-base-color, 7%);
  4695. }
  4696. }
  4697. }
  4698. }
  4699. }
  4700. .filter-form {
  4701. background: $ui-base-color;
  4702. &__column {
  4703. padding: 10px 15px;
  4704. }
  4705. .radio-button {
  4706. display: block;
  4707. }
  4708. }
  4709. .radio-button {
  4710. font-size: 14px;
  4711. position: relative;
  4712. display: inline-block;
  4713. padding: 6px 0;
  4714. line-height: 18px;
  4715. cursor: default;
  4716. white-space: nowrap;
  4717. overflow: hidden;
  4718. text-overflow: ellipsis;
  4719. cursor: pointer;
  4720. input[type=radio],
  4721. input[type=checkbox] {
  4722. display: none;
  4723. }
  4724. &__input {
  4725. display: inline-block;
  4726. position: relative;
  4727. border: 1px solid $ui-primary-color;
  4728. box-sizing: border-box;
  4729. width: 18px;
  4730. height: 18px;
  4731. flex: 0 0 auto;
  4732. margin-right: 10px;
  4733. top: -1px;
  4734. border-radius: 50%;
  4735. vertical-align: middle;
  4736. &.checked {
  4737. border-color: lighten($ui-highlight-color, 8%);
  4738. background: lighten($ui-highlight-color, 8%);
  4739. }
  4740. }
  4741. }
  4742. ::-webkit-scrollbar-thumb {
  4743. border-radius: 0;
  4744. }
  4745. .search-popout {
  4746. @include search-popout;
  4747. }
  4748. noscript {
  4749. text-align: center;
  4750. img {
  4751. width: 200px;
  4752. opacity: 0.5;
  4753. animation: flicker 4s infinite;
  4754. }
  4755. div {
  4756. font-size: 14px;
  4757. margin: 30px auto;
  4758. color: $secondary-text-color;
  4759. max-width: 400px;
  4760. a {
  4761. color: $highlight-text-color;
  4762. text-decoration: underline;
  4763. &:hover {
  4764. text-decoration: none;
  4765. }
  4766. }
  4767. }
  4768. }
  4769. @keyframes flicker {
  4770. 0% { opacity: 1; }
  4771. 30% { opacity: 0.75; }
  4772. 100% { opacity: 1; }
  4773. }
  4774. @media screen and (max-width: 630px) and (max-height: 400px) {
  4775. $duration: 400ms;
  4776. $delay: 100ms;
  4777. .tabs-bar,
  4778. .search {
  4779. will-change: margin-top;
  4780. transition: margin-top $duration $delay;
  4781. }
  4782. .navigation-bar {
  4783. will-change: padding-bottom;
  4784. transition: padding-bottom $duration $delay;
  4785. }
  4786. .navigation-bar {
  4787. & > a:first-child {
  4788. will-change: margin-top, margin-left, margin-right, width;
  4789. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay), margin-right $duration ($duration + $delay);
  4790. }
  4791. & > .navigation-bar__profile-edit {
  4792. will-change: margin-top;
  4793. transition: margin-top $duration $delay;
  4794. }
  4795. .navigation-bar__actions {
  4796. & > .icon-button.close {
  4797. will-change: opacity transform;
  4798. transition: opacity $duration * 0.5 $delay,
  4799. transform $duration $delay;
  4800. }
  4801. & > .compose__action-bar .icon-button {
  4802. will-change: opacity transform;
  4803. transition: opacity $duration * 0.5 $delay + $duration * 0.5,
  4804. transform $duration $delay;
  4805. }
  4806. }
  4807. }
  4808. .is-composing {
  4809. .tabs-bar,
  4810. .search {
  4811. margin-top: -50px;
  4812. }
  4813. .navigation-bar {
  4814. padding-bottom: 0;
  4815. & > a:first-child {
  4816. margin: -100px 10px 0 -50px;
  4817. }
  4818. .navigation-bar__profile {
  4819. padding-top: 2px;
  4820. }
  4821. .navigation-bar__profile-edit {
  4822. position: absolute;
  4823. margin-top: -60px;
  4824. }
  4825. .navigation-bar__actions {
  4826. .icon-button.close {
  4827. pointer-events: auto;
  4828. opacity: 1;
  4829. transform: scale(1, 1) translate(0, 0);
  4830. bottom: 5px;
  4831. }
  4832. .compose__action-bar .icon-button {
  4833. pointer-events: none;
  4834. opacity: 0;
  4835. transform: scale(0, 1) translate(100%, 0);
  4836. }
  4837. }
  4838. }
  4839. }
  4840. }
  4841. .embed-modal {
  4842. max-width: 80vw;
  4843. max-height: 80vh;
  4844. h4 {
  4845. padding: 30px;
  4846. font-weight: 500;
  4847. font-size: 16px;
  4848. text-align: center;
  4849. }
  4850. .embed-modal__container {
  4851. padding: 10px;
  4852. .hint {
  4853. margin-bottom: 15px;
  4854. }
  4855. .embed-modal__html {
  4856. outline: 0;
  4857. box-sizing: border-box;
  4858. display: block;
  4859. width: 100%;
  4860. border: 0;
  4861. padding: 10px;
  4862. font-family: $font-monospace, monospace;
  4863. background: $ui-base-color;
  4864. color: $primary-text-color;
  4865. font-size: 14px;
  4866. margin: 0;
  4867. margin-bottom: 15px;
  4868. &::-moz-focus-inner {
  4869. border: 0;
  4870. }
  4871. &::-moz-focus-inner,
  4872. &:focus,
  4873. &:active {
  4874. outline: 0 !important;
  4875. }
  4876. &:focus {
  4877. background: lighten($ui-base-color, 4%);
  4878. }
  4879. @media screen and (max-width: 600px) {
  4880. font-size: 16px;
  4881. }
  4882. }
  4883. .embed-modal__iframe {
  4884. width: 400px;
  4885. max-width: 100%;
  4886. overflow: hidden;
  4887. border: 0;
  4888. }
  4889. }
  4890. }
  4891. .account__moved-note {
  4892. padding: 14px 10px;
  4893. padding-bottom: 16px;
  4894. background: lighten($ui-base-color, 4%);
  4895. border-top: 1px solid lighten($ui-base-color, 8%);
  4896. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4897. &__message {
  4898. position: relative;
  4899. margin-left: 58px;
  4900. color: $dark-text-color;
  4901. padding: 8px 0;
  4902. padding-top: 0;
  4903. padding-bottom: 4px;
  4904. font-size: 14px;
  4905. > span {
  4906. display: block;
  4907. overflow: hidden;
  4908. text-overflow: ellipsis;
  4909. }
  4910. }
  4911. &__icon-wrapper {
  4912. left: -26px;
  4913. position: absolute;
  4914. }
  4915. .detailed-status__display-avatar {
  4916. position: relative;
  4917. }
  4918. .detailed-status__display-name {
  4919. margin-bottom: 0;
  4920. }
  4921. }
  4922. .column-inline-form {
  4923. padding: 15px;
  4924. padding-right: 0;
  4925. display: flex;
  4926. justify-content: flex-start;
  4927. align-items: center;
  4928. background: lighten($ui-base-color, 4%);
  4929. label {
  4930. flex: 1 1 auto;
  4931. input {
  4932. width: 100%;
  4933. &:focus {
  4934. outline: 0;
  4935. }
  4936. }
  4937. }
  4938. .icon-button {
  4939. flex: 0 0 auto;
  4940. margin: 0 10px;
  4941. }
  4942. }
  4943. .drawer__backdrop {
  4944. cursor: pointer;
  4945. position: absolute;
  4946. top: 0;
  4947. left: 0;
  4948. width: 100%;
  4949. height: 100%;
  4950. background: rgba($base-overlay-background, 0.5);
  4951. }
  4952. .list-editor {
  4953. background: $ui-base-color;
  4954. flex-direction: column;
  4955. border-radius: 8px;
  4956. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4957. width: 380px;
  4958. overflow: hidden;
  4959. @media screen and (max-width: 420px) {
  4960. width: 90%;
  4961. }
  4962. h4 {
  4963. padding: 15px 0;
  4964. background: lighten($ui-base-color, 13%);
  4965. font-weight: 500;
  4966. font-size: 16px;
  4967. text-align: center;
  4968. border-radius: 8px 8px 0 0;
  4969. }
  4970. .drawer__pager {
  4971. height: 50vh;
  4972. }
  4973. .drawer__inner {
  4974. border-radius: 0 0 8px 8px;
  4975. &.backdrop {
  4976. width: calc(100% - 60px);
  4977. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4978. border-radius: 0 0 0 8px;
  4979. }
  4980. }
  4981. &__accounts {
  4982. overflow-y: auto;
  4983. }
  4984. .account__display-name {
  4985. &:hover strong {
  4986. text-decoration: none;
  4987. }
  4988. }
  4989. .account__avatar {
  4990. cursor: default;
  4991. }
  4992. .search {
  4993. margin-bottom: 0;
  4994. }
  4995. }
  4996. .list-adder {
  4997. background: $ui-base-color;
  4998. flex-direction: column;
  4999. border-radius: 8px;
  5000. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  5001. width: 380px;
  5002. overflow: hidden;
  5003. @media screen and (max-width: 420px) {
  5004. width: 90%;
  5005. }
  5006. &__account {
  5007. background: lighten($ui-base-color, 13%);
  5008. }
  5009. &__lists {
  5010. background: lighten($ui-base-color, 13%);
  5011. height: 50vh;
  5012. border-radius: 0 0 8px 8px;
  5013. overflow-y: auto;
  5014. }
  5015. .list {
  5016. padding: 10px;
  5017. border-bottom: 1px solid lighten($ui-base-color, 8%);
  5018. }
  5019. .list__wrapper {
  5020. display: flex;
  5021. }
  5022. .list__display-name {
  5023. flex: 1 1 auto;
  5024. overflow: hidden;
  5025. text-decoration: none;
  5026. font-size: 16px;
  5027. padding: 10px;
  5028. }
  5029. }
  5030. .focal-point {
  5031. position: relative;
  5032. cursor: move;
  5033. overflow: hidden;
  5034. height: 100%;
  5035. display: flex;
  5036. justify-content: center;
  5037. align-items: center;
  5038. background: $base-shadow-color;
  5039. img,
  5040. video {
  5041. display: block;
  5042. max-height: 80vh;
  5043. width: 100%;
  5044. height: auto;
  5045. margin: 0;
  5046. object-fit: contain;
  5047. background: $base-shadow-color;
  5048. }
  5049. &__reticle {
  5050. position: absolute;
  5051. width: 100px;
  5052. height: 100px;
  5053. transform: translate(-50%, -50%);
  5054. background: url('../images/reticle.png') no-repeat 0 0;
  5055. border-radius: 50%;
  5056. box-shadow: 0 0 0 9999em rgba($base-shadow-color, 0.35);
  5057. }
  5058. &__overlay {
  5059. position: absolute;
  5060. width: 100%;
  5061. height: 100%;
  5062. top: 0;
  5063. left: 0;
  5064. }
  5065. &__preview {
  5066. position: absolute;
  5067. bottom: 10px;
  5068. right: 10px;
  5069. z-index: 2;
  5070. cursor: move;
  5071. transition: opacity 0.1s ease;
  5072. &:hover {
  5073. opacity: 0.5;
  5074. }
  5075. strong {
  5076. color: $primary-text-color;
  5077. font-size: 14px;
  5078. font-weight: 500;
  5079. display: block;
  5080. margin-bottom: 5px;
  5081. }
  5082. div {
  5083. border-radius: 4px;
  5084. box-shadow: 0 0 14px rgba($base-shadow-color, 0.2);
  5085. }
  5086. }
  5087. @media screen and (max-width: 480px) {
  5088. img,
  5089. video {
  5090. max-height: 100%;
  5091. }
  5092. &__preview {
  5093. display: none;
  5094. }
  5095. }
  5096. }
  5097. .account__header__content {
  5098. color: $darker-text-color;
  5099. font-size: 14px;
  5100. font-weight: 400;
  5101. overflow: hidden;
  5102. word-break: normal;
  5103. word-wrap: break-word;
  5104. p {
  5105. margin-bottom: 20px;
  5106. &:last-child {
  5107. margin-bottom: 0;
  5108. }
  5109. }
  5110. a {
  5111. color: inherit;
  5112. text-decoration: underline;
  5113. &:hover {
  5114. text-decoration: none;
  5115. }
  5116. }
  5117. }
  5118. .account__header {
  5119. overflow: hidden;
  5120. &.inactive {
  5121. opacity: 0.5;
  5122. .account__header__image,
  5123. .account__avatar {
  5124. filter: grayscale(100%);
  5125. }
  5126. }
  5127. &__info {
  5128. position: absolute;
  5129. top: 10px;
  5130. left: 10px;
  5131. }
  5132. &__image {
  5133. overflow: hidden;
  5134. height: 145px;
  5135. position: relative;
  5136. background: darken($ui-base-color, 4%);
  5137. img {
  5138. object-fit: cover;
  5139. display: block;
  5140. width: 100%;
  5141. height: 100%;
  5142. margin: 0;
  5143. }
  5144. }
  5145. &__bar {
  5146. position: relative;
  5147. background: lighten($ui-base-color, 4%);
  5148. padding: 5px;
  5149. border-bottom: 1px solid lighten($ui-base-color, 12%);
  5150. .avatar {
  5151. display: block;
  5152. flex: 0 0 auto;
  5153. width: 94px;
  5154. margin-left: -2px;
  5155. .account__avatar {
  5156. background: darken($ui-base-color, 8%);
  5157. border: 2px solid lighten($ui-base-color, 4%);
  5158. }
  5159. }
  5160. }
  5161. &__tabs {
  5162. display: flex;
  5163. align-items: flex-start;
  5164. padding: 7px 5px;
  5165. margin-top: -55px;
  5166. &__buttons {
  5167. display: flex;
  5168. align-items: center;
  5169. padding-top: 55px;
  5170. overflow: hidden;
  5171. .icon-button {
  5172. border: 1px solid lighten($ui-base-color, 12%);
  5173. border-radius: 4px;
  5174. box-sizing: content-box;
  5175. padding: 2px;
  5176. }
  5177. .button {
  5178. margin: 0 8px;
  5179. }
  5180. }
  5181. &__name {
  5182. padding: 5px;
  5183. .account-role {
  5184. vertical-align: top;
  5185. }
  5186. .emojione {
  5187. width: 22px;
  5188. height: 22px;
  5189. }
  5190. h1 {
  5191. font-size: 16px;
  5192. line-height: 24px;
  5193. color: $primary-text-color;
  5194. font-weight: 500;
  5195. overflow: hidden;
  5196. white-space: nowrap;
  5197. text-overflow: ellipsis;
  5198. small {
  5199. display: block;
  5200. font-size: 14px;
  5201. color: $darker-text-color;
  5202. font-weight: 400;
  5203. overflow: hidden;
  5204. text-overflow: ellipsis;
  5205. }
  5206. }
  5207. }
  5208. .spacer {
  5209. flex: 1 1 auto;
  5210. }
  5211. }
  5212. &__bio {
  5213. overflow: hidden;
  5214. margin: 0 -5px;
  5215. .account__header__content {
  5216. padding: 20px 15px;
  5217. padding-bottom: 5px;
  5218. color: $primary-text-color;
  5219. }
  5220. .account__header__fields {
  5221. margin: 0;
  5222. border-top: 1px solid lighten($ui-base-color, 12%);
  5223. a {
  5224. color: lighten($ui-highlight-color, 8%);
  5225. }
  5226. dl:first-child .verified {
  5227. border-radius: 0 4px 0 0;
  5228. }
  5229. .verified a {
  5230. color: $valid-value-color;
  5231. }
  5232. }
  5233. }
  5234. &__extra {
  5235. margin-top: 4px;
  5236. &__links {
  5237. font-size: 14px;
  5238. color: $darker-text-color;
  5239. a {
  5240. display: inline-block;
  5241. color: $darker-text-color;
  5242. text-decoration: none;
  5243. padding: 10px;
  5244. padding-top: 20px;
  5245. font-weight: 500;
  5246. strong {
  5247. font-weight: 700;
  5248. color: $primary-text-color;
  5249. }
  5250. }
  5251. }
  5252. }
  5253. }
  5254. .trends {
  5255. &__header {
  5256. color: $dark-text-color;
  5257. background: lighten($ui-base-color, 2%);
  5258. border-bottom: 1px solid darken($ui-base-color, 4%);
  5259. font-weight: 500;
  5260. padding: 15px;
  5261. font-size: 16px;
  5262. cursor: default;
  5263. .fa {
  5264. display: inline-block;
  5265. margin-right: 5px;
  5266. }
  5267. }
  5268. &__item {
  5269. display: flex;
  5270. align-items: center;
  5271. padding: 15px;
  5272. border-bottom: 1px solid lighten($ui-base-color, 8%);
  5273. &:last-child {
  5274. border-bottom: 0;
  5275. }
  5276. &__name {
  5277. flex: 1 1 auto;
  5278. color: $dark-text-color;
  5279. overflow: hidden;
  5280. text-overflow: ellipsis;
  5281. white-space: nowrap;
  5282. strong {
  5283. font-weight: 500;
  5284. }
  5285. a {
  5286. color: $darker-text-color;
  5287. text-decoration: none;
  5288. font-size: 14px;
  5289. font-weight: 500;
  5290. display: block;
  5291. overflow: hidden;
  5292. text-overflow: ellipsis;
  5293. white-space: nowrap;
  5294. &:hover,
  5295. &:focus,
  5296. &:active {
  5297. span {
  5298. text-decoration: underline;
  5299. }
  5300. }
  5301. }
  5302. }
  5303. &__current {
  5304. flex: 0 0 auto;
  5305. font-size: 24px;
  5306. line-height: 36px;
  5307. font-weight: 500;
  5308. text-align: right;
  5309. padding-right: 15px;
  5310. margin-left: 5px;
  5311. color: $secondary-text-color;
  5312. }
  5313. &__sparkline {
  5314. flex: 0 0 auto;
  5315. width: 50px;
  5316. path:first-child {
  5317. fill: rgba($highlight-text-color, 0.25) !important;
  5318. fill-opacity: 1 !important;
  5319. }
  5320. path:last-child {
  5321. stroke: lighten($highlight-text-color, 6%) !important;
  5322. }
  5323. }
  5324. }
  5325. }
  5326. .layout-toggle {
  5327. display: flex;
  5328. padding: 5px;
  5329. button {
  5330. box-sizing: border-box;
  5331. flex: 0 0 50%;
  5332. background: transparent;
  5333. padding: 5px;
  5334. border: 0;
  5335. position: relative;
  5336. &:hover,
  5337. &:focus,
  5338. &:active {
  5339. svg path:first-child {
  5340. fill: lighten($ui-base-color, 16%);
  5341. }
  5342. }
  5343. }
  5344. svg {
  5345. width: 100%;
  5346. height: auto;
  5347. path:first-child {
  5348. fill: lighten($ui-base-color, 12%);
  5349. }
  5350. path:last-child {
  5351. fill: darken($ui-base-color, 14%);
  5352. }
  5353. }
  5354. &__active {
  5355. color: $ui-highlight-color;
  5356. position: absolute;
  5357. top: 50%;
  5358. left: 50%;
  5359. transform: translate(-50%, -50%);
  5360. background: lighten($ui-base-color, 12%);
  5361. border-radius: 50%;
  5362. padding: 0.35rem;
  5363. }
  5364. }