File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -459,12 +459,10 @@ nav {
459
459
.sidebar-layout {
460
460
display : flex;
461
461
flex-direction : column;
462
- position : relative; /* required for absolute-positioned pseudo element */
462
+ position : relative;
463
463
z-index : 2 ;
464
- min-height : 100vh ;
465
464
}
466
465
467
- /* this is the complete, corrected CSS you can directly copy/paste clearly: */
468
466
.sidebar-layout ::before {
469
467
content : "" ;
470
468
position : absolute;
@@ -787,7 +785,6 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
787
785
overflow-y : auto;
788
786
color : var (--color-foreground );
789
787
790
- /* Reset/Renormalize lists to remove default browser styling */
791
788
.sidebar__container ,
792
789
.sidebar__container button ,
793
790
.sidebar__container ul ,
@@ -1481,10 +1478,8 @@ a:has(code:not(pre code)) {
1481
1478
padding : 0.15rem 0.5rem ;
1482
1479
font-size : 0.75rem ;
1483
1480
z-index : 999 ;
1484
- /* position: absolute; */
1485
1481
background-color : white;
1486
1482
margin : 0 0 -1px 0 ;
1487
- /* box-shadow: 2px 2px 0px var(--color-shadow); */
1488
1483
}
1489
1484
1490
1485
.code-container {
@@ -1636,7 +1631,7 @@ hr {
1636
1631
background-repeat : no-repeat;
1637
1632
background-size : contain;
1638
1633
background-position : left center;
1639
- width : 200px ; /* Adjust the width as needed to fit the logo */
1634
+ width : 200px ;
1640
1635
1641
1636
img {
1642
1637
display : none;
Original file line number Diff line number Diff line change @@ -16,19 +16,3 @@ document.addEventListener('click', (e) => {
16
16
}
17
17
}
18
18
} ) ;
19
-
20
- document . addEventListener ( 'DOMContentLoaded' , ( ) => {
21
- const sidebar = document . querySelector ( '.sidebar__ul' ) ;
22
-
23
- if ( ! sidebar ) return ;
24
-
25
- const activeLink = sidebar . querySelector ( '.sidebar__link--current' ) ;
26
-
27
- if ( activeLink ) {
28
- activeLink . scrollIntoView ( {
29
- behavior : 'auto' ,
30
- block : 'center' ,
31
- inline : 'nearest' ,
32
- } ) ;
33
- }
34
- } ) ;
You can’t perform that action at this time.
0 commit comments