The code powering m.abunchtell.com https://m.abunchtell.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

5980 рядки
101 KiB

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