Skip to content

Commit 315cb9b

Browse files
committed
Improve documentation layout on mobile
1 parent 261a3f8 commit 315cb9b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/assets/styles/theme.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,17 @@ em {
168168
}
169169
}
170170

171+
@media (max-width: 540px) {
172+
.main {
173+
padding: 12px 4px;
174+
}
175+
176+
.content {
177+
padding: 12px 20px;
178+
width: calc(100% - 40px);
179+
}
180+
}
181+
171182

172183
/** Page content **/
173184

@@ -234,6 +245,12 @@ em {
234245
max-width: 75%;
235246
}
236247

248+
@media (max-width: 540px) {
249+
.content img {
250+
max-width: 90%;
251+
}
252+
}
253+
237254

238255
/** Page elements **/
239256

0 commit comments

Comments
 (0)