1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 @namespace url
("http://www.w3.org/1999/xhtml");
9 @namespace xul url
("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
11 /* Typography & General Styling -------------------------------------------- */
15 background-color: @metro_orange@
;
18 *:-moz-any-link:focus
{
22 /* Input Styling -------------------------------------------- */
24 select:not
([size
]):not
([multiple
]) > xul|scrollbar
,
25 select
[size
="1"] > xul|scrollbar
,
26 select:not
([size
]):not
([multiple
]) xul|scrollbarbutton
,
27 select
[size
="1"] xul|scrollbarbutton
{
35 select
[size
][multiple
],
36 * > input:not
([type
="image"]) {
38 border-color: #7d7d7d;
42 /* For both mouse and touch, single-selects are handled by the SelectHelper popup.
43 * Suppress mouse events on the popup itself. See also ../base/content/cursor.css */
44 select
[size
="1"] :-moz-any
(option
, optgroup
),
45 select:not
([size
]):not
([multiple
]) :-moz-any
(option
, optgroup
) {
49 input:-moz-placeholder
{
53 select:not
([size
]):not
([multiple
]),
56 * > input
[type
="button"],
57 * > input
[type
="submit"],
58 * > input
[type
="reset"],
61 border-color: #7d7d7d;
65 input
[type
="checkbox"] {
66 background: white linear-gradient
(rgba
(115,115,115,0.5) 0, rgba
(215,215,215,0.5) 2px, rgba
(255,255,255,0.2) 6px);
70 background: radial-gradient
(at
6px 6px, rgba
(255,255,255,0.2) 3px, rgba
(195,195,195,0.5) 5px, rgba
(115,115,115,0.5) 100%);
78 select:not
([size
]):not
([multiple
]),
84 * > input:not
([type
="image"]) {
98 input
[type
="checkbox"] {
101 border: 1px solid
#a7a7a7 !important
;
102 padding: 2px 1px 2px 1px;
106 border-width: 1px !important
;
107 margin: 0px !important
;
108 padding: 0px !important
;
111 position: relative
!important
;
115 input
[type
="checkbox"]:focus
,
116 input
[type
="radio"]:focus
{
117 border-color: #99c6e0 !important
;
120 input
[type
="checkbox"]:focus
{
121 background: white linear-gradient
(rgba
(27,113,177,0.5) 0, rgba
(198,225,246,0.2) 2px, rgba
(255,255,255,0.2) 6px);
124 input
[type
="radio"]:focus
{
125 background: radial-gradient
(at
6px 6px, rgba
(255,255,255,0.2) 3px, rgba
(198,225,246,0.2) 5px, rgba
(27,113,177,0.5) 100%);
128 /* we need to be specific for selects because the above rules are specific too */
129 select
[size
][disabled
],
130 select
[multiple
][disabled
],
131 select
[size
][multiple
][disabled
],
132 select:not
([size
]):not
([multiple
])[disabled
],
133 select
[size
="0"][disabled
],
134 select
[size
="1"][disabled
],
136 * > input:not
([type
="image"])[disabled
] {
137 color: rgba
(0,0,0,0.3);
138 border-color: rgba
(125,125,125,0.4);
141 background: transparent linear-gradient
(rgba
(185,185,185,0.4) 0, rgba
(235,235,235,0.4) 3px, rgba
(255,255,255,0.4) 100%);
144 select:not
([size
]):not
([multiple
])[disabled
],
145 select
[size
="0"][disabled
],
146 select
[size
="1"][disabled
] {
147 background: transparent linear-gradient
(rgba
(255,255,255,0.4) 0, rgba
(235,235,235,0.4) 3px, rgba
(185,185,185,0.4) 100%);
150 input
[type
="button"][disabled
],
151 input
[type
="submit"][disabled
],
152 input
[type
="reset"][disabled
],
154 padding: 0 7px 0 7px;
155 background: transparent linear-gradient
(rgba
(255,255,255,0.4) 0, rgba
(235,235,235,0.4) 3px, rgba
(185,185,185,0.4) 100%);
158 input
[type
="radio"][disabled
],
159 input
[type
="radio"][disabled
]:active
,
160 input
[type
="radio"][disabled
]:hover
,
161 input
[type
="radio"][disabled
]:hover:active
,
162 input
[type
="checkbox"][disabled
],
163 input
[type
="checkbox"][disabled
]:active
,
164 input
[type
="checkbox"][disabled
]:hover
,
165 input
[type
="checkbox"][disabled
]:hover:active
{
166 border:1px solid rgba
(125,125,125,0.4) !important
;
169 select
[disabled
] > button
{
171 padding: 1px 7px 1px 7px;
174 /* -moz-touch-enabled? media elements */
175 video
> xul|videocontrols
,
176 audio
> xul|videocontrols
{
177 -moz-binding: url
("chrome://global/content/bindings/videocontrols.xml#touchControls");
181 * Enforce nearest scaling for video in order not to lose too much performance
182 * after fixing bug 598736 ("Use higher-quality imageinterpolation on mobile")
185 image-rendering: -moz-crisp-edges
;