From dcb86f619d78a54d1babc6506a5e0be86631ea4a Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 22 Sep 2023 10:54:18 -0400 Subject: assets/css/default: Set pre code white space default Cleanup a few other rules --- assets/css/default.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'assets') diff --git a/assets/css/default.css b/assets/css/default.css index aae9db3..0d7c572 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -472,10 +472,7 @@ html { margin-right: 0; } -body, button, -input, -select, textarea { margin: 0; } @@ -525,7 +522,6 @@ ol[start] li:before { content: counter(list-item); } -main, details, summary, code-block, @@ -535,6 +531,7 @@ diagram-container { } main { + display: block; min-height: 40rem; } @@ -575,6 +572,10 @@ q:after { content: "\201D"; } +pre code { + white-space: pre-line; +} + details, abbr[title] label, micro-metadata-menu context-control label { @@ -790,11 +791,13 @@ svg:not(:root) { } input { + margin: 0; overflow: visible; } select { text-transform: none; + margin: 0; } button, @@ -1601,6 +1604,7 @@ code-block pre code { border-top: 1px solid #ccc; border-top: 1px solid var(--border-darker); padding: 0.75rem; + white-space: pre; } code-block[data-lines] pre code { -- cgit v1.2.3