From 7ac10880a209cdaf4d6de63d58490710c922fded Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 2 Jun 2018 15:48:11 +0100 Subject: [Wiki] Codeblocks should no longer be way too wide on mobile --- static/style.css | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'static') diff --git a/static/style.css b/static/style.css index a64687ba..22eb2285 100644 --- a/static/style.css +++ b/static/style.css @@ -248,6 +248,16 @@ textarea.fira-code { border: 1px solid rgba(0, 0, 0, 0.11); } +#doc-view div { + width: calc(100% - 6rem); +} + +@media (max-width: 639px) { + #doc-view div { + width: calc(100% - 1rem); + } +} + .code { overflow-x: auto; } \ No newline at end of file -- cgit v1.2.3