From 3118b6aa40b4b9ad3c43173b81977836a0a984a6 Mon Sep 17 00:00:00 2001 From: traumweh Date: Wed, 9 Apr 2025 21:36:08 +0200 Subject: [PATCH] Fix area_msg when content isn't wrapped in anything --- css/area_msg.less | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/css/area_msg.less b/css/area_msg.less index d631e0c..8697293 100644 --- a/css/area_msg.less +++ b/css/area_msg.less @@ -19,13 +19,7 @@ div.success, div.error, div.info, div.notify { - @media @screen_max-md { - flex-direction: column; - } - - display: flex; - align-items: start; - gap: 0.5rem; + display: block; border: none; border-left: solid 0.5rem var(--color-shade-4); border-radius: 0.5rem; @@ -34,15 +28,16 @@ div.notify { background-color: var(--color-shade-1); &::before { + display: inline-block; content: ""; - flex-shrink: 0; - margin-top: 0.3em; + margin: 0.3em 0.2em 0 0; width: 1em; height: 1em; mask-size: contain; mask-position: center top; mask-repeat: no-repeat; background-color: currentColor; + vertical-align: top; } &.success {