File tree 8 files changed +40
-30
lines changed 8 files changed +40
-30
lines changed Original file line number Diff line number Diff line change 1
- B33E364DD554BA379AE780C5C4237B34
1
+ 631031823A0AFF791A65761D059274B6
Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
+ html {
6
+ // Account for sticky header, so fragments appear below it after scrolling.
7
+ scroll-padding-top : calc (var (--main-header-height ) + 1rem );
8
+ }
9
+
5
10
html ,
6
11
body {
7
12
margin : 0 ;
8
13
padding : 0 ;
9
- height : 100% ;
10
14
width : 100% ;
11
- overflow : hidden ;
12
15
box-sizing : border-box ;
13
16
}
14
17
19
22
body {
20
23
display : flex ;
21
24
flex-direction : column ;
22
- -webkit-overflow-scrolling : touch ;
23
25
24
26
-webkit-text-size-adjust : 100% ;
25
27
overflow-x : hidden ;
34
36
flex : 1 ;
35
37
display : flex ;
36
38
flex-direction : row ;
37
- min-height : 0 ;
38
39
}
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
+ min-height : calc (100vh - var (--main-header-height ));
10
11
}
11
12
12
13
a {
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
header {
6
- flex : 0 0 50px ;
6
+ flex : 0 0 var ( --main-header-height , 50px ) ;
7
7
display : flex ;
8
8
flex-direction : row ;
9
9
align-items : center ;
10
+
11
+ position : sticky ;
12
+ top : 0 ;
13
+ z-index : 10 ;
14
+
10
15
padding-left : 30px ;
11
16
padding-right : 30px ;
12
17
background-color : var (--main-header-color );
Original file line number Diff line number Diff line change 56
56
57
57
58
58
.typeahead {
59
- padding : 17 px 17 px 17 px 50 px ;
59
+ padding : 16 px 16 px 16 px 32 px ;
60
60
width : 422px ;
61
- height : 20px ;
62
- font-size : 13px ;
61
+ height : 24px ;
62
+ font-size : 15px ;
63
+ background-color : var (--main-bg-color );
64
+ color : var (--main-text-color );
63
65
background-image : url (" ./search.svg" );
64
66
background-repeat : no-repeat ;
65
- background-position : 4 % ;
67
+ background-position : 2 % ;
66
68
outline : 0 ;
67
69
background-size : 20px ;
68
- filter : var (--main-number-filter );
69
70
}
70
71
71
72
.search-summary {
Original file line number Diff line number Diff line change 88
88
background-color : black ;
89
89
}
90
90
91
+ .sidebar-offcanvas-left , .sidebar-offcanvas-right {
92
+ position : sticky ;
93
+ top : var (--main-header-height );
94
+ overflow-y : auto ;
95
+ min-height : 0 ;
96
+ max-height : calc (100vh - var (--main-header-height ));
97
+ }
98
+
91
99
.sidebar-offcanvas-left {
92
100
flex : 0 1 230px ;
93
101
order : 1 ;
94
- overflow-y : scroll ;
95
- padding : 20px 0 15px 30px ;
96
- margin : 5px 20px 0 0 ;
102
+ padding : 25px 0 15px 30px ;
103
+ margin-right : 20px ;
97
104
98
105
h5 {
99
106
margin-bottom : 10px ;
108
115
.sidebar-offcanvas-right {
109
116
flex : 0 1 12em ;
110
117
order : 3 ;
111
- overflow-y : scroll ;
112
- padding : 20px 15px 15px 15px ;
113
- margin-top : 5px ;
114
- margin-right : 20px ;
118
+ padding : 25px 20px 15px 15px ;
115
119
116
120
// The right nav should disappear out of view when the window shrinks.
117
121
@media screen and (max-width : 992px ) {
146
150
max-width : calc (100% - 20px );
147
151
height : 90% ;
148
152
background-color : var (--main-bg-color );
149
- overflow-y : scroll ; /* TODO: how to hide scroll bars? */
153
+ overflow-y : scroll ;
150
154
padding : 10px ;
151
155
margin : 10px 10px ;
152
156
box-shadow : 5px 5px 5px 5px #444444 ;
167
171
color : var (--main-hyperlinks-color );
168
172
}
169
173
}
170
-
171
- ::-webkit-scrollbar-button { display : none ; height : 13px ; border-radius : 0 ; background-color : #AAA ; }
172
- ::-webkit-scrollbar-button :hover { background-color : #AAA ; }
173
- ::-webkit-scrollbar-thumb { background-color : var (--main-scrollbar-color ); }
174
- ::-webkit-scrollbar-thumb :hover { background-color : var (--main-scrollbar-color ); }
175
- ::-webkit-scrollbar { width : 4px ; }
176
-
177
- .main-content ::-webkit-scrollbar { width : 8px ; }
Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
+ :root {
6
+ --main-header-height : 50px ;
7
+ }
8
+
5
9
.light-theme {
6
10
/* background-color body, listdropdown*/
7
11
--main-bg-color : #fff ;
36
40
--main-var-color : #008080 ;
37
41
--main-string-color : #d14 ;
38
42
39
- --main-number-filter : invert (0% );
40
43
--main-icon-color : black ;
41
44
42
45
/* alerts */
46
49
--alert-warning-fgColor : #955d00 ;
47
50
--alert-error-fgColor : #c43131 ;
48
51
52
+ color-scheme : light ;
53
+
49
54
#light-theme-button {
50
55
display : none ;
51
56
}
88
93
--main-var-color : #55A09B ;
89
94
--main-string-color : #FF2D64 ;
90
95
91
- --main-number-filter : invert (100% );
92
96
--main-icon-color : white ;
93
97
94
98
/* alerts */
98
102
--alert-warning-fgColor : #cea11f ;
99
103
--alert-error-fgColor : #ff6666 ;
100
104
105
+ color-scheme : dark ;
106
+
101
107
#dark-theme-button {
102
108
display : none ;
103
109
}
You can’t perform that action at this time.
0 commit comments