mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
icon: remove whitespace on start #560
This commit is contained in:
parent
746e2e7d91
commit
310df3425f
2 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
{{- $icon = printf "fa-fw fas fa-%s" $icon }}
|
{{- $icon = printf "fa-fw fas fa-%s" $icon }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with $context }}
|
{{- with $context }}
|
||||||
{{- if $icon }}
|
{{- if $icon -}}
|
||||||
<i class="{{ $icon }}"></i>
|
<i class="{{ $icon }}"></i>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -1950,10 +1950,12 @@ html[dir="rtl"] #sidebar ul.collapsible-menu > li > label > i.fa-chevron-right {
|
||||||
#body .tab-content-text{
|
#body .tab-content-text{
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove margin if only a single code block is contained in the tab */
|
/* remove margin if only a single code block is contained in the tab */
|
||||||
#body .tab-content.tab-panel-style.code > .tab-content-text{
|
#body .tab-content.tab-panel-style.code > .tab-content-text{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove border from a code block if single */
|
/* remove border from a code block if single */
|
||||||
#body .tab-content-text > div.highlight:only-child > pre,
|
#body .tab-content-text > div.highlight:only-child > pre,
|
||||||
#body .tab-content-text > pre.pre-code:only-child{
|
#body .tab-content-text > pre.pre-code:only-child{
|
||||||
|
|
Loading…
Reference in a new issue