Skip to content

Commit

Permalink
Add is-centered|right modifiers to .tags (#1384)
Browse files Browse the repository at this point in the history
* add classes

* add to changelig

* move to appropriate place

* more specific margins
  • Loading branch information
timacdonald authored and jgthms committed Nov 5, 2017
1 parent 23636fd commit 06cebdf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions sass/elements/tag.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06cebdf

Please sign in to comment.