1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/windows/global/textbox.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,107 @@ 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 +/* ===== textbox.css ================================================== 1.9 + == Styles used by the XUL textbox element. 1.10 + ======================================================================= */ 1.11 + 1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.13 +@namespace html url("http://www.w3.org/1999/xhtml"); 1.14 + 1.15 +/* ::::: textbox ::::: */ 1.16 + 1.17 +textbox { 1.18 + -moz-appearance: textfield; 1.19 + cursor: text; 1.20 + margin: 2px 4px; 1.21 + border: 2px solid; 1.22 + -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; 1.23 + -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; 1.24 + -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; 1.25 + -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; 1.26 + padding: 2px 3px 3px; 1.27 + -moz-padding-start: 5px; 1.28 + background-color: -moz-Field; 1.29 + color: -moz-FieldText; 1.30 +} 1.31 + 1.32 +html|*.textbox-input, 1.33 +html|*.textbox-textarea { 1.34 + margin: 0px !important; 1.35 + border: none !important; 1.36 + padding: 0px !important; 1.37 + background-color: inherit; 1.38 + color: inherit; 1.39 + font: inherit; 1.40 +} 1.41 + 1.42 +.textbox-contextmenu { 1.43 + cursor: default; 1.44 +} 1.45 + 1.46 +/* ..... readonly state ..... */ 1.47 + 1.48 +textbox[readonly="true"] { 1.49 + background-color: -moz-Dialog; 1.50 + color: -moz-DialogText; 1.51 +} 1.52 + 1.53 +/* ..... disabled state ..... */ 1.54 + 1.55 +textbox[disabled="true"] { 1.56 + cursor: default; 1.57 + background-color: -moz-Dialog; 1.58 + color: GrayText; 1.59 +} 1.60 + 1.61 +/* ::::: plain textbox ::::: */ 1.62 + 1.63 +textbox.plain { 1.64 + -moz-appearance: none !important; 1.65 + background-color: transparent; 1.66 + padding: 0px !important; 1.67 + margin: 0px !important; 1.68 + border: none !important; 1.69 +} 1.70 + 1.71 +/* ::::: search textbox ::::: */ 1.72 + 1.73 +.textbox-search-icon { 1.74 + list-style-image: url(chrome://global/skin/icons/Search-glass.png); 1.75 + -moz-image-region: rect(0, 16px, 16px, 0); 1.76 +} 1.77 + 1.78 +.textbox-search-icon:-moz-locale-dir(rtl) { 1.79 + transform: scaleX(-1); 1.80 +} 1.81 + 1.82 +.textbox-search-icon[searchbutton]:not([disabled]) { 1.83 + cursor: pointer; 1.84 +} 1.85 + 1.86 +.textbox-search-clear { 1.87 + list-style-image: url(chrome://global/skin/icons/Search-close.png); 1.88 + -moz-image-region: rect(0, 16px, 16px, 0); 1.89 +} 1.90 + 1.91 +.textbox-search-clear:not([disabled]) { 1.92 + cursor: default; 1.93 +} 1.94 + 1.95 +.textbox-search-clear:not([disabled]):hover , 1.96 +.textbox-search-icon[searchbutton]:not([disabled]):hover { 1.97 + -moz-image-region: rect(0, 32px, 16px, 16px); 1.98 +} 1.99 + 1.100 +.textbox-search-clear:not([disabled]):hover:active , 1.101 +.textbox-search-icon[searchbutton]:not([disabled]):hover:active { 1.102 + -moz-image-region: rect(0, 48px, 16px, 32px); 1.103 +} 1.104 + 1.105 +/* ::::: textboxes inside toolbarpaletteitems ::::: */ 1.106 + 1.107 +toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input { 1.108 + visibility: hidden; 1.109 +} 1.110 +