-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathd2l-progress.html
More file actions
57 lines (50 loc) · 1.58 KB
/
d2l-progress.html
File metadata and controls
57 lines (50 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../d2l-colors/d2l-colors.html">
<custom-style>
<style is="custom-style">
html {
--d2l-progress: {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
background-color: var(--d2l-color-woolonardo);
border-radius: 10px;
border: none;
box-shadow: inset 0px 2px 0px 0px var(--d2l-color-gypsum);
height: 1rem;
width: 100%;
};
/* this is necessary to avoid white bleed over rounded corners in chrome and safari */
--d2l-progress-webkit-progress-bar: {
background-color: transparent;
};
/* strangely, comma separating the selectors for these pseudo-elements causes them to break */
--d2l-progress-webkit-progress-value: {
background-color: var(--d2l-color-olivine);
border: 1px solid transparent;
border-radius: 10px;
transition: width 0.75s ease-out;
};
/* note: unable to get firefox to animate the width... seems animation is not implemented for progress in FF */
--d2l-progress-moz-progress-bar: {
background-color: var(--d2l-color-olivine);
border: 1px solid transparent;
border-radius: 10px;
transition: width 0.75s ease-out;
};
--d2l-progress-ms-fill: {
background-color: var(--d2l-color-olivine);
border: 1px solid transparent;
border-radius: 10px;
transition: width 0.75s ease-out;
};
/* these are necessary to avoid showing border when value is 0 */
--d2l-progress-webkit-progress-value-no-progress: {
border: none;
};
--d2l-progress-moz-progress-bar-no-progress: {
border: none;
};
}
</style>
</custom-style>