summaryrefslogtreecommitdiff
path: root/templates/assets/sass/material-kit/_ripples.scss
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-22 19:19:26 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-22 19:19:26 +0100
commitd42c8b528eb595101954f478e0024e3f079f6fbf (patch)
tree61a528cf94f1f6941f4683ae8736a4a0135c035e /templates/assets/sass/material-kit/_ripples.scss
downloadminionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.tar.gz
minionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.zip
first implementation of fun stats site
Diffstat (limited to 'templates/assets/sass/material-kit/_ripples.scss')
-rwxr-xr-xtemplates/assets/sass/material-kit/_ripples.scss36
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/assets/sass/material-kit/_ripples.scss b/templates/assets/sass/material-kit/_ripples.scss
new file mode 100755
index 0000000..ffe753e
--- /dev/null
+++ b/templates/assets/sass/material-kit/_ripples.scss
@@ -0,0 +1,36 @@
+.withripple {
+ position: relative;
+}
+.ripple-container {
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 1;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ border-radius: inherit;
+ pointer-events: none;
+}
+.ripple {
+ position: absolute;
+ width: 20px;
+ height: 20px;
+ margin-left: -10px;
+ margin-top: -10px;
+ border-radius: 100%;
+ background-color: #000; // fallback color
+ background-color: rgba(0,0,0,0.05);
+ transform: scale(1);
+ transform-origin: 50%;
+ opacity: 0;
+ pointer-events: none;
+}
+.ripple.ripple-on {
+ transition: opacity 0.15s ease-in 0s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
+ opacity: 0.1;
+}
+.ripple.ripple-out {
+ transition: opacity 0.1s linear 0s !important;
+ opacity: 0;
+}