// Copyright (C) 2012-present, The Authors. This program is free software: you can redistribute it and/or  modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>.

// BUTTONS
//

.Btn {
  padding: 0.5em 1.25em;
  border-radius: 4px;
  border: 0;

  font-size: 16px;
  font-family: $sans-font;
  font-weight: 700;
  text-transform: uppercase;
}

/*dedup with abstract class for btn & Btn-large */
.Btn-small {
  padding: 0.4em 1em;
  border-radius: 4px;
  border: 0;
  font-size: 12px;
  font-family: $sans-font;
  font-weight: 700;
  text-transform: uppercase;
  -webkit-box-shadow: 2px 2px 2px -2px #acacac;
}

.Btn-primary {
  background-color: $brand-color;
  color: #fff;
  letter-spacing: 0.07em;

  &:hover,
  &:focus {
    background-color: $btn-hover-color;
  }
}

.Btn-alt {
  background-color: $bg-alt-color;
  color: $brand-color;
  letter-spacing: 0.05em;

  &:hover,
  &:focus {
    background-color: #d9dadc;
    color: $brand-text-color;
  }
}

.Btn-moderateAccept {
  background-color: $bg-alt-color;
  color: $gray;
  letter-spacing: 0.05em;
  margin-inline-end: 5px;

  &:hover,
  &:focus {
    background-color: #d9dadc;
    color: $dark-gray;
  }
}

.Btn-moderateReject {
  background-color: $bg-alt-color;
  color: $gray;
  letter-spacing: 0.05em;

  &:hover,
  &:focus {
    background-color: #d9dadc;
    color: $dark-gray;
  }
}

//
// Voting buttons: agree and disagree
//
#agreeButton,
#disagreeButton {
  border-inline-end: 0px;
}

.Btn-vote {
  // set this independently of the overall font size, since they're difficult to get right.
  font-size: 20px;
  padding: 10px 0px; // no horizontal padding - to prevent the right edge of "disagree" from being clipped on iOS
}

//
// Fake buttons aka buttons that look like links
.BtnLink {
  padding: 0;
  border: 0;

  background-color: transparent;
  color: $link-color;
  font-weight: bold;

  &:hover,
  &:focus {
    color: $hover-color;
    outline: none;
    box-shadow: none;
  }
}
