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.
 
 
 
 

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