diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index db4f1c7..370b23c 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -299,6 +299,11 @@ table.simple tbody tr:nth-child(even) { vertical-align: sub; } +/* workarounds for some icons from jam-icons being non-square aspect ratio */ +.icon-code { + width: 1.25em; +} + /* }}} */ diff --git a/layouts/_partials/icon_code.html b/layouts/_partials/icon_code.html index f5003c2..940980a 100644 --- a/layouts/_partials/icon_code.html +++ b/layouts/_partials/icon_code.html @@ -1,6 +1,6 @@ {{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}} {{- $icon := $icon_resource.Content -}} -{{- $icon = replaceRE `` (printf `%s icon` .) $icon -}} {{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}} {{- $icon | safeHTML -}}