]> git.openstreetmap.org Git - rails.git/commitdiff
Workaround for dartsass vs bootstrap 5.1 bug
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 27 Sep 2023 08:23:26 +0000 (09:23 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 27 Sep 2023 08:35:30 +0000 (09:35 +0100)
app/assets/stylesheets/parameters.scss

index e0082a26aa0cf354564bfb1e734e740b00a88f9b..4f93273a895f7a293693ee8b66ae71dadbb6ac85 100644 (file)
@@ -24,3 +24,13 @@ $link-hover-decoration: underline;
 $table-striped-bg: $offwhite;
 
 $enable-negative-margins: true;
+
+// Workaround for a dartsass bug with bootstrap 5.1
+// This can be removed after upgrading to bootstrap 5.2
+// This copies definitions straight from bootstrap, but uses the sass-native
+// version of the subtract function.
+$border-width: 2px;
+$border-radius: .35rem;
+$card-border-radius: $border-radius;
+$card-border-width: $border-width;
+$card-inner-border-radius: subtract($card-border-radius, $card-border-width);