File tree 1 file changed +12
-11
lines changed
lib/rdoc/generator/template/darkfish/css
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 9
9
/* vim: ft=css et sw=2 ts=2 sts=2 */
10
10
/* Base Green is: #6C8C22 */
11
11
12
+ : root {
13
+ --sidebar-width : 300px ;
14
+ }
15
+
12
16
.hide { display : none !important ; }
13
17
14
18
* { padding : 0 ; margin : 0 ; }
@@ -209,21 +213,15 @@ nav {
209
213
z-index : 10 ;
210
214
211
215
/* Layout */
212
- width : 300 px ;
216
+ width : var ( --sidebar-width ) ;
213
217
min-height : 100vh ;
214
218
background : white;
215
219
}
216
220
217
- @media (min-width : 1024px ) {
218
- nav {
219
- min-height : unset;
220
- height : calc (100vh - 100px ); /* reduce the footer height */
221
- }
222
- }
223
-
224
221
main {
225
222
display : block;
226
- margin : 3em 1em 1em ;
223
+ margin : 3em auto 1em ;
224
+ padding : 0 1em ; /* Add padding to keep space between main content and sidebar/right side of the screen */
227
225
min-width : 340px ;
228
226
font-size : 16px ;
229
227
width : 100% ;
@@ -232,8 +230,7 @@ main {
232
230
233
231
@media (min-width : 1024px ) {
234
232
main {
235
- margin-left : auto;
236
- margin-right : auto;
233
+ margin-left : var (--sidebar-width );
237
234
}
238
235
}
239
236
@@ -731,4 +728,8 @@ pre {
731
728
font-family : "Source Code Pro" , Monaco, monospace;
732
729
}
733
730
731
+ footer {
732
+ z-index : 20 ;
733
+ }
734
+
734
735
/* @end */
You can’t perform that action at this time.
0 commit comments