From 310df3425fb9122e59baf3e66d617d810e9b4401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 8 Jun 2023 13:36:12 +0200 Subject: [PATCH] icon: remove whitespace on start #560 --- layouts/partials/shortcodes/icon.html | 2 +- static/css/theme.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/shortcodes/icon.html b/layouts/partials/shortcodes/icon.html index 68d9873ba0..564896119f 100644 --- a/layouts/partials/shortcodes/icon.html +++ b/layouts/partials/shortcodes/icon.html @@ -5,7 +5,7 @@ {{- $icon = printf "fa-fw fas fa-%s" $icon }} {{- end }} {{- with $context }} - {{- if $icon }} + {{- if $icon -}} {{- end }} {{- end }} \ No newline at end of file diff --git a/static/css/theme.css b/static/css/theme.css index 6c7cfab419..0e62ac0d08 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1950,10 +1950,12 @@ html[dir="rtl"] #sidebar ul.collapsible-menu > li > label > i.fa-chevron-right { #body .tab-content-text{ padding: 1rem; } + /* remove margin if only a single code block is contained in the tab */ #body .tab-content.tab-panel-style.code > .tab-content-text{ padding: 0; } + /* remove border from a code block if single */ #body .tab-content-text > div.highlight:only-child > pre, #body .tab-content-text > pre.pre-code:only-child{