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;
--color-container-background: @crust;
--color-container-highlight: @mantle;
--color-serp-header-background: @crust;
--color-text-interactive: @accent;
--color-divider-subtle: @surface0;
--color-divider-interactive: @accent;
--color-text-primary: @text;
--color-serp-bar-bg: @mantle;
--color-serp-divider-subtle-container: @surface0;
--color-gray-30: @subtext0;
--color-gray-40: @overlay2;
--color-text-secondary: @subtext1;
--color-text-tertiary: @subtext0;
--color-icon-default: @overlay2;
--color-serp-snippet-background: @base;
--color-link-default: @blue;
--color-link-visited: @mauve;
--color-tabs-search-text-default: @accent;
--color-primary-50: @accent;
--color-primitive-primary-60: @accent;
--color-primitive-primary-70: darken(@accent, 5%);
--color-container-interactive: transparent;
--color-button-background: @accent;
--color-button-disabled: fade(@surface2, 30%);
--color-serp-settings-background: @mantle;
&, .is-serp {
--color-page-background: @base;
--color-container-background: @crust;
--color-container-highlight: @mantle;
--color-serp-header-background: @crust;
--color-text-interactive: @accent;
--color-divider-subtle: @surface0;
--color-divider-interactive: @accent;
--color-text-primary: @text;
--color-serp-bar-bg: @mantle;
--color-serp-divider-subtle-container: @surface0;
--color-gray-30: @subtext0;
--color-gray-40: @overlay2;
--color-text-secondary: @subtext1;
--color-text-tertiary: @subtext0;
--color-icon-default: @overlay2;
--color-serp-snippet-background: @base;
--color-link-default: @blue;
--color-link-visited: @mauve;
--color-tabs-search-text-default: @accent;
--color-primary-50: @accent;
--color-primitive-primary-60: @accent;
--color-primitive-primary-70: darken(@accent, 5%);
--color-container-interactive: transparent;
--color-button-background: @accent;
--color-button-disabled: fade(@surface2, 30%);
--color-serp-settings-background: @mantle;
}
dialog {
color: @text;
@@ -114,7 +115,11 @@
#searchform-actions::before {
background: none !important;
}
#submit-button {
#submit-button, #submit-llm-button {
svg {
fill: @overlay2;
}
&:hover:not(:disabled) {
background: linear-gradient(
314deg,
@@ -122,12 +127,17 @@
@pink 43.72%,
@mauve 99.51%
);
}
svg {
fill: @overlay2;
svg {
fill: @base;
}
}
}
#clear-query-button svg {
fill: @overlay2;
}
#searchbox::placeholder {
color: @subtext0;
}