|
2 | 2 | body { |
3 | 3 | background-color: #1e1e1e !important; |
4 | 4 | color: #ffffff !important; |
| 5 | + |
5 | 6 | } |
6 | 7 | .swagger-ui p, |
7 | 8 | h1, |
|
62 | 63 | color: #1e90ff !important; |
63 | 64 | } |
64 | 65 | } |
| 66 | + |
| 67 | +/* Increase font sizes on mobile for better readability */ |
| 68 | +@media (max-width: 640px) { |
| 69 | + body, |
| 70 | + .swagger-ui { |
| 71 | + font-size: 16px !important; |
| 72 | + line-height: 1.5 !important; |
| 73 | + } |
| 74 | + |
| 75 | + /* Common text elements */ |
| 76 | + .swagger-ui p, |
| 77 | + .swagger-ui label, |
| 78 | + .swagger-ui .btn, |
| 79 | + .swagger-ui .parameter__name, |
| 80 | + .swagger-ui .parameter__type, |
| 81 | + .swagger-ui .parameter__in, |
| 82 | + .swagger-ui .response-control-media-type__title, |
| 83 | + .swagger-ui table thead tr td, |
| 84 | + .swagger-ui table thead tr th, |
| 85 | + .swagger-ui table tbody tr td, |
| 86 | + .swagger-ui .tab li, |
| 87 | + .swagger-ui .response-col_links, |
| 88 | + .swagger-ui .opblock-summary-description { |
| 89 | + font-size: 16px !important; |
| 90 | + } |
| 91 | + .swagger-ui .opblock-summary-path { |
| 92 | + font-size: 20px !important; |
| 93 | + } |
| 94 | + |
| 95 | + /* Headings scale */ |
| 96 | + .swagger-ui h1 { font-size: 1.75rem !important; } |
| 97 | + .swagger-ui h2 { font-size: 1.5rem !important; } |
| 98 | + .swagger-ui h3 { font-size: 1.25rem !important; } |
| 99 | + .swagger-ui h4 { font-size: 1.125rem !important; } |
| 100 | + .swagger-ui h5, .swagger-ui h6 { font-size: 1rem !important; } |
| 101 | +} |
0 commit comments