File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
docs/documentation/elements Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 34
34
< progress class ="progress is-large " value ="60 " max ="100 "> 60%</ progress >
35
35
{% endcapture %}
36
36
37
+ {% capture progress_indeterminate %}
38
+ < progress class ="progress is-small is-primary " max ="100 "> 15%</ progress >
39
+ < progress class ="progress is-danger " max ="100 "> 30%</ progress >
40
+ < progress class ="progress is-medium is-dark " max ="100 "> 45%</ progress >
41
+ < progress class ="progress is-large is-info " max ="100 "> 60%</ progress >
42
+ {% endcapture %}
43
+
37
44
{% include elements/snippet.html content=progress %}
38
45
39
46
{% include elements/anchor.html name="Colors" %}
44
51
45
52
{% include elements/snippet.html content=progress_sizes %}
46
53
54
+ {% include elements/anchor.html name="Indeterminate" %}
55
+
56
+ {% include elements/snippet.html content=progress_indeterminate %}
57
+
47
58
{% include elements/variables.html type='element' %}
Original file line number Diff line number Diff line change @@ -31,10 +31,31 @@ $progress-value-background-color: $text !default
31
31
background-color : $color
32
32
& ::-ms-fill
33
33
background-color : $color
34
+
35
+ & :indeterminate
36
+ & ::-webkit-progress-bar
37
+ background-color : transparent
38
+ & ::-moz-progress-bar
39
+ background-color : transparent
40
+
41
+ animation : progress- in determin ate 1.5s linear infinite
42
+ background : $progress-bar-background-color lin ear- gradient(to right , $text 30% , $progress-bar-background-color 30% ) top left / 150% 150% no-repeat
43
+
44
+ @each $name , $pair in $colors
45
+ $color : nth($pair , 1 )
46
+ & .is- #{$name}
47
+ background : $progress-bar-background-color lin ear- gradient(to right , $color 30% , $progress-bar-background-color 30% ) top left / 150% 150% no-repeat
48
+
34
49
// Sizes
35
50
& .is-small
36
51
height : $size-small
37
52
& .is-medium
38
53
height : $size-medium
39
54
& .is-large
40
55
height : $size-large
56
+
57
+ @keyframes progress-indeterminate
58
+ 0%
59
+ background-position : 200% 0
60
+ 100%
61
+ background-position : -200% 0
You can’t perform that action at this time.
0 commit comments