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.
 
 
 
 

6797 lines
115 KiB

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