forked from yuristrelets/react-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.scss
More file actions
40 lines (37 loc) · 749 Bytes
/
theme.scss
File metadata and controls
40 lines (37 loc) · 749 Bytes
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
@import "../base";
@import "./config";
%ripple {
position: absolute;
top: 50%;
left: 50%;
z-index: $z-index-high;
pointer-events: none;
background-color: currentColor;
border-radius: 50%;
transform-origin: 50% 50%;
}
.rippleWrapper {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: $z-index-normal;
pointer-events: none;
}
.ripple {
@extend %ripple;
transition-duration: $ripple-duration;
&.rippleRestarting {
opacity: $ripple-final-opacity;
transition-property: none;
}
&.rippleActive {
opacity: $ripple-final-opacity;
transition-property: transform;
}
&:not(.rippleActive):not(.rippleRestarting) {
opacity: 0;
transition-property: opacity, transform;
}
}