diff --git a/assets/css/_partial/_details.scss b/assets/css/_partial/_details.scss index b7930ec7f..6ca1ffd50 100644 --- a/assets/css/_partial/_details.scss +++ b/assets/css/_partial/_details.scss @@ -5,7 +5,7 @@ } } - i.details-icon { + .details-icon > svg { color: $global-font-secondary-color; @include transition(transform 0.2s ease); @@ -24,7 +24,7 @@ } &.open { - i.details-icon { + .details-icon > svg { @include transform(rotate(90deg)); } diff --git a/assets/css/_partial/_single/_admonition.scss b/assets/css/_partial/_single/_admonition.scss index 41c8cbcc2..f57190da8 100644 --- a/assets/css/_partial/_single/_admonition.scss +++ b/assets/css/_partial/_single/_admonition.scss @@ -22,7 +22,7 @@ padding: .5rem 0; } - i.icon { + span.icon > svg { font-size: 0.85rem; color: map-get($admonition-color-map, 'note'); position: absolute; @@ -30,7 +30,7 @@ left: .4rem; } - i.details-icon { + span.details-icon > svg { position: absolute; top: .6rem; right: .3rem; @@ -40,7 +40,7 @@ &.#{$type} { border-left-color: $color; - i.icon { + span.icon > svg { color: $color; } } diff --git a/layouts/partials/plugin/fontawesome.html b/layouts/partials/plugin/fontawesome.html index f51186177..7ee8784e6 100644 --- a/layouts/partials/plugin/fontawesome.html +++ b/layouts/partials/plugin/fontawesome.html @@ -1,3 +1,9 @@ {{- $path := printf "lib/fontawesome-free/svgs/%v/%v.svg" .Style .Icon -}} -{{- $resource := (resources.Get $path).Content -}} -{{- $resource | replaceRE `
- {{ .Get "title" | default (T $type) }} + + {{- partial "plugin/fontawesome.html" (index $iconMap $type | default (index $iconMap "note")) -}} + + {{- .Get "title" | default (T $type) -}} + + {{- partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "angle-right") -}} +
@@ -30,7 +35,13 @@ {{- $type := .Get 0 | default "note" -}}
- {{ .Get 1 | default (T $type) }} + + {{- partial "plugin/fontawesome.html" (index $iconMap $type | default (index $iconMap "note")) -}} + + {{ .Get 1 | default (T $type) }} + + {{- partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "angle-right") -}} +