From 0b4677c14715001a54fcfa93a7f891bc2a72c173 Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 11 Feb 2021 21:23:00 +0100 Subject: [PATCH] fix code block style --- _sass/style.scss | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/_sass/style.scss b/_sass/style.scss index 15a1cba..d7115b7 100644 --- a/_sass/style.scss +++ b/_sass/style.scss @@ -47,7 +47,7 @@ h1, h2, h3, h4, h5, h6 { border-bottom: thin solid rgba(255, 255, 255, 0.2); } -p, code { +p, code, ul, ol { font-size: 1rem; line-height: 1.5rem; font-weight: 400; @@ -58,6 +58,18 @@ code { border-radius: 4px; } +pre { + display: block; + padding: 20px; + border-radius: 4px; + background-color: rgba(0, 0, 0, 0.5); + overflow-x: auto; + + code { + background: none; + } +} + header h1 { text-align: center; margin: 20px 0 0; @@ -112,7 +124,6 @@ nav { padding: 20px; display: inline-block; font-weight: 700; - text-decoration: none; } } }