From: Anton Khorev Date: Mon, 6 May 2024 15:03:46 +0000 (+0300) Subject: Override Bootstrap close button inversion inside themed elements X-Git-Tag: live~16^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/cc5d8d991b31a3bce1e06cbf8afe53967800a363 Override Bootstrap close button inversion inside themed elements --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 0fd3317e0..09c6c906b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -72,6 +72,16 @@ time[title] { } } +/* Bootstrap close button overrides for nested light/dark themes */ + +[data-bs-theme="dark"] .btn-close { + filter: var(--bs-btn-close-white-filter); +} + +[data-bs-theme="light"] .btn-close { + filter: none; +} + /* Rules for the header */ #menu-icon {