22
22
23
23
24
24
/* Generic and large screen layout */
25
+ .ptx-navbar .toc-toggle , .ptx-navbar .index-button , .ptx-navbar .searchbox
26
+ {
27
+ }
28
+
29
+ .ptx-navbar .nav-other-controls
30
+ {
31
+ margin-left : 1em ;
32
+ }
33
+
34
+ .ptx-navbar .treebuttons {
35
+ display : flex;
36
+ justify-content : right;
37
+ }
25
38
26
39
.ptx-navbar .button {
27
- padding : 0 24 px 0 24 px ;
40
+ padding : 0 10 px 0 10 px ;
28
41
}
29
42
30
43
.ptx-navbar .treebuttons .button {
31
- padding : 0 20px 0 20px ;
32
44
display : flex;
33
45
justify-content : center;
34
46
align-items : center;
35
47
}
36
48
37
- .ptx-navbar .treebuttons .previous-button { padding-left : 12 px ; }
38
- .ptx-navbar .treebuttons .next-button { padding-right : 12 px ; }
49
+ .ptx-navbar .treebuttons .previous-button { padding-left : 0 px ; }
50
+ .ptx-navbar .treebuttons .next-button { padding-right : 0 px ; }
39
51
40
- .ptx-navbar .toc-toggle {
41
- padding : 0 10 px 0 10 px ;
52
+ .ptx-navbar .nav-runestone-controls {
53
+ display : flex ;
42
54
}
43
55
44
56
45
57
nav .ptx-navbar {
46
58
display : grid;
47
59
grid-column-gap : 0em ;
48
60
49
- grid-template-columns : .76 fr 6 em 6 em 1fr ; /* Even gaps */
61
+ grid-template-columns : auto auto auto 1 fr 1fr auto;
50
62
grid-template-areas :
51
- "MH-toc-area MH-extras-area1 MH-extras-area2 MH-preferences-area MH-page-navigation-area" ;
52
-
63
+ "MH-toc-area MH-extras-area1 ptx-searchbox MH-extras-area2 MH-page-navigation-area MH-preferences-area" ;
53
64
background-color : # fff ;
54
65
/*
55
66
padding: 20px 0px 0px 0px;
@@ -65,7 +76,7 @@ nav.ptx-navbar {
65
76
z-index : 20 ;
66
77
67
78
position : sticky;
68
- top : 1 px ;
79
+ top : 0 ;
69
80
align-items : end;
70
81
min-height : unset; /* to thwart navbar.less */
71
82
margin-bottom : 0 ; /* to thwart navbar.less */
@@ -95,6 +106,7 @@ nav.ptx-navbar::after {
95
106
border : 1px solid # 888 ;
96
107
cursor : pointer;
97
108
box-sizing : border-box;
109
+ margin-right : 2em ;
98
110
}
99
111
100
112
.toc-toggle : hover {
@@ -123,7 +135,6 @@ nav.ptx-navbar::after {
123
135
justify-self : left;
124
136
}
125
137
.user-preferences-button {
126
- grid-area : MH-preferences-area;
127
138
justify-self : left;
128
139
}
129
140
@@ -132,11 +143,18 @@ nav.ptx-navbar::after {
132
143
grid-area : MH-page-navigation-area;
133
144
justify-self : end;
134
145
display : flex;
146
+ width : 100% ;
135
147
/*
136
148
align-self: start;
137
149
*/
138
150
}
139
151
152
+ .nav-runestone-controls {
153
+ grid-area : MH-preferences-area;
154
+ justify-self : end;
155
+ display : flex;
156
+ padding-left : 4em ;
157
+ }
140
158
141
159
/* .ptx-navbar button, */
142
160
.ptx-navbar .button {
@@ -159,30 +177,37 @@ nav.ptx-navbar::after {
159
177
box-sizing : border-box;
160
178
}
161
179
180
+ .ptx-navbar .searchbutton {
181
+ display : flex;
182
+ align-items : center;
183
+ justify-content : center;
184
+ }
185
+
186
+ .searchresultsplaceholder {
187
+ left : calc (50vw - 300px );
188
+ }
189
+
162
190
163
191
/* Small screen layout */
164
192
@media only screen and (max-width : 800px ) {
165
193
.pretext .ptx-navbar {
166
- display : block;
167
194
position : fixed;
168
195
top : auto;
169
196
bottom : 0 ;
170
197
left : 0 ;
171
198
right : 0 ;
172
199
padding : 0 ;
173
200
background : # ededed ;
201
+ grid-template-columns : auto auto auto auto 1fr auto;
174
202
/*
175
203
box-shadow: rgba(0, 0, 0, 0.3) 0px -2px 5px;
176
204
*/
177
205
/* height: 44.2px; */
178
206
179
- grid-template-columns : 1fr 1fr ;
180
- grid-column-gap : 0 ;
181
- grid-template-areas : "MH-toc-area MH-page-navigation-area" ;
182
207
align-items : end;
183
208
}
184
209
185
- .pretext .ptx-navbar .button {
210
+ /* .pretext .ptx-navbar .button {
186
211
width: 24.95%;
187
212
height: 36px;
188
213
line-height: 40px;
@@ -191,13 +216,31 @@ nav.ptx-navbar::after {
191
216
.ptx-navbar .toc-toggle {
192
217
width: 25%;
193
218
margin: 0;
219
+ } */
220
+
221
+ .ptx-navbar .toc-toggle {
222
+ padding : 0 40px ;
223
+ }
224
+
225
+ .ptx-navbar .nav-runestone-controls {
226
+ padding-left : 0 ;
194
227
}
195
228
196
- /* Kill some white space between toc-toggle and treebuttons */
197
- .ptx-navbar .treebuttons {
198
- margin : 0 0 0 -4px ;
229
+ .ptx-navbar .treebuttons {
230
+ justify-content : center;
231
+ }
232
+
233
+ .ptx-navbar : is (.toc-toggle , .previous-button , .up-button , .next-button , .calculator-toggle , .index-button ) .name {
234
+ display : none;
235
+ }
236
+
237
+ .pretext .ptx-navbar : is (.calculator-toggle , .index-button ) .icon {
238
+ display : inline-block;
199
239
}
200
240
241
+ .searchresultsplaceholder {
242
+ left : 10vw ;
243
+ }
201
244
}
202
245
203
246
.ptx-navbar .button : hover {
@@ -231,8 +274,6 @@ nav.ptx-navbar::after {
231
274
}
232
275
.ptx-navbar .toc-toggle .name {
233
276
font-size : 1.0em ;
234
- position : relative;
235
- bottom : 0.25em ;
236
277
}
237
278
238
279
.ptx-navbar .index-button .name {
@@ -257,21 +298,23 @@ nav.ptx-navbar::after {
257
298
display : none;
258
299
}
259
300
260
- .ptx-navbar .dropdown {
261
- height : 35px ;
301
+ .pretext .ptx-navbar .dropdown {
302
+ height : 32px ;
303
+ }
262
304
263
305
.ptx-navbar .up-button {
264
306
text-align : center;
265
307
}
266
308
267
309
.ptx-navbar .name {
268
310
display : inline-block;
311
+ }
312
+ .ptx-navbar .searchbutton .name {
313
+ display : none;
269
314
position : relative;
270
315
bottom : 0 ;
271
316
}
272
- .ptx-navbar .treebuttons .name {
273
- bottom : 0.2em ;
274
- }
317
+
275
318
.ptx-navbar .icon {
276
319
display : inline-block;
277
320
font-size : 1.5em ;
@@ -284,9 +327,6 @@ nav.ptx-navbar::after {
284
327
margin-left : 0 ;
285
328
margin-right : 0.2em ;
286
329
}
287
- .ptx-navbar .up-button .name {
288
- bottom : 0.3em ;
289
- }
290
330
.ptx-navbar .next-button .icon {
291
331
margin-left : 0.2em ;
292
332
margin-right : 0.3em ;
@@ -299,23 +339,20 @@ nav.ptx-navbar::after {
299
339
}
300
340
301
341
@media screen and (max-width : 800px ) {
302
- .ptx-navbar .index-button ,
303
- .ptx-navbar .user-preferences-button ,
304
- .ptx-navbar .calculator-toggle {
305
- display : none;
306
- }
307
-
308
342
.ptx-navbar .toc-toggle .name ,
309
343
.ptx-navbar .previous-button .name ,
310
344
.ptx-navbar .up-button .name ,
311
345
.ptx-navbar .up-button .disabled .name ,
312
346
.ptx-navbar .next-button .name {
313
- display : none;
347
+ display : none;
314
348
}
315
349
316
- .ptx-navbar .up-button . icon ,
317
- . ptx-navbar . up-button . disabled . icon {
350
+ .ptx-navbar .toc-toggle {
351
+ margin : 0 ;
318
352
}
319
353
354
+ .ptx-navbar .calculator-toggle .icon {
355
+ padding-top : 5px ;
356
+ }
320
357
}
321
358
0 commit comments