/*!
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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.
 *
 */

@import '../_variables';

.mat-button.mat-primary, .mat-icon-button.mat-primary, .mat-stroked-button.mat-primary {
  color:$sp-color-accent;
}

.mat-button, .mat-raised-button, .mat-flat-button {
  display: inline-block;
  vertical-align: middle;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.1em;
  line-height: 1em;
  padding: 0.75em 1.25em;
  margin-right: 0.25em;
  margin-left: 0.25em;
  margin-top: 0;
  box-shadow: none !important;
}

.mat-button > i, .mat-raised-button > i, .mat-flat-button > i {
  vertical-align: middle;
  line-height: inherit;
}

.mat-button > span, .mat-raised-button > span, .mat-flat-button > span {
  vertical-align: middle;
}

.mat-fab.mat-primary {
  background: $sp-color-accent;
  color: rgba(255, 255, 255, 0.75);
}

.mat-raised-button.mat-accent:enabled {
  background: $sp-color-primary;
  color: rgba(255, 255, 255, 0.75);
}

.mat-raised-button.mat-accent:hover:enabled {
  background: $sp-color-primary-light;
  -webkit-transition: all 0.75s ease;
  transition: all 0.75s ease;
}

.mat-raised-button.mat-accent:disabled {
  background: #ebebeb;
  color: #cdcdcd;
}

.mat-raised-button.mat-primary:enabled {
  background: $sp-color-accent;
  color: rgba(255, 255, 255, 0.75);
}

.mat-raised-button.small-button {
    padding: 0.25em 0.75em;
    font-size: 0.8em;
    max-height: 20px;
    line-height: 10px;
}

.mat-raised-button.small-button-add {
  padding: 0.25em 0.75em;
  font-size: 0.8em;
  max-height: 75px;
  line-height: 25px;
}

.mat-raised-button.small-button-add-inverted {
  padding: 0.25em 0.75em;
  font-size: 0.8em;
  max-height: 75px;
  line-height: 25px;
  background: white;
  border: 1.5px solid $sp-color-accent;
  color: $sp-color-accent
}

.mat-raised-button.mat-primary:hover:enabled {
  background: $sp-color-accent-light-blue;
  -webkit-transition: all 0.75s ease;
  transition: all 0.75s ease;
}

.mat-raised-button.mat-primary:disabled {
  background: #ebebeb;
  color: #cdcdcd;
}

.mat-raised-button.mat-basic:enabled {
  background: #e5e5e5;
  color: rgba(0, 0, 0, 0.67);
}

.mat-raised-button.mat-basic:hover:enabled {
  background: #cbcbcb;
  -webkit-transition: all 0.75s ease;
  transition: all 0.75s ease;
}

.mat-raised-button.mat-basic:disabled {
  background: #ebebeb;
  color: #cdcdcd;
}

.mat-flat-button.mat-primary:enabled {
  color: $sp-color-accent;
  background: rgba(0, 0, 0, 0);
}

.mat-flat-button.mat-primary:hover:enabled {
  background: #d9d9d9;
  -webkit-transition: all 0.75s ease;
  transition: all 0.75s ease;
}

.mat-flat-button.mat-primary:disabled {
  color: #cdcdcd;
  background: rgba(0, 0, 0, 0);
}