summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/linux/global/toolbarbutton.css
blob: c269b356f0fa06ec6788a0c62056d69aac4c0d26 (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
/* 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/. */

/* ===== toolbarbutton.css =====================================================
  == Styles used by the XUL button element.
  ======================================================================= */

/* ::::: toolbarbutton ::::: */

toolbarbutton {
  appearance: auto;
  -moz-default-appearance: toolbarbutton;
  margin: 0;
  padding: 3px;
}

:root[lwtheme-image] toolbarbutton {
  text-shadow: none;
}

.toolbarbutton-text {
  margin: 0;
}

toolbarbutton:where([checked="true"]) {
  color: ButtonText;
}

toolbarbutton:where(:hover) {
  color: -moz-buttonhovertext;
}

toolbarbutton:where(:hover:active:not([disabled="true"])),
toolbarbutton:where([open="true"]) {
  color: ButtonText;
}

toolbarbutton:where([disabled="true"]) {
  color: GrayText;
}

toolbarbutton:-moz-lwtheme:not(:hover, [checked="true"], [open="true"], [disabled="true"]) {
  text-shadow: inherit;
}

/* ::::: toolbarbutton menu ::::: */

.toolbarbutton-menu-dropmarker {
  appearance: auto;
  -moz-default-appearance: toolbarbutton-dropdown;
}

.toolbarbutton-combined-buttons-dropmarker {
  appearance: none;
  list-style-image: url("chrome://global/skin/icons/arrow-down-12.svg");
  -moz-context-properties: fill;
  fill: currentColor;
  width: auto;
}

/* ::::: toolbarbutton badged ::::: */
.toolbarbutton-badge-stack > .toolbarbutton-icon[label]:not([label=""]) {
  margin-inline-end: 0;
}

.toolbarbutton-badge {
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  background-color: #d90000;
  font-size: 10px;
  padding: 0 2px 1px;
  color: #fff;
  text-shadow: none;
  border-radius: 2px;
  box-shadow: 0 1px 0 hsla(0, 100%, 100%, .2) inset,
              0 -1px 0 hsla(0, 0%, 0%, .1) inset,
              0 1px 0 hsla(206, 50%, 10%, .2);
  margin: -5px 0 0 !important;
  margin-inline-end: -4px !important;
  min-width: 14px;
  max-width: 20px;
  line-height: 10px;
  text-align: center;
  align-self: start;
  justify-self: end;
}