1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/windows/global/spinbuttons.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,65 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.9 + 1.10 +spinbuttons { 1.11 + -moz-appearance: spinner; 1.12 + cursor: default; 1.13 +} 1.14 + 1.15 +.spinbuttons-button { 1.16 + min-width: 13px; 1.17 + min-height: 11px; 1.18 + margin: 0 !important; 1.19 + border: 2px solid; 1.20 + -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow; 1.21 + -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; 1.22 + -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; 1.23 + -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow; 1.24 + background-color: ThreeDFace; 1.25 +} 1.26 + 1.27 +.spinbuttons-button > .button-box { 1.28 + border: 0; 1.29 +} 1.30 + 1.31 +.spinbuttons-button:hover:active 1.32 +{ 1.33 + border: 2px solid; 1.34 + -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow; 1.35 + -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; 1.36 + -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; 1.37 + -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow; 1.38 +} 1.39 + 1.40 +.spinbuttons-button[disabled="true"] { 1.41 + border: 2px solid; 1.42 + -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow !important; 1.43 + -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow !important; 1.44 + -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow !important; 1.45 + -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow !important; 1.46 +} 1.47 + 1.48 +.spinbuttons-up { 1.49 + -moz-appearance: spinner-upbutton; 1.50 + background-image: url("chrome://global/skin/arrow/arrow-up.gif"); 1.51 + background-position: center center; 1.52 + background-repeat: no-repeat; 1.53 +} 1.54 + 1.55 +.spinbuttons-up[disabled="true"] { 1.56 + background-image: url("chrome://global/skin/arrow/arrow-up-dis.gif"); 1.57 +} 1.58 + 1.59 +.spinbuttons-down { 1.60 + -moz-appearance: spinner-downbutton; 1.61 + background-image: url("chrome://global/skin/arrow/arrow-dn.gif"); 1.62 + background-position: center center; 1.63 + background-repeat: no-repeat; 1.64 +} 1.65 + 1.66 +.spinbuttons-down[disabled="true"] { 1.67 + background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif"); 1.68 +}