From 00dbe5f4a4bffdac2ac093cbd42e17da9945851c Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 24 Feb 2021 10:35:28 +0000 Subject: [PATCH] Use the bootstrap spacer variable as the basis for spacing calcuation, and match mb-1 definition --- app/assets/stylesheets/common.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.39.5