| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- /*Wave Effeects*/
- $gradient: rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%;
- @mixin waves-transition($transition) {
- -webkit-transition: $transition;
- -moz-transition: $transition;
- -o-transition: $transition;
- transition: $transition;
- }
- @mixin waves-transform($string) {
- -webkit-transform: $string;
- -moz-transform: $string;
- -ms-transform: $string;
- -o-transform: $string;
- transform: $string;
- }
- @mixin waves-box-shadow($shadow) {
- -webkit-box-shadow: $shadow;
- box-shadow: $shadow;
- }
- .waves-effect {
- position: relative;
- display: inline-block;
- overflow: hidden;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-tap-highlight-color: transparent;
- .waves-ripple {
- position: absolute;
- width: 20px;
- height: 20px;
- margin-top: -10px;
- margin-left: -10px;
- pointer-events: none;
- background: rgba(0, 0, 0, 0.08);
- border-radius: 50%;
- opacity: 0;
- -webkit-transition-property: -webkit-transform, opacity;
- -moz-transition-property: -moz-transform, opacity;
- -o-transition-property: -o-transform, opacity;
- transition-property: transform, opacity;
- -webkit-transform: scale(0);
- -moz-transform: scale(0);
- -ms-transform: scale(0);
- -o-transform: scale(0);
- transform: scale(0);
- @include waves-transition(all 0.5s ease-out);
- @include waves-transform(scale(0) translate(0, 0));
- }
- &.waves-light .waves-ripple {
- background: rgba(255, 255, 255, 0.4);
- 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, 0.2);
- }
- &.waves-classic.waves-light .waves-ripple {
- background: rgba(255, 255, 255, 0.4);
- }
- }
- .waves-notransition {
- @include waves-transition(none '!important');
- }
- .waves-button,
- .waves-circle {
- @include waves-transform(translateZ(0));
- -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
- }
- .waves-button,
- .waves-button:hover,
- .waves-button:visited,
- .waves-button-input {
- z-index: 1;
- font-size: 1em;
- line-height: 1em;
- color: inherit;
- text-align: center;
- text-decoration: none;
- white-space: nowrap;
- vertical-align: middle;
- cursor: pointer;
- background-color: rgba(0, 0, 0, 0);
- border: none;
- outline: none;
- }
- .waves-button {
- padding: 0.85em 1.1em;
- border-radius: 0.2em;
- }
- .waves-button-input {
- padding: 0.85em 1.1em;
- margin: 0;
- }
- .waves-input-wrapper {
- vertical-align: bottom;
- border-radius: 0.2em;
- &.waves-button {
- padding: 0;
- }
- .waves-button-input {
- position: relative;
- top: 0;
- left: 0;
- z-index: 1;
- }
- }
- .waves-circle {
- width: 2.5em;
- height: 2.5em;
- line-height: 2.5em;
- text-align: center;
- border-radius: 50%;
- }
- .waves-float {
- mask-image: none;
- @include waves-box-shadow(0px 1px 1.5px 1px rgba(0, 0, 0, 0.12));
- @include waves-transition(all 300ms);
- &:active {
- @include waves-box-shadow(0px 8px 20px 1px rgba(0, 0, 0, 0.3));
- }
- }
- .waves-block {
- display: block;
- }
|