From c9d7f5e81bab24889a1b65536a63dd7fe9cfe9e9 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sat, 7 Mar 2020 00:21:26 +0100 Subject: [PATCH] Rework pre elements --- static/css/style.css | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 066043c..acb0d87 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -702,8 +702,8 @@ tt { font-family: 'Fira Mono', monospace, sans-serif; font-size: 0.75em; white-space: pre; - background: #faf9f7; - border: 1px solid #e5e4e1; + background: #343642; + color: #C1C2C3; top: -2px } @@ -714,13 +714,18 @@ pre { overflow: hidden; font-family: Fira Mono, monospace, sans-serif; white-space: pre; - background: #faf9f7; - border: 1px solid #e5e4e1; box-sizing: border-box; font-size: .80em; width:110%; margin-left: -5% +} +pre code, pre tt { + margin:0; + padding:0; + background:transparent; + overflow: scroll; + border:none; } pre .lines { @@ -744,21 +749,6 @@ pre .lines .line { color: #45484d } -pre code, -pre tt { - position: static; - top: auto; - margin: -1.333em -1.333em -1.333em 1.333em; - padding: 1.333em; - overflow: scroll; - font-size: 0.75em; - line-height: 2em; - white-space: pre; - background: transparent; - border: none; - vertical-align: inherit -} - kbd { display: inline-block; margin-bottom: 0.5em;