/*! * Waves v0.7.5 * http://fian.my.id/Waves * * Copyright 2014-2016 Alfiana E. Sibuea and other contributors * Released under the MIT license * https://github.com/fians/Waves/blob/master/LICENSE */ .waves-effect { display: inline-block; position: relative; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; @include user-select(none); .waves-ripple { position: absolute; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; background: rgba(0, 0, 0, .2); $gradient: rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, .5) 60%, rgba(255, 255, 255, 0) 70%; background: -webkit-radial-gradient($gradient); background: -o-radial-gradient($gradient); background: -moz-radial-gradient($gradient); background: radial-gradient($gradient); opacity: 0; pointer-events: none; @include transition(all .5s ease-out); @include transition-property(transform, opacity); @include transform(scale(0) translate(0, 0)); } &.waves-light .waves-ripple { background: rgba(255, 255, 255, .4); $gradient: rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .3) 40%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .5) 60%, rgba(255, 255, 255, 0) 70%; background: -webkit-radial-gradient($gradient); background: -o-radial-gradient($gradient); background: -moz-radial-gradient($gradient); background: radial-gradient($gradient); } &.waves-classic .waves-ripple { background: rgba(0, 0, 0, .2); } &.waves-classic.waves-light .waves-ripple { background: rgba(255, 255, 255, .4); } } .waves-notransition { @include transition(none #{'!important'}); } .waves-button, .waves-circle { @include transform(translateZ(0)); -webkit-mask-image: -webkit-radial-gradient(circle, #ffffff 100%, #000000 100%); } .waves-button, .waves-button:hover, .waves-button:visited, .waves-button-input { border: 0; outline: none; background-color: rgba(0, 0, 0, 0); color: inherit; font-size: 1em; line-height: 1em; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; vertical-align: middle; z-index: 1; } .waves-button { padding: .85em 1.1em; border-radius: .2em; } .waves-button-input { margin: 0; padding: .85em 1.1em; } .waves-input-wrapper { border-radius: .2em; vertical-align: bottom; &.waves-button { padding: 0; } .waves-button-input { position: relative; top: 0; left: 0; z-index: 1; } } .waves-circle { width: 2.5em; height: 2.5em; border-radius: 50%; line-height: 2.5em; text-align: center; } .waves-float { box-shadow: 0 1px 1.5px 1px rgba(0, 0, 0, .12); -webkit-mask-image: none; @include transition(all 300ms); &:active { box-shadow: 0 8px 20px 1px rgba(0, 0, 0, .3); } } .waves-block { display: block; }