@@ -249,9 +249,7 @@ textarea:not([rows]) {
249
249
--grid-gutter : var (--space-s-l , clamp (1rem , 0.4975rem + 2.5126vw , 2.25rem ));
250
250
--grid-columns : 12 ;
251
251
252
- /* TODO: This aligns the logo in the header perfectly with the one in the sidebar, but
253
- this is not a safe way to do it, and likely to get out of sync */
254
- --header-height : 6rem ;
252
+ --header-height : 4rem ;
255
253
256
254
--sidebar-width : 22rem ;
257
255
--sidebar-item-padding-lr : 0.75rem ;
@@ -362,10 +360,6 @@ ol li:last-child {
362
360
}
363
361
364
362
.breadcrumb-layout {
365
- position : sticky;
366
- top : 0 ;
367
- z-index : 3 ;
368
-
369
363
border-bottom : 1px solid oklch (var (--color-divider ));
370
364
align-items : center;
371
365
padding : var (--space-xs ) 0 ;
@@ -427,6 +421,13 @@ ol li:last-child {
427
421
padding : 0 var (--space-s );
428
422
border-bottom : 1px solid oklch (var (--color-divider ));
429
423
424
+ background : rgba (255 , 255 , 255 , 0.5 );
425
+ backdrop-filter : blur (20px );
426
+ -webkit-backdrop-filter : blur (20px );
427
+ position : sticky;
428
+ top : 0 ;
429
+ z-index : 1 ;
430
+
430
431
.header-container {
431
432
display : flex;
432
433
flex-direction : row;
@@ -445,11 +446,17 @@ ol li:last-child {
445
446
446
447
.header__product-selector {
447
448
width : 10rem ;
449
+ background : rgba (0 , 0 , 0 , 0 );
450
+ color : oklch (var (--color-foreground ));
451
+ text-decoration-color : oklch (var (--color-brand ) / 0.3 );
452
+ & : hover {
453
+ color : oklch (var (--color-brand ));
454
+ }
448
455
449
456
.product-selector__button {
450
457
display : flex;
451
458
align-items : center;
452
- background : oklch ( var ( --color-background ) );
459
+ background : rgba ( 0 , 0 , 0 , 0 );
453
460
border : none;
454
461
width : 16rem ;
455
462
font-weight : 500 ;
@@ -567,7 +574,8 @@ ol li:last-child {
567
574
top : 0 ;
568
575
left : 0 ;
569
576
width : var (--sidebar-width );
570
- height : 100vh ;
577
+ /* for sticky header, this needs to be calculated to avoid extra whitespace */
578
+ height : calc (110vh - var (--header-height ));
571
579
border-right : 1px solid oklch (var (--color-divider ));
572
580
overflow : hidden;
573
581
background : oklch (var (--color-background ));
0 commit comments