The code powering m.abunchtell.com https://m.abunchtell.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

6593 Zeilen
111 KiB

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