summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/linux/global/menu.css
blob: da47f78790a251bb573d992476dc5dac9a870857 (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
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
/* 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/menu-shared.css");

/* ===== menu.css =======================================================
  == Styles used by XUL menu-related elements.
  ======================================================================= */

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

/* ::::: menu/menuitem ::::: */

menubar > menu {
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  padding-bottom: 1px;
  border-bottom: 3px solid transparent;
}

menubar > menu[open] {
  border-bottom-color: AccentColor;
}

menuitem[default="true"],
menuitem.spell-suggestion,
menucaption {
  font-weight: bold;
}

/* ::::: menu/menuitems in menulist popups ::::: */

menulist > menupopup {
  font: inherit;
}

menulist > menupopup > :is(menuitem, menucaption, menu) {
  max-width: none;
}

/* ..... internal content .... */

.menu-text,
.menu-iconic-left,
.menu-iconic-text,
.menubar-left {
  margin-block: 0;
  margin-inline: 0 2px;
}

.menu-text {
  /* This is (18 + the size of end-padding on .menu-iconic-left)px */
  margin-inline-start: 21px;
}

.menu-accel,
.menu-iconic-accel {
  margin-block: 0;
  margin-inline-start: 7px;
}

.menu-accel-container {
  justify-content: flex-end;
}

.menu-iconic-left {
  min-width: 16px;
  /* We can only hardcode this, to make the default GTK icon<->label spacing */
  padding-inline-end: 3px;
}

.menu-iconic-icon {
  width: 16px;
  height: 16px;
}

.menubar-text {
  margin: 0 1px;
}

menulist > menupopup > :is(menuitem, menucaption, menu) > .menu-iconic-left {
  display: none;
}

menuitem:is([type="checkbox"], [checked="true"]) .menu-iconic-icon {
  appearance: auto;
  -moz-default-appearance: checkbox;
}

menuitem[type="radio"] .menu-iconic-icon {
  appearance: auto;
  -moz-default-appearance: radio;
}