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

6817 lines
115 KiB

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