michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: %filter substitution michael@0: %include defines.inc michael@0: michael@0: @namespace url("http://www.w3.org/1999/xhtml"); michael@0: @namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* Typography & General Styling -------------------------------------------- */ michael@0: michael@0: ::-moz-selection { michael@0: color: white; michael@0: background-color: @metro_orange@; michael@0: } michael@0: michael@0: *:-moz-any-link:focus { michael@0: outline-offset: -2px; michael@0: } michael@0: michael@0: /* Input Styling -------------------------------------------- */ michael@0: michael@0: select:not([size]):not([multiple]) > xul|scrollbar, michael@0: select[size="1"] > xul|scrollbar, michael@0: select:not([size]):not([multiple]) xul|scrollbarbutton, michael@0: select[size="1"] xul|scrollbarbutton { michael@0: display: block; michael@0: margin-left: 0; michael@0: min-width: 16px; michael@0: } michael@0: michael@0: select[size], michael@0: select[multiple], michael@0: select[size][multiple], michael@0: * > input:not([type="image"]) { michael@0: border-style: solid; michael@0: border-color: #7d7d7d; michael@0: color: #414141; michael@0: } michael@0: michael@0: /* For both mouse and touch, single-selects are handled by the SelectHelper popup. michael@0: * Suppress mouse events on the popup itself. See also ../base/content/cursor.css */ michael@0: select[size="1"] :-moz-any(option, optgroup), michael@0: select:not([size]):not([multiple]) :-moz-any(option, optgroup) { michael@0: pointer-events: none; michael@0: } michael@0: michael@0: input:-moz-placeholder { michael@0: color: GrayText; michael@0: } michael@0: michael@0: select:not([size]):not([multiple]), michael@0: select[size="0"], michael@0: select[size="1"], michael@0: * > input[type="button"], michael@0: * > input[type="submit"], michael@0: * > input[type="reset"], michael@0: button { michael@0: border-style: solid; michael@0: border-color: #7d7d7d; michael@0: color: #414141; michael@0: } michael@0: michael@0: input[type="checkbox"] { michael@0: 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); michael@0: } michael@0: michael@0: input[type="radio"] { michael@0: 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%); michael@0: } michael@0: michael@0: select { michael@0: border-width: 1px; michael@0: padding: 1px; michael@0: } michael@0: michael@0: select:not([size]):not([multiple]), michael@0: select[size="0"], michael@0: select[size="1"] { michael@0: padding: 0 1px 0 1px; michael@0: } michael@0: michael@0: * > input:not([type="image"]) { michael@0: border-width: 1px; michael@0: padding: 1px; michael@0: } michael@0: michael@0: input[type="button"], michael@0: input[type="submit"], michael@0: input[type="reset"], michael@0: button { michael@0: border-width: 1px; michael@0: padding: 0 7px 0 7px; michael@0: } michael@0: michael@0: input[type="radio"], michael@0: input[type="checkbox"] { michael@0: max-width: 14px; michael@0: max-height: 14px; michael@0: border: 1px solid #a7a7a7 !important; michael@0: padding: 2px 1px 2px 1px; michael@0: } michael@0: michael@0: select > button { michael@0: border-width: 1px !important; michael@0: margin: 0px !important; michael@0: padding: 0px !important; michael@0: border-radius: 0; michael@0: color: #414141; michael@0: position: relative !important; michael@0: font-size: inherit; michael@0: } michael@0: michael@0: input[type="checkbox"]:focus, michael@0: input[type="radio"]:focus { michael@0: border-color: #99c6e0 !important; michael@0: } michael@0: michael@0: input[type="checkbox"]:focus { michael@0: 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); michael@0: } michael@0: michael@0: input[type="radio"]:focus { michael@0: 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%); michael@0: } michael@0: michael@0: /* we need to be specific for selects because the above rules are specific too */ michael@0: select[size][disabled], michael@0: select[multiple][disabled], michael@0: select[size][multiple][disabled], michael@0: select:not([size]):not([multiple])[disabled], michael@0: select[size="0"][disabled], michael@0: select[size="1"][disabled], michael@0: button[disabled], michael@0: * > input:not([type="image"])[disabled] { michael@0: color: rgba(0,0,0,0.3); michael@0: border-color: rgba(125,125,125,0.4); michael@0: border-style: solid; michael@0: border-width: 1px; michael@0: 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%); michael@0: } michael@0: michael@0: select:not([size]):not([multiple])[disabled], michael@0: select[size="0"][disabled], michael@0: select[size="1"][disabled] { michael@0: 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%); michael@0: } michael@0: michael@0: input[type="button"][disabled], michael@0: input[type="submit"][disabled], michael@0: input[type="reset"][disabled], michael@0: button[disabled] { michael@0: padding: 0 7px 0 7px; michael@0: 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%); michael@0: } michael@0: michael@0: input[type="radio"][disabled], michael@0: input[type="radio"][disabled]:active, michael@0: input[type="radio"][disabled]:hover, michael@0: input[type="radio"][disabled]:hover:active, michael@0: input[type="checkbox"][disabled], michael@0: input[type="checkbox"][disabled]:active, michael@0: input[type="checkbox"][disabled]:hover, michael@0: input[type="checkbox"][disabled]:hover:active { michael@0: border:1px solid rgba(125,125,125,0.4) !important; michael@0: } michael@0: michael@0: select[disabled] > button { michael@0: opacity: 0.6; michael@0: padding: 1px 7px 1px 7px; michael@0: } michael@0: michael@0: /* -moz-touch-enabled? media elements */ michael@0: video > xul|videocontrols, michael@0: audio > xul|videocontrols { michael@0: -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#touchControls"); michael@0: } michael@0: michael@0: /* michael@0: * Enforce nearest scaling for video in order not to lose too much performance michael@0: * after fixing bug 598736 ("Use higher-quality imageinterpolation on mobile") michael@0: */ michael@0: video { michael@0: image-rendering: -moz-crisp-edges; michael@0: }