From d939ae3f334817522b88ca9371762e694790fc15 Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Mon, 24 May 2021 15:54:47 +0200 Subject: [PATCH] still use background for pre/code --- src/css/y.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/css/y.css b/src/css/y.css index dd15e46..799993a 100644 --- a/src/css/y.css +++ b/src/css/y.css @@ -10,7 +10,7 @@ h1,h2,h3,h4,h5,h6 { margin: calc(1ex/0.42) 0; } #preamble h1 { margin: 0; } p { text-align: justify; hyphens: auto; } -pre { overflow-x: scroll; padding-left: 1em; border-left: dotted 1px; } +pre { overflow-x: scroll; padding: 1em; border-left: dotted 1px; } pre > code { background: none; font-size: 0.875em; padding: 0; } code,pre { font-family: Menlo, Monaco, monospace; font-size: 0.825em; } code { padding: 1px 3px; } @@ -82,6 +82,7 @@ figcaption { text-align: right; font-style: italic; font-size: 0.875em; } --bg: #fff; --fg: #000; + --gr: hsl(218,20%,95%); } img { filter: brightness(0.8) sepia(100%) hue-rotate(185deg) saturate(0.5); } @@ -101,11 +102,13 @@ img:hover { filter: none; } --g: #939452; --bg: hsl(218,20%,16%); --fg: hsl(218,20%,70%); + --gr: hsl(218,20%,20%); } img { filter: brightness(0.6) sepia(100%) hue-rotate(185deg) saturate(0.5); } img:hover { filter: brightness(0.7); } } +pre,code { background: var(--gr); } body, body > div { background: var(--bg); color: var(--fg);