From: Andy Allan Date: Wed, 24 Feb 2021 10:35:28 +0000 (+0000) Subject: Use the bootstrap spacer variable as the basis for spacing calcuation, and match... X-Git-Tag: live~2294^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/00dbe5f4a4bffdac2ac093cbd42e17da9945851c?ds=inline;hp=-c Use the bootstrap spacer variable as the basis for spacing calcuation, and match mb-1 definition --- 00dbe5f4a4bffdac2ac093cbd42e17da9945851c diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 4664578cd..136404858 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -977,9 +977,13 @@ tr.turn:hover { } } +/* Bootstrap buttons don't have any vertical margin, so + they touch when adjacent buttons wrap onto a new line + e.g. wide form buttons on a narrow sidebar */ + .btn-wrapper { > .btn { - margin-bottom: $lineheight/4; + margin-bottom: $spacer * 0.25; } }