fix(pinterest): search guide and search suggestions (#1654)
* fix(pinterest): messing --color-background-box-darkwash variable * fix(pinterest): adding --color-icon-dark variable `--color-icon-dark` is same as `--color-icon-default` on the original theme. * fix(pinterest): searchguide variables colors pinterest make for searchguide variables instead of inline-styles. * fix(pinterest): color-text-light and dark switching * fix(pinterest): searchguides gradient
This commit is contained in:
1 parent
0499dfc3eb
commit
f68f909102
1 file changed
+21
-49
@@ -102,6 +102,7 @@
|
||||
--color-background-box-secondary: @surface0;
|
||||
--color-background-box-info-base: @blue;
|
||||
--color-background-box-info-weak: fade(@blue, 20%);
|
||||
--color-background-box-darkwash: @surface1;
|
||||
--color-background-overlay: @surface0;
|
||||
--color-background-popover-primary: @base;
|
||||
--color-background-popover-secondary: @overlay2;
|
||||
@@ -156,6 +157,7 @@
|
||||
--color-text-success: @green;
|
||||
--color-text-warning: @yellow;
|
||||
--color-icon-default: @subtext1;
|
||||
--color-icon-dark: @subtext1;
|
||||
--color-icon-success: @green;
|
||||
--color-icon-warning: @yellow;
|
||||
--color-icon-: @red;
|
||||
@@ -206,6 +208,22 @@
|
||||
--color-background-warning-base: @peach;
|
||||
--color-background-success-base: @green;
|
||||
|
||||
@colors: {
|
||||
01: @blue;
|
||||
02: @teal;
|
||||
06: @sapphire;
|
||||
07: @green;
|
||||
08: @yellow;
|
||||
09: @pink;
|
||||
10: @mauve;
|
||||
11: @crust;
|
||||
};
|
||||
|
||||
each(@colors, {
|
||||
--color-background-searchguide-default-@{key}: @value;
|
||||
--color-background-searchguide-hover-@{key}: if(@key = 11, @value, lighten(@value, 4%));
|
||||
});
|
||||
|
||||
|
||||
body {
|
||||
background-color: @base;
|
||||
@@ -302,59 +320,13 @@
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
div[data-test-id="one-bar-pill"] {
|
||||
div {
|
||||
color: @base !important;
|
||||
}
|
||||
|
||||
.PLa {
|
||||
color: var(--color-text-icon-light) !important;
|
||||
}
|
||||
|
||||
.R19 {
|
||||
color: var(--color-text-icon-dark) !important;
|
||||
}
|
||||
|
||||
&[style*='background-color: rgb(215, 237, 255)'] {
|
||||
background-color: @blue !important;
|
||||
}
|
||||
&[style*='background-color: rgb(218, 212, 255)'] {
|
||||
background-color: @mauve !important;
|
||||
}
|
||||
&[style*='background-color: rgb(255, 226, 235)'] {
|
||||
background-color: @pink !important;
|
||||
}
|
||||
&[style*='background-color: rgb(255, 228, 193)'] {
|
||||
background-color: @maroon !important;
|
||||
}
|
||||
&[style*='background-color: rgb(255, 253, 146)'] {
|
||||
background-color: @yellow !important;
|
||||
}
|
||||
&[style*='background-color: rgb(207, 255, 202)'] {
|
||||
background-color: @green !important;
|
||||
}
|
||||
&[style*='background-color: rgb(218, 255, 246)'] {
|
||||
background-color: @teal !important;
|
||||
}
|
||||
div[data-test-id="product-price-filter-one-bar-pill"] button[data-test-id="one-bar-pill"] svg {
|
||||
color: @base !important;
|
||||
}
|
||||
|
||||
div[data-test-id='one-bar-pill-cover-image-container'] {
|
||||
border-color: transparent !important;
|
||||
}
|
||||
|
||||
div[data-test-id="one-bar-navigation-arrows"] {
|
||||
background: linear-gradient(to left, @base, transparent 40px) !important;
|
||||
background: linear-gradient(to left, @base, transparent 40px), linear-gradient(to right, @base, transparent 40px) !important;
|
||||
}
|
||||
|
||||
div[data-test-id="one-bar-module-0"] div[data-test-id="one-bar-pill"] {
|
||||
background-color: var(--color-background-box-default) !important;
|
||||
svg {
|
||||
fill: var(--color-text-icon-subtle) !important;
|
||||
}
|
||||
&:has(.AR6) {
|
||||
background-color: var(--color-background-box-secondary) !important;
|
||||
}
|
||||
}
|
||||
|
||||
div#searchBoxContainer {
|
||||
// search bar
|
||||
|
||||
Reference in new issue
Block a user