From f0a898c6e33a4e7f17f9f2c9c7c15092b81141f6 Mon Sep 17 00:00:00 2001 From: copernicus-mogley Date: Fri, 24 Jan 2020 13:34:57 +0100 Subject: [PATCH] Make math scroll when it's too wide for the viewport --- assets/css/style.css | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index b6577a2d..c71ff4ea 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -74,6 +74,11 @@ h6 { font-size: 1rem; } +blockquote { + margin: 0 0 1rem 1rem; + padding: 0; +} + p, ul, ol, li, table { margin-top: 0; margin-bottom: 1rem; @@ -84,12 +89,20 @@ p, li { line-height: 1.625; } -pre { - white-space: pre-line; +pre, span.math { + display: block; overflow-x: auto; - font-size: 0.875rem; +} + +pre { border: 1px solid #e6e7e8; padding: 0.625rem; + white-space: pre-line; + font-size: 0.875rem; +} + +span.math { + padding: 0.625rem 0.625rem 0; } a, a:visited {