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.
 
 
 
 

6838 lines
116 KiB

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