]> git.openstreetmap.org Git - rails.git/commitdiff
Override Bootstrap close button inversion inside themed elements
authorAnton Khorev <tony29@yandex.ru>
Mon, 6 May 2024 15:03:46 +0000 (18:03 +0300)
committerAnton Khorev <tony29@yandex.ru>
Thu, 9 May 2024 14:06:11 +0000 (17:06 +0300)
app/assets/stylesheets/common.scss

index 0fd3317e0f1da9d13b784e34f1c3837f5ea4af01..09c6c906bb64b80837e20534110a9f790a180e8a 100644 (file)
@@ -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 {