/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* ===== button.css =====================================================
  == Styles used by the XUL button element.
  ======================================================================= */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* :::::::::: button :::::::::: */

button {
  margin: 1px 5px 2px;
  min-width: 6.3em;
  color: ButtonText;
  background-color: ButtonFace;
  text-shadow: none;
  border: 1px solid Buttonborder;
  padding-block: 2px 3px;
  padding-inline: 5px;

  &:where(:hover) {
    background-color: -moz-buttonhoverface;
    border-color: -moz-buttonhoverborder;
    color: -moz-buttonhovertext;
  }

  &:where(:hover:active) {
    background-color: -moz-buttonactiveface;
    border-color: -moz-buttonactiveborder;
    color: -moz-buttonactivetext;
  }

  &:where(:focus-visible) {
    outline: auto;
  }

  &:where([disabled]) {
    color: GrayText;
    border-color: -moz-buttondisabledborder;
    background-color: -moz-buttondisabledface;
  }

  &.plain {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.button-text {
  margin: 0;
  text-align: center;
}
