summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/windows/global/menulist.css
blob: 44198fb6f0f03b87dee28d4d0c6f2248ca98281f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* 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/. */

@import url("chrome://global/skin/menulist-shared.css");

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

label {
  margin: 0 3px;
}

:host([native]) {
  appearance: auto;
  -moz-default-appearance: menulist;
  margin: 2px 4px;
  color: FieldText;
  text-shadow: none;
}

:host([native][disabled="true"]) {
  background-color: -moz-Dialog;
  color: GrayText;
}

/* Label box */

#label-box[native] {
  align-items: center;
  justify-content: center;
}

:host([native]:not([open="true"]):focus) > #label-box {
  background-color: SelectedItem;
  color: SelectedItemText;
}

:host([native]:not([open="true"]):-moz-focusring) > #label-box {
  outline: var(--default-focusring);
}


@media (-moz-windows-default-theme) {
  #label-box[native] {
    background-color: transparent !important;
    color: inherit !important;
  }

  image[native],
  label[native] {
    margin-block: -1px !important;
  }

  dropmarker[native] {
    margin-top: -2px;
    margin-inline: 3px -3px;
  }
}