diff --git a/frontend/src/icons.scss b/frontend/src/icons.scss index bb9ddd73f..5260dca33 100644 --- a/frontend/src/icons.scss +++ b/frontend/src/icons.scss @@ -15,6 +15,8 @@ $icons: ok, background-repeat: no-repeat; background-position: center; aspect-ratio: 1/1; + min-width: 1em; + font-size: inherit; display: inline-block; filter: invert(22%) sepia(84%) saturate(7448%) hue-rotate(357deg) brightness(102%) contrast(116%); } @@ -22,15 +24,13 @@ $icons: ok, .small-ico { font-size: 1em; - width: 1em; } .medium-ico { font-size: 1.5em; - width: 1.5em; } .large-ico { font-size: 2em; - width: 2em; } + diff --git a/src/Utils/Icon.hs b/src/Utils/Icon.hs index f7ebe0ee0..e246d3b6d 100644 --- a/src/Utils/Icon.hs +++ b/src/Utils/Icon.hs @@ -260,7 +260,13 @@ iconStacked ic0 ic1 -} iconStacked :: Icon -> Icon -> Markup -iconStacked i _ = icon i -- TODO +iconStacked ic0 ic1 + = [shamlet| + $newline never + + + + |] -- Create an icon (defaults to "?") with a specified tooltip; inline-bool just affects the size of the icon iconTooltip :: forall site. WidgetFor site () -> Maybe Icon -> Bool -> WidgetFor site () diff --git a/templates/widgets/navbar/navbar.hamlet b/templates/widgets/navbar/navbar.hamlet index b6050413d..2d56ee404 100644 --- a/templates/widgets/navbar/navbar.hamlet +++ b/templates/widgets/navbar/navbar.hamlet @@ -46,7 +46,7 @@ $# SPDX-License-Identifier: AGPL-3.0-or-later $forall n@(NavHeaderContainer{ navHeaderRole }, containerIdent, _, ns) <- filter isNavHeaderContainer nav