Skip to content

Commit 19ce790

Browse files
fix figure smashing on narrow screens
closes #1
1 parent f6fd988 commit 19ce790

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docs/static/css/main.css

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,15 @@ img {
285285

286286
figure.float-right,
287287
figure.float-left {
288-
max-width: 20%;
288+
max-width: 25%;
289+
}
290+
291+
@media screen and (max-width: 800px) {
292+
figure.float-right,
293+
figure.float-left {
294+
max-width: 80%;
295+
float: none;
296+
}
289297
}
290298

291299
figcaption {

0 commit comments

Comments
 (0)