bulma/sass/elements/progress.sass

33 lines
644 B
Sass
Raw Normal View History

2016-03-26 16:46:15 +00:00
.progress
2016-04-10 15:00:32 +00:00
@extend .block
2016-03-26 16:46:15 +00:00
-moz-appearance: none
-webkit-appearance: none
border: none
border-radius: 290486px
display: block
height: 12px
overflow: hidden
padding: 0
width: 100%
&::-webkit-progress-bar
background: $border
&::-webkit-progress-value
background: $text
2016-03-26 16:46:15 +00:00
&::-moz-progress-bar
background: $text
2016-04-10 15:00:32 +00:00
// Colors
2016-03-26 16:46:15 +00:00
@each $name, $pair in $colors
$color: nth($pair, 1)
&.is-#{$name}
&::-webkit-progress-value
background: $color
2016-03-26 16:46:15 +00:00
&::-moz-progress-bar
background: $color
2016-04-10 15:00:32 +00:00
// Sizes
&.is-small
height: 8px
&.is-medium
height: 16px
&.is-large
height: 20px