File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change
1
+ /* This file contains the CSS for the sidebar navigation.
2
+ * The vertical navigation at the top is in the header.css
3
+ * At less than 770px, the navbar disappears and is opened with
4
+ * a button in the toolbar.
5
+ *
6
+ * Some of the responsiveness is about adjusting the height of the
7
+ * menu. On smaller screens the vertical menu disappears, so the height
8
+ * of the sidebar menu needs to be adjusted.
9
+ */
10
+
1
11
.nav-container {
2
12
position : fixed;
3
13
top : var (--navbar-height );
32
42
background : var (--nav-background );
33
43
position : relative;
34
44
top : var (--toolbar-height );
35
- height : var (--nav- height );
45
+ height : calc ( 100 % - var (--navbar-sub- height ) );
36
46
}
37
47
38
48
@media screen and (min-width : 769px ) {
43
53
44
54
@media screen and (min-width : 1024px ) {
45
55
.nav {
46
- top : var (--navbar-height );
56
+ top : calc ( var (--navbar-height ) + var ( --navbar-sub-height ) );
47
57
box-shadow : none;
48
58
position : sticky;
49
59
height : var (--nav-height--desktop );
60
+ margin-top : var (--navbar-sub-height );
50
61
}
51
62
}
52
63
@@ -63,7 +74,7 @@ html.is-clipped--nav {
63
74
.nav-panel-menu {
64
75
overflow-y : scroll;
65
76
overscroll-behavior : none;
66
- height : var ( --nav-panel-menu-height ) ;
77
+ height : 100 % ;
67
78
}
68
79
69
80
.nav-panel-menu : not (.is-active ) .nav-menu {
Original file line number Diff line number Diff line change
1
+ /* The toolbar contains a home link and breakcrumbs and is found
2
+ * right above the article content.
3
+ * On smaller screens it also contains a button to show the sidebar menu.
4
+ */
5
+
1
6
.toolbar {
2
7
color : var (--toolbar-font-color );
3
8
align-items : center;
12
17
z-index : var (--z-index-toolbar );
13
18
}
14
19
20
+ @media screen and (min-width : 1024px ) {
21
+ .toolbar {
22
+ top : calc (var (--navbar-height ) + var (--navbar-sub-height ));
23
+ }
24
+ }
25
+
15
26
.toolbar a {
16
27
color : inherit;
17
28
}
Original file line number Diff line number Diff line change 123
123
--navbar-height : calc (73 / var (--rem-base ) * 1rem );
124
124
--navbar-sub-height : calc (45 / var (--rem-base ) * 1rem );
125
125
--toolbar-height : calc (45 / var (--rem-base ) * 1rem );
126
- --drawer-height : var (--toolbar-height );
127
126
--body-top : calc (var (--navbar-height ) + var (--navbar-sub-height ));
128
127
--body-min-height : calc (100vh - var (--body-top ));
129
128
--nav-height : calc (var (--body-min-height ) - var (--toolbar-height ));
130
129
--nav-height--desktop : var (--body-min-height );
131
- --nav-panel-menu-height : calc (100% - var (--drawer-height ));
132
- --nav-panel-explore-height : calc (50% + var (--drawer-height ));
133
130
--nav-width : calc (270 / var (--rem-base ) * 1rem );
134
131
--toc-top : calc (var (--body-top ) + var (--toolbar-height ));
135
132
--toc-height : calc (100vh - var (--toc-top ) - 2.5rem );
You can’t perform that action at this time.
0 commit comments