Skip to content

Commit 310df34

Browse files
committed
icon: remove whitespace on start matcornic#560
1 parent 746e2e7 commit 310df34

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

layouts/partials/shortcodes/icon.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{- $icon = printf "fa-fw fas fa-%s" $icon }}
66
{{- end }}
77
{{- with $context }}
8-
{{- if $icon }}
8+
{{- if $icon -}}
99
<i class="{{ $icon }}"></i>
1010
{{- end }}
1111
{{- end }}

static/css/theme.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,10 +1950,12 @@ html[dir="rtl"] #sidebar ul.collapsible-menu > li > label > i.fa-chevron-right {
19501950
#body .tab-content-text{
19511951
padding: 1rem;
19521952
}
1953+
19531954
/* remove margin if only a single code block is contained in the tab */
19541955
#body .tab-content.tab-panel-style.code > .tab-content-text{
19551956
padding: 0;
19561957
}
1958+
19571959
/* remove border from a code block if single */
19581960
#body .tab-content-text > div.highlight:only-child > pre,
19591961
#body .tab-content-text > pre.pre-code:only-child{

0 commit comments

Comments
 (0)