File tree 2 files changed +15
-5
lines changed 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ function DocSearch() {
283
283
} ;
284
284
285
285
return (
286
- < ThemeProvider >
286
+ < ThemeProvider UNSAFE_className = { docsStyle . docSearchBoxThemeProvider } >
287
287
< span role = "search" >
288
288
< SearchAutocomplete
289
289
aria-label = "Search"
Original file line number Diff line number Diff line change 71
71
html , body {
72
72
margin : 0 ;
73
73
text-size-adjust : none;
74
+ height : 100vh ;
75
+ overflow-y : hidden;
76
+ overflow-anchor : none;
74
77
}
75
78
76
79
.provider {
@@ -290,14 +293,16 @@ html, body {
290
293
}
291
294
292
295
main {
296
+ margin-top : var (--spectrum-global-dimension-size-550 );
293
297
margin-left : 256px ;
294
298
margin-right : 180px ;
295
- padding : 40 px 52 px 0 52px ;
299
+ padding : 0 52px ;
296
300
box-sizing : border-box;
297
301
display : flex;
298
- min- height: 100vh ;
302
+ height : calc ( 100vh - var ( --spectrum-global-dimension-size-550 )) ;
299
303
flex-direction : column;
300
304
align-items : center;
305
+ overflow-y : auto;
301
306
}
302
307
303
308
.article {
@@ -627,6 +632,10 @@ h2.sectionHeader {
627
632
z-index : 1 ;
628
633
}
629
634
635
+ .docSearchBoxThemeProvider {
636
+ height : var (--spectrum-global-dimension-size-400 );
637
+ }
638
+
630
639
.docSearchBox {
631
640
margin-inline-start : auto;
632
641
width : var (--spectrum-global-dimension-size-3600 );
@@ -845,8 +854,8 @@ h2.sectionHeader {
845
854
846
855
main {
847
856
margin-left : 0 ;
848
- margin-top : 48 px ;
849
- padding : 40 px 24 px ;
857
+ margin-top : var ( --spectrum-global-dimension-size-550 ) ;
858
+ padding : var ( --spectrum-global-dimension-size-325 ) var ( --spectrum-global-dimension-size-250 ) ;
850
859
}
851
860
852
861
/* Show the toolbar at the top with the hamburger and theme switcher buttons */
@@ -857,6 +866,7 @@ h2.sectionHeader {
857
866
display : flex;
858
867
width : 100% ;
859
868
}
869
+
860
870
.hamburgerButton {
861
871
display : inline-flex;
862
872
}
You can’t perform that action at this time.
0 commit comments