bulma/sass/elements/tag.sass

29 lines
612 B
Sass
Raw Normal View History

2016-10-30 10:41:53 +00:00
.tag
align-items: center
background-color: $background
border-radius: 290486px
color: $text
display: inline-flex
font-size: $size-small
height: 2em
justify-content: center
line-height: 1.5
padding-left: 0.875em
padding-right: 0.875em
white-space: nowrap
.delete
margin-left: 0.25em
2017-03-13 15:22:20 +00:00
margin-right: -0.375em
2016-10-30 10:41:53 +00:00
// Colors
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
background-color: $color
color: $color-invert
// Sizes
&.is-medium
font-size: $size-normal
&.is-large
font-size: $size-medium