From 71b1e0bbada20470ebb78876d1fc53fe61a8864c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 20 Sep 2021 16:41:13 +0400 Subject: [PATCH] Removed left-right margin for code element. overflow-* props are set for pre element only. --- homepage/static/assets/css/articles.css | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/homepage/static/assets/css/articles.css b/homepage/static/assets/css/articles.css index b4f114d..5526f55 100644 --- a/homepage/static/assets/css/articles.css +++ b/homepage/static/assets/css/articles.css @@ -25,17 +25,15 @@ code, pre { font-family: 'Share Tech Mono'; font-size: 1.1rem; - letter-spacing: -1px; - overflow-x: auto; - overflow-y: auto; } - -code { margin: 0 .2rem; } + letter-spacing: -1px; } pre { border-left: 1px solid var(--primary-color); padding-left: .25rem; margin-bottom: .5rem; margin-left: 1.6rem; + overflow-x: auto; + overflow-y: auto; white-space: pre; } article {