]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add `is-centered|right` modifiers to `.tags` (#1384)
authorTim MacDonald <tim.mac7@me.com>
Sun, 5 Nov 2017 14:09:36 +0000 (01:09 +1100)
committerJeremy Thomas <bbxdesign@gmail.com>
Sun, 5 Nov 2017 14:09:36 +0000 (14:09 +0000)
* add classes

* add to changelig

* move to appropriate place

* more specific margins

CHANGELOG.md
sass/elements/tag.sass

index d6bf55786c5c7d5a49c664ca56fe0c182a928c13..9a4d411d31f7cbddc190fdf051ac47d7953b78eb 100644 (file)
@@ -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
 
index ea89e162198bb181ae285f671e63a75976365c6a..a84e76f8cb141708039099005c7767e51ceda278 100644 (file)
@@ -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