File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ a > .hljs {
45
45
position : relative;
46
46
padding : 0 8px ;
47
47
z-index : 10 ;
48
- line-height : 50 px ;
48
+ line-height : var ( --menu-bar-height ) ;
49
49
cursor : pointer;
50
50
transition : color 0.5s ;
51
51
}
@@ -73,7 +73,7 @@ a > .hljs {
73
73
}
74
74
75
75
html : not (.sidebar-visible ) # menu-bar : not (: hover ).folded > # menu-bar-sticky-container {
76
- transform : translateY (-60 px );
76
+ transform : translateY (calc ( -10 px - var ( --menu-bar-height )) );
77
77
}
78
78
79
79
.left-buttons {
@@ -88,7 +88,7 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
88
88
display : inline-block;
89
89
font-weight : 200 ;
90
90
font-size : 20px ;
91
- line-height : 50 px ;
91
+ line-height : var ( --menu-bar-height ) ;
92
92
text-align : center;
93
93
margin : 0 ;
94
94
flex : 1 ;
@@ -446,7 +446,7 @@ ul#searchresults span.teaser em {
446
446
.theme-popup {
447
447
position : absolute;
448
448
left : 10px ;
449
- top : 50 px ;
449
+ top : var ( --menu-bar-height ) ;
450
450
z-index : 1000 ;
451
451
border-radius : 4px ;
452
452
font-size : 0.7em ;
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ h4 a.header:target::before {
45
45
width : 30px ;
46
46
}
47
47
48
+ h1 a .header : target ,
49
+ h2 a .header : target ,
50
+ h3 a .header : target ,
51
+ h4 a .header : target {
52
+ scroll-margin-top : calc (var (--menu-bar-height ) + 0.5em );
53
+ }
54
+
48
55
.page {
49
56
outline : 0 ;
50
57
padding : 0 var (--page-padding );
Original file line number Diff line number Diff line change 5
5
--sidebar-width : 300px ;
6
6
--page-padding : 15px ;
7
7
--content-max-width : 750px ;
8
+ --menu-bar-height : 50px ;
8
9
}
9
10
10
11
/* Themes */
You can’t perform that action at this time.
0 commit comments