diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-28 11:51:48 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-28 11:51:48 +0200 |
| commit | f6215e55d7499d6cc3a3737cfb753f08ce1d4b45 (patch) | |
| tree | b65246d6708a909a93517004b272f6b8fb7c90db /static | |
| parent | 73b45c58b974a3e709a0188b92cf62ed76345875 (diff) | |
Fix mobile styling issues
Diffstat (limited to 'static')
| -rw-r--r-- | static/style.css | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/static/style.css b/static/style.css index 2e016e7..03578b1 100644 --- a/static/style.css +++ b/static/style.css @@ -187,6 +187,13 @@ div.sourceCode { color: inherit; } +@media screen and (max-width: 600px) { + pre, + div.sourceCode { + margin: 20px -15px; + } +} + .sourceCode { line-height: 1.3; border: 1px solid var(--blockquote-color); @@ -195,6 +202,7 @@ div.sourceCode { .sourceCode code, .sourceCode pre { border: none; + min-width: max-content; } blockquote { @@ -224,6 +232,13 @@ figure { border: 1px solid var(--p-color); } +@media screen and (max-width: 600px) { + figure { + max-width: calc(100% + 2 * 15px); + margin: 20px -15px; + } +} + figure img { margin: 0; border-bottom: 1px solid var(--p-color); @@ -233,7 +248,8 @@ figure figcaption { font-style: italic; text-align: center; margin: 7px auto 15px; - width: 70%; + max-width: 550px; + padding: 0 10px; color: var(--blockquote-color); } |
