2015-12-07 20:40:42 +03:00
|
|
|
// marker class (used as a selector for one-off elements to decorate)
|
2015-12-02 19:38:00 +03:00
|
|
|
.ripple {
|
|
|
|
position: relative;
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
2015-12-02 19:38:00 +03:00
|
|
|
|
2015-11-24 02:43:41 +03:00
|
|
|
.ripple-container {
|
2015-12-02 19:38:00 +03:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
pointer-events: none;
|
2015-12-07 22:34:46 +03:00
|
|
|
border-radius: inherit;
|
2015-12-02 19:38:00 +03:00
|
|
|
|
|
|
|
.ripple-decorator {
|
2014-10-03 15:58:24 +04:00
|
|
|
position: absolute;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin-top: -10px;
|
2015-12-07 22:34:46 +03:00
|
|
|
margin-left: -10px;
|
|
|
|
pointer-events: none;
|
|
|
|
background-color: rgba($black, 0.05);
|
2014-10-03 15:58:24 +04:00
|
|
|
border-radius: 100%;
|
2015-12-07 22:34:46 +03:00
|
|
|
opacity: 0;
|
2014-10-03 15:58:24 +04:00
|
|
|
transform: scale(1);
|
|
|
|
transform-origin: 50%;
|
2015-12-02 19:38:00 +03:00
|
|
|
|
|
|
|
&.ripple-on {
|
|
|
|
opacity: 0.1;
|
2015-12-07 22:34:46 +03:00
|
|
|
transition: opacity 0.15s ease-in 0s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
|
2015-12-02 19:38:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.ripple-out {
|
|
|
|
opacity: 0;
|
2015-12-07 22:34:46 +03:00
|
|
|
transition: opacity 0.1s linear 0s !important;
|
2015-12-02 19:38:00 +03:00
|
|
|
}
|
|
|
|
}
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|