fix(brave-search): add variables to .is-serp class (#1611)

This commit is contained in:
mxgic1337_ authored and GitHub committed 2025-01-31 21:18:23 -05:00
1 parent 9acc6c9863
commit cc19e8936d
1 file changed
+41 -31
+41 -31
View File
@@ -73,33 +73,34 @@
} }
} }
--color-page-background: @base; &, .is-serp {
--color-container-background: @crust; --color-page-background: @base;
--color-container-highlight: @mantle; --color-container-background: @crust;
--color-serp-header-background: @crust; --color-container-highlight: @mantle;
--color-text-interactive: @accent; --color-serp-header-background: @crust;
--color-divider-subtle: @surface0; --color-text-interactive: @accent;
--color-divider-interactive: @accent; --color-divider-subtle: @surface0;
--color-text-primary: @text; --color-divider-interactive: @accent;
--color-serp-bar-bg: @mantle; --color-text-primary: @text;
--color-serp-divider-subtle-container: @surface0; --color-serp-bar-bg: @mantle;
--color-gray-30: @subtext0; --color-serp-divider-subtle-container: @surface0;
--color-gray-40: @overlay2; --color-gray-30: @subtext0;
--color-text-secondary: @subtext1; --color-gray-40: @overlay2;
--color-text-tertiary: @subtext0; --color-text-secondary: @subtext1;
--color-icon-default: @overlay2; --color-text-tertiary: @subtext0;
--color-serp-snippet-background: @base; --color-icon-default: @overlay2;
--color-link-default: @blue; --color-serp-snippet-background: @base;
--color-link-visited: @mauve; --color-link-default: @blue;
--color-tabs-search-text-default: @accent; --color-link-visited: @mauve;
--color-primary-50: @accent; --color-tabs-search-text-default: @accent;
--color-primitive-primary-60: @accent; --color-primary-50: @accent;
--color-primitive-primary-70: darken(@accent, 5%); --color-primitive-primary-60: @accent;
--color-container-interactive: transparent; --color-primitive-primary-70: darken(@accent, 5%);
--color-button-background: @accent; --color-container-interactive: transparent;
--color-button-disabled: fade(@surface2, 30%); --color-button-background: @accent;
--color-serp-settings-background: @mantle; --color-button-disabled: fade(@surface2, 30%);
--color-serp-settings-background: @mantle;
}
dialog { dialog {
color: @text; color: @text;
@@ -114,7 +115,11 @@
#searchform-actions::before { #searchform-actions::before {
background: none !important; background: none !important;
} }
#submit-button { #submit-button, #submit-llm-button {
svg {
fill: @overlay2;
}
&:hover:not(:disabled) { &:hover:not(:disabled) {
background: linear-gradient( background: linear-gradient(
314deg, 314deg,
@@ -122,12 +127,17 @@
@pink 43.72%, @pink 43.72%,
@mauve 99.51% @mauve 99.51%
); );
}
svg { svg {
fill: @overlay2; fill: @base;
}
} }
} }
#clear-query-button svg {
fill: @overlay2;
}
#searchbox::placeholder { #searchbox::placeholder {
color: @subtext0; color: @subtext0;
} }