Skip to content

Commit af374b0

Browse files
committed
Fix search styles
1 parent a6380af commit af374b0

File tree

1 file changed

+15
-26
lines changed

1 file changed

+15
-26
lines changed

src/nextra-theme-docs.css

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,13 +1059,6 @@ video {
10591059
--tw-text-opacity: 1;
10601060
color: rgb(154 52 18 / var(--tw-text-opacity, 1));
10611061
}
1062-
._text-primary-600 {
1063-
--tw-text-opacity: 1;
1064-
color: hsl(
1065-
var(--nextra-primary-hue) var(--nextra-primary-saturation)
1066-
calc(var(--nextra-primary-lightness) + 0%) / var(--tw-text-opacity, 1)
1067-
);
1068-
}
10691062
._text-primary-800 {
10701063
--tw-text-opacity: 1;
10711064
color: hsl(
@@ -1955,11 +1948,7 @@ body:is(html[class~="dark"] *) {
19551948
}
19561949
.nextra-content {
19571950
--tw-text-opacity: 1;
1958-
color: rgb(51 65 85 / var(--tw-text-opacity, 1));
1959-
}
1960-
.nextra-content:is(html[class~="dark"] *) {
1961-
--tw-text-opacity: 1;
1962-
color: rgb(226 232 240 / var(--tw-text-opacity, 1));
1951+
color: hsl(var(--color-neu-800) / var(--tw-text-opacity, 1));
19631952
}
19641953
@media (max-width: 767px) {
19651954
.nextra-sidebar-container {
@@ -2351,13 +2340,6 @@ body,
23512340
.contrast-more\:_font-bold {
23522341
font-weight: 700;
23532342
}
2354-
.contrast-more\:\!_text-primary-600 {
2355-
--tw-text-opacity: 1 !important;
2356-
color: hsl(
2357-
var(--nextra-primary-hue) var(--nextra-primary-saturation)
2358-
calc(var(--nextra-primary-lightness) + 0%) / var(--tw-text-opacity, 1)
2359-
) !important;
2360-
}
23612343
.contrast-more\:_text-current {
23622344
color: currentColor;
23632345
}
@@ -2540,13 +2522,6 @@ body,
25402522
--tw-text-opacity: 1;
25412523
color: rgb(253 186 116 / var(--tw-text-opacity, 1));
25422524
}
2543-
.dark\:_text-primary-600:is(html[class~="dark"] *) {
2544-
--tw-text-opacity: 1;
2545-
color: hsl(
2546-
var(--nextra-primary-hue) var(--nextra-primary-saturation)
2547-
calc(var(--nextra-primary-lightness) + 0%) / var(--tw-text-opacity, 1)
2548-
);
2549-
}
25502525
.dark\:_text-red-200:is(html[class~="dark"] *) {
25512526
--tw-text-opacity: 1;
25522527
color: rgb(254 202 202 / var(--tw-text-opacity, 1));
@@ -2968,6 +2943,9 @@ body,
29682943
rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
29692944
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
29702945
}
2946+
2947+
/* additions */
2948+
29712949
body.nextra-banner-hidden .\[body\.nextra-banner-hidden_\&\]\:_hidden {
29722950
display: none;
29732951
}
@@ -2986,3 +2964,14 @@ kbd._border._gap-1 {
29862964
color: hsl(var(--color-neu-500));
29872965
}
29882966
}
2967+
2968+
.nextra-search-results {
2969+
& .\_text-primary-600 {
2970+
color: hsl(var(--color-pri-base));
2971+
}
2972+
}
2973+
.dark .nextra-search-results {
2974+
& .\_text-primary-600 {
2975+
color: hsl(var(--color-pri-light));
2976+
}
2977+
}

0 commit comments

Comments
 (0)