/**
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@mixin button() {
  background: $color-accent;
  color: #FFF;
  border-radius: 2px;
  border: none;
  padding: 0.8em 1.6em;
  overflow: hidden;
  position: relative;
  display: block;
}

.button__ripple {
  width: 50px;
  height: 50px;
  background: #FFF;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  border-radius: 50%;
  pointer-events: none;

  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);

}

.button__ripple--animate {

  -webkit-transition: -webkit-transform $card-anim-time + 0.6s cubic-bezier(0.0, 0.0, 0.2, 1),
      opacity $card-anim-time + 0.6s cubic-bezier(0.0, 0.0, 0.2, 1);
  transition: transform $card-anim-time + 0.6s cubic-bezier(0.0, 0.0, 0.2, 1),
      opacity $card-anim-time + 0.6s cubic-bezier(0.0, 0.0, 0.2, 1);
}
