From bd528298f7a9f5134a02a4f2d115ea5dd12cddb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 31 Oct 2022 13:27:00 +0100 Subject: [PATCH] style: add a new "button group" style (#70871) --- gadjo/static/css/_forms.scss | 22 ++++++++++++++++++++++ gadjo/static/css/gadjo.scss | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/gadjo/static/css/_forms.scss b/gadjo/static/css/_forms.scss index 297f5ac..9ff4ce7 100644 --- a/gadjo/static/css/_forms.scss +++ b/gadjo/static/css/_forms.scss @@ -665,3 +665,25 @@ div.godo--editor { .BlockSubWidget.widget { margin-bottom: 0; } + +.buttons-group { + display: flex; + a { + @extend %button; + margin-right: 0; + margin-left: -1px; + border-radius: 0; + &:first-child { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; + } + &:last-child { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; + } + &.active { + background: $button-color; + color: white; + } + } +} diff --git a/gadjo/static/css/gadjo.scss b/gadjo/static/css/gadjo.scss index 6aa287d..d9f7348 100644 --- a/gadjo/static/css/gadjo.scss +++ b/gadjo/static/css/gadjo.scss @@ -1112,7 +1112,7 @@ $appicons: add, agendas, announces, bankcard, book, calendar, cards, categories, position: absolute; bottom: 0px; right: 0; - a { + > a { float: right; margin-left: 2em; }