From: Tim MacDonald Date: Sun, 5 Nov 2017 14:09:36 +0000 (+1100) Subject: Add `is-centered|right` modifiers to `.tags` (#1384) X-Git-Tag: 0.6.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06cebdf9213c5d4f2d0017a5e2fb740156a5222c;p=thirdparty%2Fbulma.git Add `is-centered|right` modifiers to `.tags` (#1384) * add classes * add to changelig * move to appropriate place * more specific margins --- diff --git a/CHANGELOG.md b/CHANGELOG.md index d6bf55786..9a4d411d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * 🎉 #1235 Support for five column grid: `.is-one-fifth, .is-two-fifths, .is-three-fifths, .is-four-fifths` * 🎉 #1287 New `.is-invisible` helper * 🎉 #1255 New `.is-expanded` modifier for `navbar-item` +* 🎉 #1384 New `.is-centered` and `.is-right` modifiers for `tags` ### Improvements diff --git a/sass/elements/tag.sass b/sass/elements/tag.sass index ea89e1621..a84e76f8c 100644 --- a/sass/elements/tag.sass +++ b/sass/elements/tag.sass @@ -25,6 +25,18 @@ $tag-delete-margin: 1px !default &:not(:last-child) border-bottom-right-radius: 0 border-top-right-radius: 0 + &.is-centered + justify-content: center + .tag + margin-right: 0.25rem + margin-left: 0.25rem + &.is-right + justify-content: flex-end + .tag + &:not(:first-child) + margin-left: 0.5rem + &:not(:last-child) + margin-right: 0 .tag:not(body) align-items: center