File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
lib/rdoc/generator/template/darkfish/css Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,14 @@ body {
17
17
background : # fafafa ;
18
18
font-family : Lato, sans-serif;
19
19
font-weight : 300 ;
20
+
21
+ /* Layout */
22
+ display : grid;
23
+ grid-template-columns : auto 1fr ;
24
+ }
25
+
26
+ body > : last-child {
27
+ grid-column : 1 / 3 ;
20
28
}
21
29
22
30
h1 span ,
@@ -181,21 +189,25 @@ table tr:nth-child(even) td {
181
189
/* @group Top-Level Structure */
182
190
183
191
nav {
184
- float : left;
185
- width : 260px ;
186
192
font-family : Helvetica, sans-serif;
187
193
font-size : 14px ;
188
194
border-right : 1px solid # ccc ;
189
195
position : sticky;
190
196
top : 0 ;
191
197
overflow : auto;
198
+
199
+ /* Layout */
200
+ width : 260px ; /* fallback */
201
+ width : max (50px , 20vw );
202
+ min-width : 50px ;
203
+ max-width : 80vw ;
192
204
height : calc (100vh - 100px ); /* reduce the footer height */
205
+ resize : horizontal;
193
206
}
194
207
195
208
main {
196
209
display : block;
197
- margin : 0 2em 5em 260px ;
198
- padding-left : 20px ;
210
+ margin : 1em ;
199
211
min-width : 340px ;
200
212
font-size : 16px ;
201
213
}
@@ -214,7 +226,6 @@ main h6 {
214
226
}
215
227
216
228
# validator-badges {
217
- clear : both;
218
229
margin : 1em 1em 2em ;
219
230
font-size : smaller;
220
231
}
You can’t perform that action at this time.
0 commit comments