File: menulist.css

package info (click to toggle)
firefox 147.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,683,484 kB
  • sloc: cpp: 7,607,246; javascript: 6,533,185; ansic: 3,775,227; python: 1,415,393; xml: 634,561; asm: 438,951; java: 186,241; sh: 62,752; makefile: 18,079; objc: 13,092; perl: 12,808; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10; exp: 6
file content (119 lines) | stat: -rw-r--r-- 2,452 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/* 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/. */

:host([native]) {
  appearance: auto;
  -moz-default-appearance: menulist;
  text-shadow: none;
  @media (-moz-platform: linux) {
    font: menu;
  }
  @media (-moz-platform: linux) or (-moz-platform: windows) {
    margin: 2px 4px;
    color: ButtonText;
    padding: 2px 3px;
    border: 1px solid ThreeDLightShadow;

    dropmarker {
      align-self: stretch;
    }
  }
  @media (-moz-platform: macos) {
    margin: 5px 2px 3px;
    min-height: 20px;
    color: -moz-DialogText;

    #label-box {
      margin-bottom: 1px;
    }

    label {
      margin: 1px 3px;
    }

    dropmarker {
      display: none;
    }
  }
}

@media (-moz-platform: linux) or (-moz-platform: windows) {
  :host([native]:where(:hover)) {
    color: -moz-buttonhovertext;
  }
  :host([native]:where(:hover:active, [open="true"])) {
    color: -moz-buttonactivetext;
  }
}

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

:host(:not([native])) {
  appearance: none;
  background-color: var(--button-background-color);
  color: var(--button-text-color);
  border-radius: var(--button-border-radius);
  padding-block: 4px;
  padding-inline: 12px 8px;
  margin: 5px 2px 3px;
}

:host(:not([native])[size="medium"]) {
  padding-block: 6px;
  padding-inline: 16px 10px;
}

:host(:not([native])[size="large"]) {
  padding-block: 8px;
  padding-inline: 16px 12px;
}

:host(:not([native]):hover) {
  background-color: var(--button-background-color-hover);
}

:host(:not([native]):hover:active) {
  background-color: var(--button-background-color-active);
}

:host(:not([native]):focus-visible) {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

#label-box {
  min-width: 0;
  pointer-events: none;
  align-items: center;
  justify-content: center;

  :host(:not([native])) & {
    font-weight: var(--font-weight-semibold);
  }
}

dropmarker {
  pointer-events: none;
  flex: 0;
  align-self: center;

  :host(:not([native])) & {
    display: flex;
    appearance: none;
    content: url(chrome://global/skin/icons/arrow-down-12.svg);
    -moz-context-properties: fill;
    fill: currentColor;
  }
}

:host(:not([highlightable])) #highlightable-label,
:host([highlightable]) #label {
  display: none;
}

label {
  margin: 0 3px;
}