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{