feat(mastodon): rewrite (#2283)
This commit is contained in:
1 file changed
+73
-704
@@ -17,736 +17,105 @@
|
||||
|
||||
@import "https://userstyles.catppuccin.com/lib/lib.less";
|
||||
|
||||
@-moz-document domain("mastodon.social"),
|
||||
domain("social.catppuccin.com"),
|
||||
domain("fosstodon.org") {
|
||||
.theme-mastodon-light,
|
||||
.skin-modern-light,
|
||||
.skin-mastodon-light {
|
||||
@-moz-document domain("mastodon.social"), domain("fosstodon.org") {
|
||||
[data-color-scheme="light"] {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
|
||||
.theme-contrast,
|
||||
.skin-modern-dark,
|
||||
.skin-contrast {
|
||||
[data-color-scheme="dark"] {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
|
||||
.theme-default,
|
||||
.theme-system,
|
||||
.skin-default,
|
||||
.skin-system {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
|
||||
#catppuccin(@flavor) {
|
||||
#lib.palette();
|
||||
#lib.defaults();
|
||||
|
||||
--background-color: @base;
|
||||
--background-color-alt: @base;
|
||||
--color-bg-primary: @base;
|
||||
--color-bg-secondary: @surface0;
|
||||
--color-bg-tertiary: @surface1;
|
||||
--color-bg-inverted: @text;
|
||||
|
||||
--dropdown-border-color: @surface1;
|
||||
--dropdown-background-color: @surface0;
|
||||
--modal-background-color: @mantle;
|
||||
--modal-border-color: @crust;
|
||||
--color-text-primary: @text;
|
||||
--color-text-secondary: @subtext1;
|
||||
--color-text-tertiary: @subtext0;
|
||||
--color-text-inverted: @base;
|
||||
|
||||
&,
|
||||
.column-header__wrapper,
|
||||
.column > *:not(.loading-indicator),
|
||||
body.flavour-glitch.skin-default .column-header__wrapper {
|
||||
--background-border-color: @surface0 !important;
|
||||
}
|
||||
/* Brand */
|
||||
--color-bg-brand-base: @accent;
|
||||
--color-bg-brand-base-hover: darken(@accent, 5%);
|
||||
--color-bg-brand-soft: fade(@accent, 40%);
|
||||
--color-bg-brand-softest: fade(@accent, 15%);
|
||||
|
||||
&,
|
||||
.tabs-bar__wrapper,
|
||||
.admin-wrapper .sidebar-wrapper__inner,
|
||||
.ui__header {
|
||||
background: @crust;
|
||||
color: @text;
|
||||
}
|
||||
--color-text-brand: @accent;
|
||||
--color-text-on-brand-base: @base;
|
||||
--color-text-brand-on-inverted: @accent;
|
||||
|
||||
.navigation-panel,
|
||||
.column-link {
|
||||
background: transparent;
|
||||
}
|
||||
/* States */
|
||||
|
||||
.account__header__bio .account__header__fields dt {
|
||||
background: transparent;
|
||||
}
|
||||
// Error
|
||||
--color-bg-error-base: @red;
|
||||
--color-bg-error-base-hover: darken(@red, 5%);
|
||||
--color-bg-error-soft: fade(@red, 40%);
|
||||
--color-bg-error-softest: fade(@red, 15%);
|
||||
--color-text-error: @red;
|
||||
--color-text-on-error-base: @base;
|
||||
|
||||
.search-popout,
|
||||
.search-popout em,
|
||||
.dismissable-banner__message,
|
||||
.dismissable-banner__message h1,
|
||||
.account__header__bio .account__header__fields dt,
|
||||
.account__section-headline a.active,
|
||||
.account__section-headline button.active,
|
||||
.notification__filter-bar a.active,
|
||||
.notification__filter-bar button.active,
|
||||
.account__header__bio .account__header__content,
|
||||
.navigation-bar,
|
||||
.column-link__badge,
|
||||
.display-name__html,
|
||||
.column-subheading,
|
||||
.account__display-name strong,
|
||||
.status__display-name strong,
|
||||
.notification__message,
|
||||
.public-layout .public-account-bio .account__header__content,
|
||||
.reply-indicator__content,
|
||||
.status__content,
|
||||
.status__content__text,
|
||||
.card__bar .display-name strong,
|
||||
.about__mail,
|
||||
.about__domain-blocks__domain h6 {
|
||||
color: @text;
|
||||
}
|
||||
// Warning
|
||||
--color-bg-warning-base: @yellow;
|
||||
--color-bg-warning-soft: fade(@yellow, 40%);
|
||||
--color-bg-warning-softest: fade(@yellow, 15%);
|
||||
--color-text-warning: @yellow;
|
||||
--color-text-on-warning-base: @base;
|
||||
|
||||
.search-popout span,
|
||||
.link-footer p,
|
||||
.link-footer p a {
|
||||
color: @subtext1;
|
||||
}
|
||||
// Success
|
||||
--color-bg-success-base: @green;
|
||||
--color-bg-success-soft: fade(@green, 40%);
|
||||
--color-bg-success-softest: fade(@green, 15%);
|
||||
--color-text-success: @green;
|
||||
--color-text-on-success-base: @base;
|
||||
|
||||
.account__header__tabs__name h1 small,
|
||||
.account__header__bio .account__header__fields dd,
|
||||
.display-name__account,
|
||||
.status__relative-time,
|
||||
.empty-column-indicator,
|
||||
.follow_requests-unlocked_explanation,
|
||||
.account .account__display-name,
|
||||
.label_input .search__input,
|
||||
.search__input:focus,
|
||||
.account__header__fields dt,
|
||||
.rules-list__hint,
|
||||
.about__domain-blocks__domain {
|
||||
color: @subtext0;
|
||||
}
|
||||
// Disabled
|
||||
--color-bg-disabled: @overlay1;
|
||||
--color-text-disabled: @overlay1;
|
||||
--color-text-on-disabled: @subtext0;
|
||||
|
||||
.compose-panel hr,
|
||||
.navigation-panel hr {
|
||||
border-top-color: @surface2;
|
||||
}
|
||||
/* Borders */
|
||||
--color-border-primary: @surface2;
|
||||
--color-border-brand: @accent;
|
||||
--color-border-brand-soft: fade(@accent, 50%);
|
||||
--color-border-error: @red;
|
||||
--color-border-error-soft: fade(@red, 50%);
|
||||
--color-border-warning-soft: fade(@yellow, 50%);
|
||||
--color-border-success-soft: fade(@green, 50%);
|
||||
|
||||
.mention,
|
||||
.icon-button.inverted,
|
||||
.icon-button.inverted:focus,
|
||||
.icon-button.inverted:hover .account__header__tabs__name h1,
|
||||
.account__header__content a,
|
||||
.account__header__bio .account__header__fields a,
|
||||
.empty-column-indicator a,
|
||||
.follow_requests-unlocked_explanation a,
|
||||
.column-back-button,
|
||||
.text-icon-button,
|
||||
.icon-button.star-icon.active,
|
||||
.public-layout .public-account-bio .account__header__fields a,
|
||||
.column-header__back-button,
|
||||
.navigation-bar strong,
|
||||
.reply-indicator__content a.unhandled-link,
|
||||
.status__content a.unhandled-link,
|
||||
.announcements__item__content a.unhandled-link,
|
||||
.reactions-bar__item.active .reactions-bar__item__count,
|
||||
.column-header.active .column-header__icon,
|
||||
.about__section__title {
|
||||
color: @accent;
|
||||
}
|
||||
/* Other */
|
||||
--color-shadow-primary: fade(@mantle, 30%);
|
||||
--color-bg-overlay-base: fade(@text, 60%);
|
||||
--color-bg-overlay-highlight: fade(@text, 5%);
|
||||
|
||||
button.icon-button i.fa-retweet {
|
||||
/* Images (alt text, hide/spoilers) */
|
||||
--color-bg-media-base: @crust;
|
||||
--color-text-on-media: @text;
|
||||
--color-border-media: @surface1;
|
||||
|
||||
/* Actions (bookmarking, favoriting) */
|
||||
--color-text-bookmark-highlight: @teal;
|
||||
--color-text-favourite-highlight: @yellow;
|
||||
|
||||
.logo {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" width="22" height="209"><path d="M4.97 3.16c-.1.03-.17.1-.22.18L.8 8.24c-.2.3.03.78.4.8h2.4v2.68c0 4.26-.55 3.62 3.66 3.62h7.66l-2.3-2.84c-.03-.02-.03-.04-.05-.06h-5.3c-.44 0-.72-.3-.72-.72v-2.7h2.5c.37.03.63-.48.4-.77L5.5 3.35a.51.51 0 0 0-.53-.2zm12.16.43c-.55-.02-1.32.02-2.4.02H7.1l2.32 2.85.03.06h5.25c.42 0 .72.28.72.72v2.7h-2.5c-.36.02-.56.54-.3.8l3.92 4.9c.18.25.6.25.78 0l3.94-4.9c.26-.28 0-.83-.37-.8H18.4v-2.7c0-3.15.4-3.62-1.25-3.66z" fill="@{overlay0}" stroke-width="0"/><path d="M7.78 19.66c-.24.02-.44.25-.44.5v2.46h-.06c-1.08 0-1.86-.03-2.4-.03-1.64 0-1.25.43-1.25 3.65v4.47c0 4.26-.56 3.62 3.65 3.62H8.5l-1.3-1.06a.57.57 0 0 1-.2-.3c-.02-.17.06-.35.2-.45l1.33-1.1H7.28c-.44 0-.72-.3-.72-.7v-4.48c0-.44.28-.72.72-.72h.06v2.5c0 .38.54.63.82.38l4.9-3.93c.25-.18.25-.6 0-.78l-4.9-3.92c-.1-.1-.24-.14-.38-.12zm9.34 2.93c-.54-.02-1.3.02-2.4.02h-1.25l1.3 1.07c.1.07.18.2.2.33.02.16-.06.3-.2.4l-1.33 1.1h1.28c.42 0 .72.28.72.72v4.47c0 .42-.3.72-.72.72h-.1v-2.47c0-.3-.3-.53-.6-.47-.07 0-.14.05-.2.1l-4.9 3.93c-.26.18-.26.6 0 .78l4.9 3.92c.27.25.82 0 .8-.38v-2.5h.1c4.27 0 3.65.67 3.65-3.62v-4.47c0-3.15.4-3.62-1.25-3.66zm-6.78 16.07a.49.49 0 0 0-.43.5v2.47H7.3c-1.08 0-1.86-.04-2.4-.04-1.64 0-1.25.43-1.25 3.65v4.47c0 3.66-.23 3.7 2.34 3.66l-1.34-1.1a.57.57 0 0 1-.2-.3c0-.17.07-.35.2-.45l1.96-1.6a.45.45 0 0 1-.04-.2v-4.48c0-.44.28-.72.72-.72H9.9v2.5c0 .36.5.6.8.38l4.93-3.93c.24-.18.24-.6 0-.78l-4.94-3.92a.52.52 0 0 0-.36-.12zm5.63 2.93 1.34 1.1c.1.07.18.2.2.33.02.16-.03.3-.16.4l-1.96 1.6c.02.07.06.13.06.22v4.47c0 .42-.3.72-.72.72h-2.66v-2.47c0-.3-.3-.53-.6-.47-.06.02-.12.05-.18.1l-4.94 3.93c-.24.18-.24.6 0 .78l4.94 3.92c.28.22.78-.02.78-.38v-2.5h2.66c4.27 0 3.65.67 3.65-3.62v-4.47c0-3.66.34-3.7-2.4-3.66zm-2.91 16.07c-.23.03-.4.26-.4.5v2.47H7.28c-1.08 0-1.86-.04-2.4-.04-1.64 0-1.25.43-1.25 3.65v4.87l2.93-2.37v-2.5c0-.44.28-.72.72-.72h5.38v2.5c0 .36.5.6.78.38l4.94-3.93c.24-.18.24-.6 0-.78l-4.94-3.92c-.1-.1-.24-.14-.38-.12zm5.3 6.15-2.92 2.4v2.52c0 .42-.3.72-.72.72h-5.4v-2.47c0-.3-.32-.53-.6-.47-.07.02-.13.05-.2.1L3.6 70.52c-.25.18-.25.6 0 .78l4.93 3.92c.28.22.78-.02.78-.38v-2.5h5.42c4.27 0 3.65.67 3.65-3.62v-4.91zm.89 14.99c-.1.03-.2.1-.28.17l-.9.9c-.44-.3-1.36-.25-3.35-.25H7.28c-1.08 0-1.86-.03-2.4-.03-1.64 0-1.25.43-1.25 3.65v.7l2.93.3v-1c0-.44.28-.72.72-.72h7.44c.2 0 .37.08.5.2l-1.8 1.8c-.25.26-.08.76.27.8l6.27.7c.28.03.56-.25.53-.53l-.7-6.25c0-.27-.3-.48-.55-.44zm-17.2 6.1c-.2.07-.36.3-.33.54l.7 6.25c.02.36.58.55.83.27l.8-.8c.02 0 .04-.02.04 0 .46.24 1.37.17 3.18.17h7.44c4.27 0 3.65.67 3.65-3.62v-.75l-2.93-.3v1.05c0 .42-.3.72-.72.72H7.28a.7.7 0 0 1-.4-.1L8.8 86.4c.3-.24.1-.8-.27-.84l-6.28-.65h-.2zm2.83 13.7c-1.33 0-1.34.48-1.3 2.3l1.14-1.37c.08-.1.22-.17.34-.2.16 0 .34.08.44.2l1.66 2.03c.04 0 .07-.03.12-.03h7.44c.34 0 .57.2.65.5h-2.43c-.34.05-.53.52-.3.78l3.92 4.95c.18.24.6.24.78 0l3.94-4.94c.22-.27-.02-.76-.37-.77H18.4c.02-3.9.6-3.4-3.66-3.4H7.28c-1.08 0-1.86-.04-2.4-.04zm.15 2.46c-.1.03-.2.1-.28.2l-3.94 4.9c-.2.28.03.77.4.78H3.6c-.02 3.94-.45 3.4 3.66 3.4h7.44c3.65 0 3.74.3 3.7-2.25l-1.1 1.34c-.1.1-.2.17-.32.2-.16 0-.34-.08-.44-.2l-1.65-2.03c-.06.02-.1.04-.18.04H7.28c-.35 0-.57-.2-.66-.5h2.44c.37 0 .63-.5.4-.78l-3.96-4.9c-.1-.15-.3-.23-.47-.2m-.15 16.54c-1.16 0-1.3.3-1.3 1.56l1.14-1.38c.08-.1.22-.14.34-.16.16 0 .34.04.44.16l2.22 2.75h7c.42 0 .72.28.72.72v.53h-2.6c-.3.1-.43.54-.2.78l3.92 4.9c.18.25.6.25.78 0l3.94-4.9c.22-.28-.02-.77-.37-.78H18.4v-.53c0-4.2.72-3.63-3.66-3.63H7.28c-1.08 0-1.86-.03-2.4-.03zm.1 1.74c-.1.03-.17.1-.23.16L.8 124.44c-.2.28.03.77.4.78h2.4v.5c0 4.26-.55 3.62 3.66 3.62h7.44c1.03 0 1.74.02 2.28 0-.16.02-.34-.03-.44-.15l-2.22-2.76H7.28c-.44 0-.72-.3-.72-.72v-.5h2.5c.37.02.63-.5.4-.78L5.5 119.5a.5.5 0 0 0-.53-.16zm12.02 10c1.2-.02 1.4-.25 1.4-1.53l-1.1 1.36c-.07.1-.17.17-.3.18zM5.94 136.6l2.37 2.93h6.42c.42 0 .72.28.72.72v1.25h-2.6c-.3.1-.43.54-.2.78l3.92 4.9c.18.25.6.25.78 0l3.94-4.9c.22-.28-.02-.77-.37-.78H18.4v-1.25c0-4.2.72-3.63-3.66-3.63H7.28c-.6 0-.92-.02-1.34-.03zm-1.72.06c-.4.08-.54.3-.6.75l.6-.74zm.84.93c-.12 0-.24.08-.3.18l-3.95 4.9c-.24.3 0 .83.4.82H3.6v1.22c0 4.26-.55 3.62 3.66 3.62h7.44c.63 0 .97.02 1.4.03l-2.37-2.93H7.28c-.44 0-.72-.3-.72-.72v-1.22h2.5c.4.04.67-.53.4-.8l-3.96-4.92c-.1-.13-.27-.2-.44-.2zm13.28 10.03-.56.7c.36-.07.5-.3.56-.7m-1.21 7.98c-.55-.02-1.32.03-2.4.03h-8.2l2.38 2.9h5.82c.42 0 .72.28.72.72v1.97H12.9c-.32.06-.48.52-.28.78l3.94 4.94c.2.23.6.22.78-.03l3.94-4.9c.22-.28-.02-.77-.37-.78H18.4v-1.97c0-3.15.4-3.62-1.25-3.66zm-12.1.28c-.1.02-.2.1-.28.18l-3.94 4.9c-.2.3.03.78.4.8H3.6v1.96c0 4.26-.55 3.62 3.66 3.62h8.24l-2.36-2.9H7.28c-.44 0-.72-.3-.72-.72v-1.97h2.5c.37.02.63-.5.4-.78l-3.96-4.9c-.1-.15-.3-.22-.47-.2zm.1 18.62c-.15 0-.3.07-.38.2L.8 179.6c-.24.27 0 .82.4.8h2.4v2.32c0 4.26-.55 3.62 3.66 3.62h7.94l-2.35-2.9h-5.6c-.43 0-.7-.3-.7-.72v-2.3h2.5c.38.03.66-.54.4-.83l-3.97-4.9a.47.47 0 0 0-.38-.2zm12 .1c-.55-.02-1.32.03-2.4.03h-7.9l2.35 2.9h5.52c.42 0 .72.28.72.72v2.34h-2.6c-.3.1-.43.53-.2.78l3.92 4.9c.18.24.6.24.78 Line truncated
|
||||
'<svg width="65" height="65" viewBox="0 0 61 65" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M60.754 14.39C59.814 7.406 53.727 1.903 46.512.836 45.294.656 40.682 0 29.997 0h-.08C19.23 0 16.938.656 15.72.836 8.705 1.873 2.299 6.82.745 13.886c-.748 3.48-.828 7.338-.689 10.877.198 5.075.237 10.142.697 15.197a71.5 71.5 0 0 0 1.664 9.968c1.477 6.056 7.458 11.096 13.317 13.152a35.7 35.7 0 0 0 19.484 1.028 28 28 0 0 0 2.107-.576c1.572-.5 3.413-1.057 4.766-2.038a.15.15 0 0 0 .062-.118v-4.899a.15.15 0 0 0-.055-.111.14.14 0 0 0-.122-.028 54 54 0 0 1-12.644 1.478c-7.328 0-9.298-3.478-9.863-4.925a15.3 15.3 0 0 1-.857-3.882.142.142 0 0 1 .178-.145 53 53 0 0 0 12.437 1.477c1.007 0 2.012 0 3.02-.026 4.213-.119 8.654-.334 12.8-1.144.103-.02.206-.038.295-.065 6.539-1.255 12.762-5.196 13.394-15.176.024-.393.083-4.115.083-4.523.003-1.386.446-9.829-.065-15.017" fill="url(#a)"/><path d="M50.394 22.237v17.35H43.52V22.749c0-3.545-1.478-5.353-4.483-5.353-3.303 0-4.958 2.139-4.958 6.364v9.217h-6.835V23.76c0-4.225-1.657-6.364-4.96-6.364-2.988 0-4.48 1.808-4.48 5.353v16.84H10.93V22.237q0-5.318 2.715-8.45c1.868-2.082 4.317-3.152 7.358-3.152 3.519 0 6.178 1.354 7.951 4.057l1.711 2.871 1.714-2.871c1.773-2.703 4.432-4.056 7.945-4.056 3.038 0 5.487 1.069 7.36 3.152q2.714 3.128 2.71 8.449" fill="@{base}"/><defs><linearGradient id="a" x1="30.5" y1="0" x2="30.5" y2="65" gradientUnits="userSpaceOnUse"><stop stop-color="@{accent}"/><stop offset="1" stop-color="@{accent}"/></linearGradient></defs></svg>'
|
||||
);
|
||||
background-image: url("data:image/svg+xml,@{svg}");
|
||||
content: url("data:image/svg+xml,@{svg}");
|
||||
}
|
||||
|
||||
.prose {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
strong {
|
||||
color: @text;
|
||||
/* Verified badge icon (e.g. profile fields) */
|
||||
svg.icon-verified {
|
||||
path[fill="url(#VerifiedGradient)"] {
|
||||
fill: @green !important;
|
||||
}
|
||||
color: @subtext0;
|
||||
}
|
||||
|
||||
.rules-list {
|
||||
color: @text;
|
||||
li::before {
|
||||
background-color: @accent;
|
||||
color: @crust;
|
||||
path[stroke="#fff"] {
|
||||
stroke: @base !important;
|
||||
}
|
||||
}
|
||||
|
||||
.about__domain-blocks__domain:nth-child(2n) {
|
||||
background-color: @surface0;
|
||||
}
|
||||
|
||||
.icon-button.active.inverted {
|
||||
color: @mantle;
|
||||
}
|
||||
|
||||
.display-name strong {
|
||||
color: @text !important;
|
||||
}
|
||||
|
||||
.boost-modal__action-bar {
|
||||
span {
|
||||
color: @subtext1;
|
||||
}
|
||||
background: @mantle;
|
||||
}
|
||||
|
||||
.emoji-mart-anchor-selected,
|
||||
.reply-indicator__content a {
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
.confirmation-modal {
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
}
|
||||
.confirmation-modal__action-bar {
|
||||
background-color: @mantle;
|
||||
}
|
||||
|
||||
.privacy-dropdown__option {
|
||||
background: @surface0;
|
||||
|
||||
.privacy-dropdown__option__content,
|
||||
strong,
|
||||
i {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.active {
|
||||
background: @accent !important;
|
||||
|
||||
.privacy-dropdown__option__content,
|
||||
strong,
|
||||
i {
|
||||
color: @crust;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.privacy-dropdown.active .privacy-dropdown__value {
|
||||
background: @accent !important;
|
||||
}
|
||||
|
||||
.privacy-dropdown.active .privacy-dropdown__value > button,
|
||||
.privacy-dropdown__value-icon.active > i {
|
||||
color: @crust !important;
|
||||
}
|
||||
|
||||
.emoji-mart-search > input {
|
||||
color: @text !important;
|
||||
}
|
||||
|
||||
.emoji-mart-search,
|
||||
.language-dropdown__dropdown__results {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.language-dropdown__dropdown {
|
||||
background: @surface1 !important;
|
||||
}
|
||||
|
||||
.language-dropdown__dropdown__results__item {
|
||||
> span {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.active {
|
||||
background: @accent;
|
||||
|
||||
> span {
|
||||
color: @crust;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.conversation__unread,
|
||||
.emoji-mart-anchor-bar,
|
||||
.compose-form__actions .icon-button.active,
|
||||
.react-toggle--checked .react-toggle-track,
|
||||
.react-toggle--checked:hover .react-toggle-track,
|
||||
.pillbar-button:not([disabled]).active,
|
||||
.pillbar-button:not([disabled]).active:focus,
|
||||
.pillbar-button:not([disabled]).active:hover,
|
||||
.radio-button__input.checked {
|
||||
background-color: @accent;
|
||||
}
|
||||
|
||||
.reactions-bar__item.active {
|
||||
background-color: fade(@accent, 25%);
|
||||
}
|
||||
|
||||
.trends__item__sparkline path:last-child {
|
||||
stroke: @accent !important;
|
||||
}
|
||||
.trends__item__sparkline path:first-child {
|
||||
fill: fade(@accent, 25%) !important;
|
||||
}
|
||||
|
||||
.icon-button,
|
||||
.notification__message .fa {
|
||||
color: @surface2;
|
||||
}
|
||||
|
||||
.icon-button:active,
|
||||
.icon-button.active,
|
||||
.icon-button:focus,
|
||||
.icon-button:hover,
|
||||
.text-icon-button:active,
|
||||
.text-icon-button:focus,
|
||||
.text-icon-button:hover,
|
||||
.public-layout .public-account-bio .account__header__fields a:hover {
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
.account__domain-pill {
|
||||
color: @accent;
|
||||
background: fade(@accent, 20%);
|
||||
}
|
||||
|
||||
.drawer__header,
|
||||
.account__section-headline button,
|
||||
.search__input,
|
||||
.search__input:focus,
|
||||
.column-link__badge,
|
||||
.column-subheading,
|
||||
.public-layout .header,
|
||||
.public-layout .public-account-header__bar::before,
|
||||
.account__header__fields,
|
||||
.account__header__fields
|
||||
dd:not(.account__header__bio .account__header__fields dd),
|
||||
.admin-wrapper .sidebar ul .simple-navigation-active-leaf .selected,
|
||||
.explore__search-header,
|
||||
.column-inline-form,
|
||||
.follow_requests-unlocked_explanation,
|
||||
.conversation--unread,
|
||||
.announcements,
|
||||
.status-card__image {
|
||||
background: @surface0 !important;
|
||||
}
|
||||
|
||||
.account__section-headline {
|
||||
background: @mantle;
|
||||
}
|
||||
|
||||
.focusable:focus {
|
||||
background: unset;
|
||||
}
|
||||
|
||||
.admin-wrapper .sidebar ul a:hover,
|
||||
.admin-wrapper .sidebar ul .simple-navigation-active-leaf a:hover,
|
||||
.detailed-status,
|
||||
.detailed-status__action-bar {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
|
||||
.admin-wrapper .sidebar ul a:hover {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.dismissable-banner {
|
||||
background: @base;
|
||||
}
|
||||
|
||||
.column-header__wrapper.active {
|
||||
box-shadow: 0 1px 0 fade(@accent, 30%);
|
||||
}
|
||||
.column-header__wrapper.active::before {
|
||||
background: radial-gradient(
|
||||
ellipse,
|
||||
fade(@accent, 23%) 0,
|
||||
rgba(99, 100, 255, 0) 60%
|
||||
);
|
||||
}
|
||||
|
||||
.account__header__bio .account__header__fields dl,
|
||||
.account__header__bio .account__header__fields,
|
||||
.boost-modal__container,
|
||||
.empty-column-indicator,
|
||||
.column > .scrollable,
|
||||
.nothing-here,
|
||||
.public-layout .public-account-bio,
|
||||
.hero-widget__text,
|
||||
&.admin,
|
||||
.admin-wrapper .sidebar ul a.selected,
|
||||
.admin-wrapper .sidebar ul ul {
|
||||
background: @base;
|
||||
}
|
||||
|
||||
.dropdown-button {
|
||||
border-color: @accent;
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
.public-layout .public-account-header__tabs__tabs .counter::after,
|
||||
.public-layout .public-account-header__tabs__tabs .counter.active::after,
|
||||
.react-toggle--checked .react-toggle-thumb,
|
||||
.radio-button__input.checked,
|
||||
.account__action-bar__tab.active {
|
||||
border-color: @accent;
|
||||
}
|
||||
|
||||
.account,
|
||||
.load-gap {
|
||||
border-color: @mantle;
|
||||
}
|
||||
|
||||
.account__section-headline a.active::after {
|
||||
border-color: transparent transparent @base;
|
||||
}
|
||||
|
||||
.account__section-headline a.active::before,
|
||||
.account__section-headline button.active::after,
|
||||
.account__section-headline button.active::before {
|
||||
border-color: transparent transparent @mantle;
|
||||
}
|
||||
|
||||
.poll__chart {
|
||||
background: @overlay0;
|
||||
&.leading {
|
||||
background: @accent;
|
||||
}
|
||||
}
|
||||
|
||||
.column-header__button {
|
||||
background: @base;
|
||||
color: @overlay2;
|
||||
|
||||
&:hover {
|
||||
background: @surface0;
|
||||
}
|
||||
}
|
||||
|
||||
.search-popout,
|
||||
.drawer__header a:hover,
|
||||
.account__section-headline button:hover,
|
||||
.account__section-headline a:hover {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.prose a,
|
||||
.column-link .active,
|
||||
.compose-form__poll__select__value,
|
||||
.column-link--transparent.active,
|
||||
.column-link--transparent:focus,
|
||||
.column-link:focus,
|
||||
.column-link--transparent:hover,
|
||||
.column-link:hover {
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
.status.collapsed .status__content::after {
|
||||
background: linear-gradient(fade(@base, 0%), @base);
|
||||
}
|
||||
|
||||
.button.button-tertiary:focus,
|
||||
.button.button-tertiary:hover,
|
||||
.button.button-tertiary:active {
|
||||
color: @base;
|
||||
}
|
||||
|
||||
.button.button-tertiary {
|
||||
border-color: @accent;
|
||||
}
|
||||
|
||||
.button,
|
||||
.button.button-tertiary,
|
||||
.button.logo-button,
|
||||
.icon-with-badge__badge {
|
||||
background: @accent;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
.button.logo-button svg {
|
||||
fill: currentcolor;
|
||||
}
|
||||
|
||||
.public-layout .header .nav-button {
|
||||
background-color: @surface1;
|
||||
}
|
||||
|
||||
.public-layout .header .nav-button:hover {
|
||||
background-color: @surface2;
|
||||
}
|
||||
|
||||
.button.button-secondary {
|
||||
background-color: transparent;
|
||||
color: @text;
|
||||
border-color: @accent;
|
||||
}
|
||||
.button.button-secondary:active,
|
||||
.button.button-secondary:focus,
|
||||
.button.button-secondary:hover {
|
||||
border-color: @accent;
|
||||
color: @base;
|
||||
transition: 0.2s;
|
||||
}
|
||||
|
||||
.button:active,
|
||||
.button:focus,
|
||||
.button:hover,
|
||||
.button.button-tertiary:active,
|
||||
.button.button-tertiary:focus,
|
||||
.button.button-tertiary:hover,
|
||||
.button.logo-button:active,
|
||||
.button.logo-button:focus,
|
||||
.button.logo-button:hover,
|
||||
.announcements__item__unread {
|
||||
background: @accent;
|
||||
}
|
||||
|
||||
select {
|
||||
background-color: @mantle;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.mute-modal__cancel-button {
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
&:hover {
|
||||
background-color: @surface0;
|
||||
}
|
||||
}
|
||||
|
||||
.drawer__inner,
|
||||
.drawer__inner__mastodon,
|
||||
.compose-form__highlightable,
|
||||
.compose-form__highlightable .autosuggest-textarea__textarea,
|
||||
.column-header,
|
||||
.column-back-button,
|
||||
.boost-modal,
|
||||
.mute-modal,
|
||||
.privacy-dropdown__dropdown,
|
||||
.explore__search-header .search__input {
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
.mute-modal__action-bar {
|
||||
background-color: @mantle;
|
||||
}
|
||||
|
||||
.mute-modal__container {
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.compose-form .compose-form__modifiers,
|
||||
.compose-form .compose-form__autosuggest-wrapper,
|
||||
.autosuggest-textarea__suggestions,
|
||||
.compose-form .spoiler-input__input {
|
||||
background: @surface0 !important;
|
||||
color: @text !important;
|
||||
}
|
||||
|
||||
.compose-form .compose-form__buttons-wrapper {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.load-more:hover {
|
||||
background-color: @mantle;
|
||||
}
|
||||
|
||||
.character-counter {
|
||||
color: @subtext0;
|
||||
}
|
||||
|
||||
.public-layout .header,
|
||||
.hero-widget,
|
||||
.public-layout .public-account-header,
|
||||
.public-layout .public-account-bio,
|
||||
.nothing-here {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.dropdown-menu__item--dangerous a {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
.search__popout,
|
||||
.dropdown-menu__arrow::before,
|
||||
.dropdown-menu__item button,
|
||||
.dropdown-menu__container__list,
|
||||
.dropdown-menu.bottom {
|
||||
background: @surface0;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.dropdown-menu__item a:hover,
|
||||
.dropdown-menu__item button:hover {
|
||||
background: @surface1;
|
||||
}
|
||||
|
||||
.input-copy,
|
||||
.simple_form input[type="text"],
|
||||
.simple_form textarea,
|
||||
.simple_form .block-button,
|
||||
.notification__filter-bar button,
|
||||
.simple_form .button,
|
||||
.simple_form button {
|
||||
background: @mantle;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.simple_form .block-button:hover,
|
||||
.simple_form .button:hover,
|
||||
.notification__filter-bar button:hover,
|
||||
.simple_form button:hover {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.simple_form .input.with_label .label_input > label,
|
||||
.simple_form select,
|
||||
.accounts-table__count,
|
||||
.simple_form textarea {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.simple_form textarea,
|
||||
.simple_form input[type="password"],
|
||||
.simple_form input[type="number"],
|
||||
.simple_form input[type="text"] {
|
||||
border-color: @crust;
|
||||
}
|
||||
|
||||
.simple_form input[type="email"]:required:valid {
|
||||
border-color: @green;
|
||||
}
|
||||
|
||||
.simple_form input[type="password"],
|
||||
.simple_form input[type="number"],
|
||||
.simple_form input[type="email"]:required:valid,
|
||||
.simple_form
|
||||
input[type="password"]:required:invalid:not(:placeholder-shown) {
|
||||
color: @text;
|
||||
background: @mantle;
|
||||
}
|
||||
|
||||
.simple_form
|
||||
input[type="password"]:required:invalid:not(:placeholder-shown) {
|
||||
border-color: @red;
|
||||
}
|
||||
|
||||
.simple_form select {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.933 18.467" height="19.698" width="15.929"><path d="m3.467 14.967-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5s-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0z" fill="@{overlay2}"/></svg>'
|
||||
);
|
||||
background: @mantle url("data:image/svg+xml,@{svg}") no-repeat right 8px
|
||||
center/auto 16px;
|
||||
border-color: @crust;
|
||||
}
|
||||
|
||||
.poll__option input[type="text"]:focus,
|
||||
.simple_form input[type="datetime-local"]:active,
|
||||
.simple_form input[type="datetime-local"]:focus,
|
||||
.simple_form input[type="email"]:active,
|
||||
.simple_form input[type="email"]:focus,
|
||||
.simple_form input[type="number"]:active,
|
||||
.simple_form input[type="number"]:focus,
|
||||
.simple_form input[type="password"]:active,
|
||||
.simple_form input[type="password"]:focus,
|
||||
.simple_form input[type="text"]:active,
|
||||
.simple_form input[type="text"]:focus,
|
||||
.simple_form input[type="url"]:active,
|
||||
.simple_form input[type="url"]:focus,
|
||||
.simple_form textarea:active,
|
||||
.simple_form textarea:focus {
|
||||
border-color: @accent !important;
|
||||
background: @mantle !important;
|
||||
color: @text !important;
|
||||
}
|
||||
|
||||
.table > thead > tr > th,
|
||||
.setting-text:active,
|
||||
.setting-text:focus {
|
||||
border-color: @accent !important;
|
||||
}
|
||||
|
||||
.batch-table__toolbar,
|
||||
.table > thead > tr > th {
|
||||
background: @surface0 !important;
|
||||
color: @text !important;
|
||||
}
|
||||
|
||||
.simple_form input[type="datetime-local"]:hover,
|
||||
.simple_form input[type="email"]:hover,
|
||||
.simple_form input[type="number"]:hover,
|
||||
.simple_form input[type="password"]:hover,
|
||||
.simple_form input[type="text"]:hover,
|
||||
.simple_form input[type="url"]:hover,
|
||||
.simple_form textarea:hover {
|
||||
background: @mantle !important;
|
||||
border-color: @accent !important;
|
||||
transition: 0.4s;
|
||||
}
|
||||
|
||||
.batch-table__row {
|
||||
background: @surface1;
|
||||
}
|
||||
|
||||
.batch-table__row:hover,
|
||||
.batch-table__row:nth-child(2n):hover {
|
||||
background: @surface2;
|
||||
}
|
||||
|
||||
.batch-table__row:nth-child(2n),
|
||||
.table > tbody > tr > td {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.table > thead > tr > th {
|
||||
border-bottom-color: @surface0;
|
||||
}
|
||||
|
||||
.positive-hint {
|
||||
color: @green !important;
|
||||
}
|
||||
|
||||
.card__bar {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.reply-indicator {
|
||||
background: @surface1;
|
||||
}
|
||||
|
||||
.getting-started,
|
||||
.getting-started__wrapper {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
.column-link {
|
||||
color: @text;
|
||||
|
||||
&:hover {
|
||||
color: @accent;
|
||||
}
|
||||
}
|
||||
|
||||
.search__popout h4 {
|
||||
color: @subtext0;
|
||||
}
|
||||
.search__popout__menu__item mark {
|
||||
color: @text;
|
||||
}
|
||||
.search__popout__menu__item.selected,
|
||||
.search__popout__menu__item:active,
|
||||
.search__popout__menu__item:focus,
|
||||
.search__popout__menu__item:hover {
|
||||
background: @surface1;
|
||||
color: @text;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user