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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
/* 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.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: toolbarbutton ::::: */
toolbarbutton {
-moz-appearance: toolbarbutton;
-moz-box-align: center;
-moz-box-pack: center;
margin: 0;
border: 1px solid transparent;
padding: 3px;
background-color: transparent;
color: -moz-DialogText;
}
.toolbarbutton-icon[label]:not([label=""]),
.toolbarbutton-icon[type="menu"] {
margin-inline-end: 5px;
}
.toolbarbutton-text {
margin: 0 !important; /* !important for overriding global.css */
text-align: center;
}
toolbarbutton.tabbable {
-moz-user-focus: normal !important;
}
toolbarbutton:-moz-focusring {
/* -moz-appearance looks redundant here but is necessary.
Without it, the outline won't appear. */
-moz-appearance: toolbarbutton;
outline: 1px dotted -moz-DialogText;
outline-offset: -2px;
}
toolbarbutton:hover:not([disabled="true"]) {
border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
}
toolbarbutton:hover:active:not([disabled="true"]),
toolbarbutton[open="true"]:hover,
toolbarbutton[open="true"] {
border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;
padding-top: 4px;
padding-bottom: 2px;
padding-inline-start: 4px;
padding-inline-end: 2px;
}
toolbarbutton[disabled="true"] {
color: GrayText;
text-shadow: none;
}
@media (-moz-windows-classic) {
toolbarbutton[disabled="true"] {
color: ThreeDShadow;
text-shadow: 1px 1px ThreeDHighlight;
}
}
toolbarbutton[checked="true"]:not([disabled="true"]) {
border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;
padding-top: 4px;
padding-bottom: 2px;
padding-inline-start: 4px;
padding-inline-end: 2px;
background-color: rgba(255,255,255,0.5);
color: ButtonText;
}
@media (-moz-windows-default-theme) {
toolbarbutton:-moz-lwtheme {
text-shadow: none;
}
toolbarbutton:-moz-lwtheme:not([disabled="true"]) {
color: inherit;
text-shadow: inherit;
}
}
@media not all and (-moz-windows-default-theme) {
toolbarbutton:-moz-lwtheme {
-moz-appearance: none;
}
toolbarbutton:-moz-lwtheme:not([disabled="true"]) {
color: inherit;
text-shadow: inherit;
}
}
/* ::::: toolbarbutton menu ::::: */
.toolbarbutton-menu-dropmarker {
-moz-appearance: none !important;
border: none !important;
background-color: transparent !important;
padding: 0;
width: auto;
height: auto;
margin-top: 1px;
}
/* ::::: toolbarbutton menu-button ::::: */
toolbarbutton[type="menu-button"] {
-moz-box-align: stretch;
-moz-box-orient: horizontal !important;
}
toolbarbutton[type="menu-button"],
toolbarbutton[type="menu-button"]:hover,
toolbarbutton[type="menu-button"]:hover:active,
toolbarbutton[type="menu-button"][open="true"],
toolbarbutton[type="menu-button"][disabled="true"],
toolbarbutton[type="menu-button"][disabled="true"]:hover,
toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
border-style: none;
padding: 0 !important;
}
.toolbarbutton-menubutton-button {
-moz-box-align: center;
-moz-box-pack: center;
-moz-box-orient: vertical;
}
/* ::::: toolbarbutton badged ::::: */
.toolbarbutton-badge-stack > .toolbarbutton-icon[label]:not([label=""]) {
margin-inline-end: 0;
}
.toolbarbutton-badge {
background-color: #d90000;
font-size: 10px;
font-weight: bold;
padding: 0 2px 1px;
color: #fff;
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: -6px 0 0 !important;
margin-inline-end: -8px !important;
min-width: 14px;
max-width: 28px;
line-height: 10px;
text-align: center;
-moz-stack-sizing: ignore;
}
/* .......... dropmarker .......... */
.toolbarbutton-menubutton-dropmarker {
-moz-appearance: none;
padding: 3px 7px;
border: none;
background-color: transparent;
width: auto;
}
|