File tree Expand file tree Collapse file tree 5 files changed +9
-2
lines changed Expand file tree Collapse file tree 5 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
- 3664B38081E6AFC7A052C0D58672E1EA
1
+ 77FD7967080D3865482753638F7833E7
Original file line number Diff line number Diff line change 7
7
order : 2 ;
8
8
overflow-y : scroll ;
9
9
padding : 10px 20px 0 20px ;
10
+
11
+ // Add a min height of the rest of the view port after the header,
12
+ // so that the footer isn't awkwardly in the middle of the page.
10
13
min-height : calc (100vh - var (--main-header-height ));
11
14
}
12
15
Original file line number Diff line number Diff line change 8
8
flex-direction : row ;
9
9
align-items : center ;
10
10
11
+ // Position the header at the top of the view port, even on scrolling.
11
12
position : sticky ;
12
13
top : 0 ;
13
14
z-index : 10 ;
Original file line number Diff line number Diff line change 89
89
}
90
90
91
91
.sidebar-offcanvas-left , .sidebar-offcanvas-right {
92
+ // Even as the primary viewport scrolls, the sidebars should remain visible,
93
+ // but below the top header which is always at the top of the viewport.
92
94
position : sticky ;
93
95
top : var (--main-header-height );
94
96
overflow-y : auto ;
145
147
transition : all .25s ease-out ;
146
148
z-index : 2000 ;
147
149
top : 0 ;
148
- width : 280px ; /* works all the way down to an iphone 4 */
150
+ width : 280px ;
149
151
// Set a max width for narrow layouts that accounts for margin.
150
152
max-width : calc (100% - 20px );
151
153
height : 90% ;
Original file line number Diff line number Diff line change 3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
5
:root {
6
+ // Used by the header and sticky elements wanting to position below it.
6
7
--main-header-height : 50px ;
7
8
}
8
9
You can’t perform that action at this time.
0 commit comments