toolkit/themes/windows/global/spinbuttons.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 6
michael@0 7 spinbuttons {
michael@0 8 -moz-appearance: spinner;
michael@0 9 cursor: default;
michael@0 10 }
michael@0 11
michael@0 12 .spinbuttons-button {
michael@0 13 min-width: 13px;
michael@0 14 min-height: 11px;
michael@0 15 margin: 0 !important;
michael@0 16 border: 2px solid;
michael@0 17 -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 18 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 19 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 20 -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 21 background-color: ThreeDFace;
michael@0 22 }
michael@0 23
michael@0 24 .spinbuttons-button > .button-box {
michael@0 25 border: 0;
michael@0 26 }
michael@0 27
michael@0 28 .spinbuttons-button:hover:active
michael@0 29 {
michael@0 30 border: 2px solid;
michael@0 31 -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 32 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 33 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 34 -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 35 }
michael@0 36
michael@0 37 .spinbuttons-button[disabled="true"] {
michael@0 38 border: 2px solid;
michael@0 39 -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow !important;
michael@0 40 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow !important;
michael@0 41 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow !important;
michael@0 42 -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow !important;
michael@0 43 }
michael@0 44
michael@0 45 .spinbuttons-up {
michael@0 46 -moz-appearance: spinner-upbutton;
michael@0 47 background-image: url("chrome://global/skin/arrow/arrow-up.gif");
michael@0 48 background-position: center center;
michael@0 49 background-repeat: no-repeat;
michael@0 50 }
michael@0 51
michael@0 52 .spinbuttons-up[disabled="true"] {
michael@0 53 background-image: url("chrome://global/skin/arrow/arrow-up-dis.gif");
michael@0 54 }
michael@0 55
michael@0 56 .spinbuttons-down {
michael@0 57 -moz-appearance: spinner-downbutton;
michael@0 58 background-image: url("chrome://global/skin/arrow/arrow-dn.gif");
michael@0 59 background-position: center center;
michael@0 60 background-repeat: no-repeat;
michael@0 61 }
michael@0 62
michael@0 63 .spinbuttons-down[disabled="true"] {
michael@0 64 background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
michael@0 65 }

mercurial