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.
 
 
 
 

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