fix: now works on default firefox (#161)

This commit is contained in:
Isabel authored and GitHub committed 2023-08-07 08:24:44 +01:00
1 parent 4bbac52482
commit 12c9ddb55e
1 file changed
+87 -151
+87 -151
View File
@@ -6,7 +6,7 @@
@description Soothing pastel theme for Mastodon @description Soothing pastel theme for Mastodon
@author Catppuccin @author Catppuccin
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/mastodon/catppuccin.user.css @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/mastodon/catppuccin.user.css
@license MIT @license MIT
@preprocessor less @preprocessor less
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"] @var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
@@ -16,25 +16,33 @@
@-moz-document domain("mstdn.social"), @-moz-document domain("mstdn.social"),
domain("fosstodon.org"), domain("fosstodon.org"),
domain("tech.lgbt"), domain("tech.lgbt"),
domain("mastodon.social") { domain("mastodon.social"),
domain("piaille.fr") {
.theme-mastodon-light, .theme-mastodon-light,
:root:has(.theme-mastodon-light), .skin-mastodon-light {
.skin-mastodon-light,
:root:has(.skin-mastodon-light) {
#mastodon(@lightFlavor, @accentColor); #mastodon(@lightFlavor, @accentColor);
} }
.theme-default,
.theme-contrast, .theme-contrast,
:root:has(.theme-default), .skin-contrast {
:root:has(.theme-contrast),
.skin-default,
.skin-contrast,
:root:has(.skin-default),
:root:has(.skin-contrast) {
#mastodon(@darkFlavor, @accentColor); #mastodon(@darkFlavor, @accentColor);
} }
@media (prefers-color-scheme: light) {
.theme-default,
.skin-default {
#mastodon(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
.theme-default,
.skin-default {
#mastodon(@darkFlavor, @accentColor);
}
}
#mastodon(@lookup, @accent) { #mastodon(@lookup, @accent) {
@catppuccin: { @catppuccin: {
@latte: { @latte: {
@@ -64,7 +72,7 @@ domain("mastodon.social") {
@base: #eff1f5; @base: #eff1f5;
@mantle: #e6e9ef; @mantle: #e6e9ef;
@crust: #dce0e8; @crust: #dce0e8;
}; }
@frappe: { @frappe: {
@rosewater: #f2d5cf; @rosewater: #f2d5cf;
@flamingo: #eebebe; @flamingo: #eebebe;
@@ -92,7 +100,7 @@ domain("mastodon.social") {
@base: #303446; @base: #303446;
@mantle: #292c3c; @mantle: #292c3c;
@crust: #232634; @crust: #232634;
}; }
@macchiato: { @macchiato: {
@rosewater: #f4dbd6; @rosewater: #f4dbd6;
@flamingo: #f0c6c6; @flamingo: #f0c6c6;
@@ -120,7 +128,7 @@ domain("mastodon.social") {
@base: #24273a; @base: #24273a;
@mantle: #1e2030; @mantle: #1e2030;
@crust: #181926; @crust: #181926;
}; }
@mocha: { @mocha: {
@rosewater: #f5e0dc; @rosewater: #f5e0dc;
@flamingo: #f2cdcd; @flamingo: #f2cdcd;
@@ -148,8 +156,8 @@ domain("mastodon.social") {
@base: #1e1e2e; @base: #1e1e2e;
@mantle: #181825; @mantle: #181825;
@crust: #11111b; @crust: #11111b;
}; }
}; }
@rosewater: @catppuccin[@@lookup][@rosewater]; @rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo]; @flamingo: @catppuccin[@@lookup][@flamingo];
@@ -177,9 +185,9 @@ domain("mastodon.social") {
@base: @catppuccin[@@lookup][@base]; @base: @catppuccin[@@lookup][@base];
@mantle: @catppuccin[@@lookup][@mantle]; @mantle: @catppuccin[@@lookup][@mantle];
@crust: @catppuccin[@@lookup][@crust]; @crust: @catppuccin[@@lookup][@crust];
@accent-Color: @catppuccin[@@lookup][@@accent]; @accent-color: @catppuccin[@@lookup][@@accent];
body, &,
.tabs-bar__wrapper, .tabs-bar__wrapper,
.admin-wrapper .sidebar-wrapper__inner { .admin-wrapper .sidebar-wrapper__inner {
background: @crust; background: @crust;
@@ -193,6 +201,7 @@ domain("mastodon.social") {
.search-popout, .search-popout,
.search-popout em, .search-popout em,
.dismissable-banner__message, .dismissable-banner__message,
.dismissable-banner__message h1,
.account__header__bio .account__header__fields dt, .account__header__bio .account__header__fields dt,
.account__section-headline a.active, .account__section-headline a.active,
.account__section-headline button.active, .account__section-headline button.active,
@@ -212,6 +221,7 @@ domain("mastodon.social") {
color: @text; color: @text;
} }
.search-popout span, .search-popout span,
.link-footer p, .link-footer p,
.link-footer p a { .link-footer p a {
@@ -228,12 +238,12 @@ domain("mastodon.social") {
.label_input .search__input, .label_input .search__input,
.search__input:focus, .search__input:focus,
.account__header__fields dt { .account__header__fields dt {
color: @subtext0; color: @subtext0
} }
.compose-panel hr, .compose-panel hr,
.navigation-panel hr { .navigation-panel hr {
border-top-color: @subtext0; border-top-color: @subtext0
} }
.trends__item, .trends__item,
@@ -241,9 +251,10 @@ domain("mastodon.social") {
.getting-started__trends h4, .getting-started__trends h4,
.trends__item__name span, .trends__item__name span,
.story { .story {
border-color: @surface0; border-color: @surface0
} }
.account__header__tabs__name h1, .account__header__tabs__name h1,
.account__header__content a, .account__header__content a,
.account__header__bio .account__header__fields a, .account__header__bio .account__header__fields a,
@@ -258,7 +269,7 @@ domain("mastodon.social") {
.navigation-bar strong, .navigation-bar strong,
.reply-indicator__content a.unhandled-link, .reply-indicator__content a.unhandled-link,
.status__content a.unhandled-link { .status__content a.unhandled-link {
color: @accent-Color; color: @accent-color;
} }
.icon-button, .icon-button,
@@ -266,6 +277,7 @@ domain("mastodon.social") {
color: @surface2; color: @surface2;
} }
.icon-button:active, .icon-button:active,
.icon-button:focus, .icon-button:focus,
.icon-button:hover, .icon-button:hover,
@@ -276,7 +288,7 @@ domain("mastodon.social") {
.icon-button.inverted:focus, .icon-button.inverted:focus,
.icon-button.inverted:hover, .icon-button.inverted:hover,
.public-layout .public-account-bio .account__header__fields a:hover { .public-layout .public-account-bio .account__header__fields a:hover {
color: @accent-Color; color: @accent-color;
} }
.ui__header, .ui__header,
@@ -298,8 +310,7 @@ domain("mastodon.social") {
.public-layout .public-account-header__bar::before, .public-layout .public-account-header__bar::before,
.account__header__fields, .account__header__fields,
.account__header__fields dt, .account__header__fields dt,
.account__header__fields .account__header__fields dd:not(.account__header__bio .account__header__fields dd),
dd:not(.account__header__bio .account__header__fields dd),
.focusable:focus, .focusable:focus,
.admin-wrapper .sidebar ul .simple-navigation-active-leaf .selected { .admin-wrapper .sidebar ul .simple-navigation-active-leaf .selected {
border-color: @mantle; border-color: @mantle;
@@ -325,19 +336,20 @@ domain("mastodon.social") {
.nothing-here, .nothing-here,
.public-layout .public-account-bio, .public-layout .public-account-bio,
.hero-widget__text, .hero-widget__text,
body.admin, &.admin,
.admin-wrapper .sidebar ul a.selected, .admin-wrapper .sidebar ul a.selected,
.admin-wrapper .sidebar ul ul { .admin-wrapper .sidebar ul ul {
border-color: @mantle; border-color: @mantle;
background: @base; background: @base;
} }
.public-layout .public-account-header__tabs__tabs .counter::after { .public-layout .public-account-header__tabs__tabs .counter::after {
border-color: @accent-Color; border-color: @accent-color;
} }
.public-layout .public-account-header__tabs__tabs .counter.active::after { .public-layout .public-account-header__tabs__tabs .counter.active::after {
border-color: @accent-Color; border-color: @accent-color;
} }
.account, .account,
@@ -372,16 +384,12 @@ domain("mastodon.social") {
.column-link--transparent.active, .column-link--transparent.active,
.column-link--transparent:focus, .column-link--transparent:focus,
.column-link:focus { .column-link:focus {
color: @accent-Color; color: @accent-color;
} }
.column-link--transparent:hover, .column-link--transparent:hover,
.column-link:hover { .column-link:hover {
color: @accent-Color; color: @accent-color;
}
.follow_requests-unlocked_explanation {
background: @base;
} }
.status.collapsed .status__content:after { .status.collapsed .status__content:after {
@@ -395,13 +403,13 @@ domain("mastodon.social") {
} }
.button.button-tertiary { .button.button-tertiary {
border-color: @accent-Color; border-color: @accent-color;
} }
.button, .button,
.button.button-tertiary, .button.button-tertiary,
.button.logo-button { .button.logo-button {
background: @accent-Color; background: @accent-color;
color: @base; color: @base;
} }
@@ -409,6 +417,7 @@ domain("mastodon.social") {
fill: currentColor; fill: currentColor;
} }
.public-layout .header .nav-button { .public-layout .header .nav-button {
background-color: @surface1; background-color: @surface1;
} }
@@ -420,9 +429,9 @@ domain("mastodon.social") {
.button.button-secondary:active, .button.button-secondary:active,
.button.button-secondary:focus, .button.button-secondary:focus,
.button.button-secondary:hover { .button.button-secondary:hover {
border-color: @accent-Color; border-color: @accent-color;
color: @base; color: @base;
transition: 0.4s; transition: .4s;
} }
.button:active, .button:active,
@@ -434,7 +443,7 @@ domain("mastodon.social") {
.button.logo-button:active, .button.logo-button:active,
.button.logo-button:focus, .button.logo-button:focus,
.button.logo-button:hover { .button.logo-button:hover {
background: @accent-Color; background: @accent-color;
} }
.drawer__inner, .drawer__inner,
@@ -444,13 +453,14 @@ domain("mastodon.social") {
.compose-form .compose-form__modifiers, .compose-form .compose-form__modifiers,
.compose-form .autosuggest-textarea__textarea, .compose-form .autosuggest-textarea__textarea,
.compose-form .compose-form__autosuggest-wrapper,
.compose-form .spoiler-input__input { .compose-form .spoiler-input__input {
background: @surface1; background: @surface1 !important;
color: @text; color: @text !important;
} }
.compose-form .autosuggest-textarea__textarea::placeholder { .compose-form .autosuggest-textarea__textarea::placeholder {
color: @subtext0; color: @subtext0
} }
.compose-form .compose-form__buttons-wrapper { .compose-form .compose-form__buttons-wrapper {
@@ -461,9 +471,8 @@ domain("mastodon.social") {
background-color: @mantle; background-color: @mantle;
} }
.character-counter { .character-counter {
color: @subtext0; color: @subtext0
} }
.public-layout .header, .public-layout .header,
@@ -474,37 +483,6 @@ domain("mastodon.social") {
box-shadow: none; box-shadow: none;
} }
.emoji-picker-dropdown__menu {
background: @surface1;
color: @text;
* {
border-color: @overlay0;
}
.emoji-mart-anchor-bar {
background: @accent-Color;
}
.emoji-mart-anchor-selected {
color: @accent-Color !important;
}
.emoji-mart-anchor {
color: @surface2;
}
.emoji-mart-search input {
color: @text;
&::placeholder {
color: @text;
}
}
.emoji-mart-bar:first-child {
color: @text;
background: @surface0;
}
.emoji-mart-search, .emoji-mart-scroll, .emoji-mart-category-label span {
color: @text;
background: @surface1;
}
}
.dropdown-menu__arrow:before, .dropdown-menu__arrow:before,
.dropdown-menu__item a, .dropdown-menu__item a,
.dropdown-menu__item button, .dropdown-menu__item button,
@@ -520,7 +498,7 @@ domain("mastodon.social") {
} }
.input-copy, .input-copy,
.simple_form input[type="text"], .simple_form input[type=text],
.simple_form textarea, .simple_form textarea,
.simple_form .block-button, .simple_form .block-button,
.simple_form .button, .simple_form .button,
@@ -543,58 +521,54 @@ domain("mastodon.social") {
} }
.simple_form textarea, .simple_form textarea,
.simple_form input[type="password"], .simple_form input[type=password],
.simple_form input[type="number"], .simple_form input[type=number],
.simple_form input[type="text"] { .simple_form input[type=text] {
border: 1px solid @crust; border: 1px solid @crust;
} }
.simple_form input[type="email"]:required:valid { .simple_form input[type=email]:required:valid {
border: 1px solid @green; border: 1px solid @green
} }
.simple_form input[type="password"], .simple_form input[type=password],
.simple_form input[type="number"], .simple_form input[type=number],
.simple_form input[type="email"]:required:valid, .simple_form input[type=email]:required:valid,
.simple_form .simple_form input[type=password]:required:invalid:not(:placeholder-shown) {
input[type="password"]:required:invalid:not(:placeholder-shown) {
color: @text; color: @text;
background: @mantle; background: @mantle;
} }
.simple_form .simple_form input[type=password]:required:invalid:not(:placeholder-shown) {
input[type="password"]:required:invalid:not(:placeholder-shown) {
border: 1px solid @red; border: 1px solid @red;
} }
.simple_form select { .simple_form select {
background: @mantle background: @mantle url("data:image/svg+xml;utf8,<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.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='%2342485A'/></svg>") no-repeat right 8px center/auto 16px;
url("data:image/svg+xml;utf8,<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.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='%2342485A'/></svg>")
no-repeat right 8px center/auto 16px;
border: 1px solid @crust; border: 1px solid @crust;
} }
.simple_form input[type="datetime-local"]:active, .simple_form input[type=datetime-local]:active,
.simple_form input[type="datetime-local"]:focus, .simple_form input[type=datetime-local]:focus,
.simple_form input[type="email"]:active, .simple_form input[type=email]:active,
.simple_form input[type="email"]:focus, .simple_form input[type=email]:focus,
.simple_form input[type="number"]:active, .simple_form input[type=number]:active,
.simple_form input[type="number"]:focus, .simple_form input[type=number]:focus,
.simple_form input[type="password"]:active, .simple_form input[type=password]:active,
.simple_form input[type="password"]:focus, .simple_form input[type=password]:focus,
.simple_form input[type="text"]:active, .simple_form input[type=text]:active,
.simple_form input[type="text"]:focus, .simple_form input[type=text]:focus,
.simple_form input[type="url"]:active, .simple_form input[type=url]:active,
.simple_form input[type="url"]:focus, .simple_form input[type=url]:focus,
.simple_form textarea:active, .simple_form textarea:active,
.simple_form textarea:focus { .simple_form textarea:focus {
border-color: @accent-Color !important; border-color: @accent-color !important;
background: @mantle !important; background: @mantle !important;
color: @text !important; color: @text !important;
} }
.table > thead > tr > th { .table > thead > tr > th {
border-color: @accent-Color !important; border-color: @accent-color !important;
} }
.batch-table__toolbar, .batch-table__toolbar,
@@ -603,15 +577,15 @@ domain("mastodon.social") {
color: @text !important; color: @text !important;
} }
.simple_form input[type="datetime-local"]:hover, .simple_form input[type=datetime-local]:hover,
.simple_form input[type="email"]:hover, .simple_form input[type=email]:hover,
.simple_form input[type="number"]:hover, .simple_form input[type=number]:hover,
.simple_form input[type="password"]:hover, .simple_form input[type=password]:hover,
.simple_form input[type="text"]:hover, .simple_form input[type=text]:hover,
.simple_form input[type="url"]:hover, .simple_form input[type=url]:hover,
.simple_form textarea:hover { .simple_form textarea:hover {
background: @mantle !important; background: @mantle !important;
border-color: @accent-Color !important; border-color: @accent-color !important;
transition: 0.4s; transition: 0.4s;
} }
@@ -640,43 +614,5 @@ domain("mastodon.social") {
.card__bar { .card__bar {
background: @surface0; background: @surface0;
} }
.reply-indicator {
background: @surface0;
color: @text;
a,
.display-name__html {
color: @accent-Color;
}
}
/* glitch support */
.glitch {
.local-settings__navigation {
background: @base;
.active {
background: @accent-Color;
color: @base;
}
.close {
background: @red;
color: @base;
}
.local-settings__navigation__item {
border-bottom-color: @surface1;
&:not(.active, .close) {
background: @base;
color: @text;
}
}
}
.local-settings, .local-settings__page {
background: @surface0;
color: @text;
span.hint {
color: @subtext0;
}
}
}
} }
} }