File tree Expand file tree Collapse file tree 1 file changed +32
-6
lines changed
lib/rdoc/generator/template/darkfish/css Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Original file line number Diff line number Diff line change @@ -219,19 +219,17 @@ nav a:hover {
219219# navigation-toggle {
220220 z-index : 1000 ;
221221 font-size : 2em ;
222- position : absolute;
222+ display : block;
223+ position : fixed;
224+ top : 10px ;
225+ left : 20px ;
223226}
224227
225228# navigation-toggle [aria-expanded = "true" ] {
226229 top : 10px ;
227230 left : 250px ;
228231}
229232
230- # navigation-toggle [aria-expanded = "false" ] {
231- top : 10px ;
232- left : 20px ;
233- }
234-
235233nav ul li details {
236234 position : relative;
237235 padding-right : 1.5em ; /* Add space for the marker on the right */
@@ -265,6 +263,7 @@ main {
265263 font-size : 16px ;
266264 line-height : 1.6 ;
267265 color : var (--text-color );
266+ box-sizing : border-box;
268267}
269268
270269@media (min-width : 1024px ) {
@@ -715,4 +714,31 @@ main .attribute-access-type {
715714 font-family : var (--font-code );
716715}
717716
717+ @media (max-width : 480px ) {
718+ nav {
719+ width : 100% ;
720+ }
721+
722+ main {
723+ margin : 1em auto;
724+ padding : 0 1em ;
725+ max-width : 100% ;
726+ }
727+
728+ # navigation-toggle {
729+ right : 10px ;
730+ left : auto;
731+ }
732+
733+ # navigation-toggle [aria-expanded = "true" ] {
734+ left : auto;
735+ }
736+
737+ table {
738+ display : block;
739+ overflow-x : auto;
740+ white-space : nowrap;
741+ }
742+ }
718743/* @end */
744+
You can’t perform that action at this time.
0 commit comments