File tree Expand file tree Collapse file tree 1 file changed +49
-1
lines changed
lib/rdoc/generator/template/darkfish/css Expand file tree Collapse file tree 1 file changed +49
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,8 @@ nav a:hover {
219
219
# navigation-toggle {
220
220
z-index : 1000 ;
221
221
font-size : 2em ;
222
- position : absolute;
222
+ display : block;
223
+ position : fixed;
223
224
}
224
225
225
226
# navigation-toggle [aria-expanded = "true" ] {
@@ -264,6 +265,7 @@ main {
264
265
font-size : 16px ;
265
266
line-height : 1.6 ;
266
267
color : var (--text-color );
268
+ box-sizing : border-box;
267
269
}
268
270
269
271
@media (min-width : 1024px ) {
@@ -714,4 +716,50 @@ main .attribute-access-type {
714
716
font-family : var (--font-code );
715
717
}
716
718
719
+ @media (max-width : 1023px ) {
720
+ body {
721
+ font-size : 14px ;
722
+ }
723
+
724
+ nav {
725
+ width : 100% ;
726
+ }
727
+
728
+ main {
729
+ margin : 1em auto;
730
+ padding : 0 1em ;
731
+ max-width : 100% ;
732
+ }
733
+
734
+ # navigation-toggle {
735
+ top : 10px ;
736
+ right : 10px ;
737
+ z-index : 1001 ;
738
+ }
739
+
740
+ # navigation-toggle [aria-expanded = "true" ] {
741
+ left : auto;
742
+ }
743
+
744
+ # navigation-toggle [aria-expanded = "false" ] {
745
+ left : auto;
746
+ }
747
+
748
+ # search-field {
749
+ font-size : 16px ; /* Prevents zoom on focus in iOS */
750
+ }
751
+ }
752
+
753
+ @media (max-width : 480px ) {
754
+ pre , code {
755
+ font-size : 14px ;
756
+ }
757
+
758
+ table {
759
+ display : block;
760
+ overflow-x : auto;
761
+ white-space : nowrap;
762
+ }
763
+ }
717
764
/* @end */
765
+
You can’t perform that action at this time.
0 commit comments