1 | @import 'default-theme';
|
2 | @import 'theme-functions';
|
3 |
|
4 | $md-ripple-focused-opacity: 0.1;
|
5 | $md-ripple-background-fade-duration: 300ms;
|
6 | $md-ripple-background-default-color: rgba(0, 0, 0, 0.0588);
|
7 | $md-ripple-foreground-initial-opacity: 0.25;
|
8 | $md-ripple-foreground-default-color: rgba(0, 0, 0, 0.0588);
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | [md-ripple] {
|
15 | overflow: hidden;
|
16 | }
|
17 |
|
18 | [md-ripple].md-ripple-unbounded {
|
19 | overflow: visible;
|
20 | }
|
21 |
|
22 | .md-ripple-background {
|
23 | background-color: $md-ripple-background-default-color;
|
24 | opacity: 0;
|
25 | transition: opacity $md-ripple-background-fade-duration linear;
|
26 | position: absolute;
|
27 | left: 0;
|
28 | top: 0;
|
29 | right: 0;
|
30 | bottom: 0;
|
31 | }
|
32 |
|
33 | .md-ripple-unbounded .md-ripple-background {
|
34 | display: none;
|
35 | }
|
36 |
|
37 | .md-ripple-background.md-ripple-active {
|
38 | opacity: 1;
|
39 | }
|
40 |
|
41 | .md-ripple-focused .md-ripple-background {
|
42 | background-color: md-color($md-accent, $md-ripple-focused-opacity);
|
43 | opacity: 1;
|
44 | }
|
45 |
|
46 | .md-ripple-foreground {
|
47 | background-color: $md-ripple-foreground-default-color;
|
48 | border-radius: 50%;
|
49 | pointer-events: none;
|
50 | opacity: $md-ripple-foreground-initial-opacity;
|
51 | position: absolute;
|
52 |
|
53 | transition: 'opacity, transform' 0ms cubic-bezier(0, 0, 0.2, 1);
|
54 | }
|
55 |
|
56 | .md-ripple-foreground.md-ripple-fade-in {
|
57 | opacity: 1;
|
58 | }
|
59 |
|
60 | .md-ripple-foreground.md-ripple-fade-out {
|
61 | opacity: 0;
|
62 | }
|