From d2e2d05f08ba16d07fbb8a5a5eebde5cb43b6ab4 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Fri, 10 Aug 2018 15:00:40 +0200 Subject: [PATCH] [FIX] web: BS4 fix modal footer buttons margin --- addons/web/static/src/scss/modal.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss index 5d4aae44ff9..a71f8aa0ff2 100644 --- a/addons/web/static/src/scss/modal.scss +++ b/addons/web/static/src/scss/modal.scss @@ -29,11 +29,16 @@ text-align: left; justify-content: flex-start; + // TODO These rules should not be necessary if we used buttons + // as direct children of the modal-footer as normally required > div, > footer { - // TODO this rule should not be necessary if we used buttons - // as direct children of the modal-footer as normally required flex: 1 1 auto; } + + footer { + > :not(:first-child) { margin-left: .25rem; } + > :not(:last-child) { margin-right: .25rem; } + } } }