Skip to content

Commit 704bcb4

Browse files
committed
Increase API docs font size on mobile
1 parent fbdc594 commit 704bcb4

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

backend/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@compass/api",
33
"description": "Backend API endpoints",
4-
"version": "1.0.12",
4+
"version": "1.0.13",
55
"private": true,
66
"scripts": {
77
"watch:serve": "tsx watch src/serve.ts",

backend/api/src/public/swagger.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
body {
33
background-color: #1e1e1e !important;
44
color: #ffffff !important;
5+
56
}
67
.swagger-ui p,
78
h1,
@@ -62,3 +63,39 @@
6263
color: #1e90ff !important;
6364
}
6465
}
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

Comments
 (0)