19
19
}
20
20
21
21
body {
22
- @apply _w-full _bg-white dark:_bg-dark dark:_text-gray-100;
22
+ @apply _w-full dark:_text-gray-100;
23
23
}
24
24
25
25
a ,
@@ -44,7 +44,7 @@ summary {
44
44
45
45
@media (max-width : 767px ) {
46
46
.nextra-sidebar-container {
47
- @apply _fixed _pt-[calc (var (--nextra-navbar-height ))] _top-0 _w-full _bottom-0 _z-[15 ] _overscroll-contain _bg-white dark:_bg-dark ;
47
+ @apply _fixed _pt-[calc (var (--nextra-navbar-height ))] _top-0 _w-full _bottom-0 _z-[15 ] _overscroll-contain;
48
48
transition : transform 0.8s cubic-bezier (0.52 , 0.16 , 0.04 , 1 );
49
49
will-change : transform, opacity;
50
50
contain : layout style;
@@ -103,17 +103,6 @@ summary::-webkit-details-marker {
103
103
}
104
104
}
105
105
106
- @supports (
107
- (-webkit-backdrop-filter : blur (1px )) or (backdrop-filter : blur (1px ))
108
- ) {
109
- .nextra-search ul {
110
- @apply _backdrop-blur-lg _bg-white/70 dark:_bg-dark/80;
111
- }
112
- .nextra-nav-container-blur {
113
- @apply _backdrop-blur-md _bg-white/ [.85 ] dark:!_bg-dark/80;
114
- }
115
- }
116
-
117
106
input [type = 'search' ] {
118
107
& ::-webkit-search-decoration ,
119
108
& ::-webkit-search-cancel-button ,
@@ -166,3 +155,39 @@ input[type='search'] {
166
155
opacity : 1 ;
167
156
}
168
157
}
158
+
159
+ body ,
160
+ .nextra-nav-container-blur ,
161
+ .nextra-toc-footer ,
162
+ .nextra-sidebar-footer {
163
+ @apply _bg-[rgb (var (--nextra-bg ))];
164
+ }
165
+ .nextra-sidebar-container {
166
+ @apply max-md:_bg-[rgb (var (--nextra-bg ))];
167
+ }
168
+
169
+ .nextra-nav-container-blur {
170
+ @apply _pointer-events-none _absolute _z-[-1 ] _size-full;
171
+ @apply _shadow-[0_2px _4px _rgba(0 , 0 , 0 , .02 ), 0_1px _0_rgba(0 , 0 , 0 , .06 )];
172
+ @apply dark:_shadow-[0_-1px _0 _rgba(255, 255 , 255 , .1 )_inset];
173
+ @apply contrast-more:_shadow-[0_0_0_1px _# 000 ];
174
+ @apply contrast-more:dark:_shadow-[0_0_0_1px _# fff ];
175
+ @apply _backdrop-blur-md _bg-[rgba (var (--nextra-bg ), .7 )];
176
+ }
177
+
178
+ .nextra-toc-footer ,
179
+ .nextra-sidebar-footer {
180
+ @apply _border-t dark:_border-neutral-800;
181
+ @apply contrast-more:_shadow-none contrast-more:_border-neutral-400 contrast-more:dark:_border-neutral-400;
182
+ @apply _shadow-[0_-12px _16px _rgb(var(- -nextra-bg))];
183
+ }
184
+
185
+ .nextra-search-results {
186
+ @apply _border _border-gray-200 _text-gray-100 dark:_border-neutral-800;
187
+ @apply _absolute _top-full _z-20 _mt-2 _overflow-auto _overscroll-contain _rounded-xl _py-2.5 _shadow-xl;
188
+ @apply _max-h-[min (calc (50 vh-11rem-env (safe-area-inset-bottom)), 400px )];
189
+ @apply md:_max-h-[min (calc (100 vh-5rem-env (safe-area-inset-bottom)), 400px )];
190
+ @apply _inset-x-0 ltr:md:_left-auto rtl:md:_right-auto;
191
+ @apply contrast-more:_border contrast-more:_border-gray-900 contrast-more:dark:_border-gray-50;
192
+ @apply _backdrop-blur-lg _bg-[rgb (var (--nextra-bg ), .8 )];
193
+ }
0 commit comments