File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
packages/core/src/components/skeleton Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
@import " ../../common/variables" ;
4
4
5
- $skeleton-animation : ($pt-transition-duration * 20 ) linear infinite glow !default ;
5
+ $skeleton-animation :
6
+ ($pt-transition-duration * 10 ) linear infinite alternate skeleton- glow !default ;
6
7
$skeleton-color-start : rgba ($gray4 , 0.2 ) !default ;
7
8
$skeleton-color-end : rgba ($gray1 , 0.2 ) !default ;
Original file line number Diff line number Diff line change @@ -21,27 +21,28 @@ Markup:
21
21
Styleguide skeleton
22
22
*/
23
23
24
- @keyframes glow {
25
- 0%,
26
- 100% {
24
+ @keyframes skeleton-glow {
25
+ from {
27
26
border-color : $skeleton-color-start ;
28
- background-color : $skeleton-color-start ;
27
+ background : $skeleton-color-start ;
29
28
}
30
29
31
- 50% {
30
+ to {
32
31
border-color : $skeleton-color-end ;
33
- background-color : $skeleton-color-end ;
32
+ background : $skeleton-color-end ;
34
33
}
35
34
}
36
35
37
- // This class hides content with a glowing, rounded rectangle. CSS properties that should always
38
- // override consumer values use the "!important" rule.
36
+ // This class hides content with a glowing, rounded rectangle.
37
+ // CSS properties that should always override consumer values use the "!important" rule.
39
38
/* stylelint-disable declaration-no-important */
40
39
.#{$ns } -skeleton {
41
40
border-color : $skeleton-color-start !important ;
42
41
border-radius : 2px ;
43
42
box-shadow : none !important ;
44
- background : $skeleton-color-start !important ;
43
+
44
+ // do not !important this for Firefox support
45
+ background : $skeleton-color-start ;
45
46
46
47
// Prevent background color from extending to the border and overlappping
47
48
background-clip : padding-box !important ;
You can’t perform that action at this time.
0 commit comments