/* - 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/. */

%include ../../../shared/in-content/common.inc.css

xul|caption {
  background-color: transparent;
}

xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
  margin-top: 1px;
  margin-bottom: 1px;
}

xul|checkbox,
xul|radio {
  padding-inline-start: 0;
}

@media (-moz-windows-default-theme: 0) {
  xul|*.checkbox-check,
  xul|*.radio-check {
    background-image: none;
  }

  xul|*.checkbox-check[checked] {
    fill: -moz-dialogText;
    stroke: none;
    background-color: -moz-dialog;
  }

  xul|*.radio-check[selected] {
    background-color: -moz-dialog;
    fill: -moz-dialogText;
  }
}

/* Never draw a border for the focusring, use outline instead */
xul|*.menulist-label-box {
  border-style: none;
}

xul|menulist:-moz-focusring > xul|*.menulist-label-box,
html|input[type="checkbox"]:-moz-focusring + html|label:before {
  outline: 1px dotted;
}

/* Use a 2px border so that selected row highlight is still visible behind
    an existing high-contrast border that uses the background color */
@media (-moz-windows-default-theme: 0) {
  xul|treechildren::-moz-tree-row(selected),
  xul|listbox xul|listitem[selected="true"] {
     border: 2px dotted Highlight;
  }
}

html|button {
  /* XUL button min-width */
  min-width: 6.3em;
}
