From: Andy Allan Date: Wed, 27 Sep 2023 08:23:26 +0000 (+0100) Subject: Workaround for dartsass vs bootstrap 5.1 bug X-Git-Tag: live~985^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c975bae5074e4211a86458856030f0d17eaef917?ds=inline;hp=-c Workaround for dartsass vs bootstrap 5.1 bug --- c975bae5074e4211a86458856030f0d17eaef917 diff --git a/app/assets/stylesheets/parameters.scss b/app/assets/stylesheets/parameters.scss index e0082a26a..4f93273a8 100644 --- a/app/assets/stylesheets/parameters.scss +++ b/app/assets/stylesheets/parameters.scss @@ -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);