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.
 
 
 
 

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