/*!
 * Waves v0.6.0
 * http://fian.my.id/Waves
 *
 * Copyright 2014 Alfiana E. Sibuea and other contributors
 * Released under the MIT license
 * https://github.com/fians/Waves/blob/master/LICENSE
 */

@import './colors';

.waves-effect {
  position: relative;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
  z-index: 1;
  transition: 0.3s;

  .waves-ripple {
    position: absolute;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    margin-left: -5px;
    opacity: 0;

    background: rgba(0, 0, 0, 0.2);
    transition: all 0.7s;
    transition-property: transform, opacity;
    transform: scale(0);
    pointer-events: none;

    /* Firefox Bug: link not triggered */
    z-index: -1;
  }

  // Waves Colors
  &.waves-default .waves-ripple {
    background-color: rgba($color-N0, 0.5);
  }

  &.waves-danger .waves-ripple {
    background-color: rgba($color-R200, 0.5);
  }

  &.waves-secondary .waves-ripple {
    background-color: rgba($color-B200, 1);
  }

  // Style input button bug.
  input[type='button'],
  input[type='reset'],
  input[type='submit'] {
    border: 0;
    font-style: normal;
    font-size: inherit;
    text-transform: inherit;
    background: none;
  }

  img {
    position: relative;
    z-index: -1;
  }
}

.waves-notransition {
  transition: none #{'!important'};
}

.waves-circle {
  transform: translateZ(0);
  -webkit-mask-image: unquote(
    '-webkit-radial-gradient(circle, white 100%, black 100%)'
  );
  text-align: center;
  width: 2.5em;
  height: 2.5em;
  line-height: 2.5em;
  border-radius: 50%;
}

.waves-input-wrapper {
  border-radius: 0.2em;
  vertical-align: bottom;

  .waves-button-input {
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
  }
}

.waves-block {
  display: block;
}
