@@ -17,51 +17,46 @@ $md-progress-bar-piece-animation-duration: 250ms !default;
17
17
transition : opacity $md-progress-bar-piece-animation-duration linear ;
18
18
width : 100% ;
19
19
20
+ // Base styles that are re-used across all of the progress bar children.
21
+ .md-progress-bar-element , .md-progress-bar-fill ::after {
22
+ height : 100% ;
23
+ position : absolute ;
24
+ width : 100% ;
25
+ }
26
+
20
27
// The progress bar background is used to show the bubble animation scrolling behind a
21
28
// buffering progress bar.
22
29
.md-progress-bar-background {
23
30
background-repeat : repeat-x ;
24
31
background-size : 10px 4px ;
25
- height : 100% ;
26
- position : absolute ;
27
- visibility : hidden ;
28
- width : 100% ;
32
+ display : none ;
29
33
}
30
34
31
35
// The progress bar buffer is the bar indicator showing the buffer value and is only visible
32
36
// beyond the current value of the primary progress bar.
33
37
.md-progress-bar-buffer {
34
- height : 100% ;
35
- position : absolute ;
36
38
transform-origin : top left ;
37
39
transition : transform $md-progress-bar-piece-animation-duration ease ;
38
- width : 100% ;
39
40
}
40
41
41
- // The secondary progress bar is only used in the indeterminate animation, because of this it
42
- // is hidden in other uses.
42
+ // The secondary progress bar is only used in the indeterminate animation, because of this it
43
+ // is hidden in other uses.
43
44
.md-progress-bar-secondary {
44
- visibility : hidden ;
45
+ display : none ;
45
46
}
46
47
47
48
// The progress bar fill fills the progress bar with the indicator color.
48
49
.md-progress-bar-fill {
49
50
animation : none ;
50
- height : 100% ;
51
- position : absolute ;
52
51
transform-origin : top left ;
53
52
transition : transform $md-progress-bar-piece-animation-duration ease ;
54
- width : 100% ;
55
53
}
56
54
57
55
// A pseudo element is created for each progress bar bar that fills with the indicator color.
58
56
.md-progress-bar-fill ::after {
59
57
animation : none ;
60
58
content : ' ' ;
61
59
display : inline-block ;
62
- height : 100% ;
63
- position : absolute ;
64
- width : 100% ;
65
60
left : 0 ;
66
61
}
67
62
@@ -84,7 +79,7 @@ $md-progress-bar-piece-animation-duration: 250ms !default;
84
79
.md-progress-bar-secondary {
85
80
animation : md- progress- bar- secondary- indeterminate- translate $md-progress-bar-full-animation-duration infinite linear ;
86
81
left : -54.888891% ;
87
- visibility : visible ;
82
+ display : block ;
88
83
}
89
84
.md-progress-bar-secondary.md-progress-bar-fill ::after {
90
85
animation : md- progress- bar- secondary- indeterminate- scale $md-progress-bar-full-animation-duration infinite linear ;
@@ -94,7 +89,7 @@ $md-progress-bar-piece-animation-duration: 250ms !default;
94
89
& [mode = ' buffer' ] {
95
90
.md-progress-bar-background {
96
91
animation : md- progress- bar- background- scroll $md-progress-bar-piece-animation-duration infinite linear ;
97
- visibility : visible ;
92
+ display : block ;
98
93
}
99
94
}
100
95
}
@@ -114,7 +109,7 @@ $md-progress-bar-piece-animation-duration: 250ms !default;
114
109
// mirrors the primary progress bar in appearance but is only shown to assist with the
115
110
// indeterminate animations.
116
111
117
- // KEYFRAME BLOCK DESCRIPTION
112
+ // KEYFRAME BLOCK DESCRIPTION
118
113
// primary-indeterminate-translate Translation of the primary progressbar across the screen
119
114
// primary-indeterminate-scale Scaling of the primary bar as it's being translated across the screen
120
115
// secondary-indeterminate-translate Translation of the secondary bar across the screen
0 commit comments