1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6
7@media (-moz-proton) {
8:host(:not([native])) {
9  appearance: none;
10  background-color: var(--button-bgcolor, ButtonFace);
11  color: var(--button-color, ButtonText);
12  border-radius: 4px;
13  padding-block: 4px;
14  padding-inline: 12px 8px;
15  margin: 5px 2px 3px;
16}
17
18:host(:not([native])[size="medium"]) {
19  padding-block: 6px;
20  padding-inline: 16px 10px;
21}
22
23:host(:not([native])[size="large"]) {
24  padding-block: 8px;
25  padding-inline: 16px 12px;
26}
27
28:host(:not([native]):hover) {
29  background-color: var(--button-hover-bgcolor, color-mix(in srgb, currentColor 10%, ButtonFace));
30}
31
32:host(:not([native]):hover:active) {
33  background-color: var(--button-active-bgcolor, color-mix(in srgb, currentColor 20%, ButtonFace));
34}
35
36:host(:not([native]):-moz-focusring) {
37  outline: 2px solid var(--focus-outline-color, -moz-accent-color);
38  outline-offset: var(--focus-outline-offset, 2px);
39}
40
41#label-box:not([native]) {
42  -moz-box-align: center;
43  -moz-box-pack: center;
44  font-weight: 600;
45}
46
47dropmarker:not([native]) {
48  display: -moz-box;
49  appearance: none;
50  width: 12px;
51  height: 12px;
52}
53
54dropmarker:not([native])::part(icon) {
55  list-style-image: url(chrome://global/skin/icons/arrow-down.svg);
56  -moz-context-properties: fill;
57  fill: currentColor;
58}
59
60#highlightable-label:not([highlightable="true"]),
61#label[highlightable="true"] {
62  display: none;
63}
64} /** END Proton **/
65