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: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: @namespace html url("http://www.w3.org/1999/xhtml"); michael@0: michael@0: textbox { michael@0: -moz-appearance: textfield; michael@0: cursor: text; michael@0: margin: 4px; michael@0: border: 3px solid; michael@0: -moz-border-top-colors: transparent #888888 #000000; michael@0: -moz-border-right-colors: transparent #FFFFFF #000000; michael@0: -moz-border-bottom-colors: transparent #FFFFFF #000000; michael@0: -moz-border-left-colors: transparent #888888 #000000; michael@0: border-top-right-radius: 2px; michael@0: border-bottom-left-radius: 2px; michael@0: padding: 0px 1px; michael@0: background-color: -moz-Field; michael@0: color: -moz-FieldText; michael@0: } michael@0: michael@0: html|*.textbox-input, michael@0: html|*.textbox-textarea { michael@0: margin: 0px !important; michael@0: border: none !important; michael@0: padding: 0px !important; michael@0: background-color: inherit; michael@0: color: inherit; michael@0: font: inherit; michael@0: } michael@0: michael@0: .textbox-contextmenu { michael@0: cursor: default; michael@0: } michael@0: michael@0: textbox[focused="true"] { michael@0: -moz-border-top-colors: -moz-mac-focusring -moz-mac-focusring #000000; michael@0: -moz-border-right-colors: -moz-mac-focusring -moz-mac-focusring #000000; michael@0: -moz-border-bottom-colors: -moz-mac-focusring -moz-mac-focusring #000000; michael@0: -moz-border-left-colors: -moz-mac-focusring -moz-mac-focusring #000000; michael@0: } michael@0: michael@0: textbox[readonly="true"] { michael@0: background-color: -moz-Dialog; michael@0: color: -moz-DialogText; michael@0: } michael@0: michael@0: textbox[disabled="true"] { michael@0: cursor: default; michael@0: -moz-border-top-colors: transparent ThreeDShadow -moz-Dialog; michael@0: -moz-border-right-colors: transparent ThreeDShadow -moz-Dialog; michael@0: -moz-border-bottom-colors: transparent ThreeDShadow -moz-Dialog; michael@0: -moz-border-left-colors: transparent ThreeDShadow -moz-Dialog; michael@0: background-color: -moz-Dialog; michael@0: color: GrayText; michael@0: } michael@0: michael@0: textbox.plain { michael@0: -moz-appearance: none !important; michael@0: background-color: transparent; michael@0: padding: 0px !important; michael@0: margin: 0px !important; michael@0: border: none !important; michael@0: } michael@0: michael@0: /* ::::: search box ::::: */ michael@0: michael@0: textbox[type="search"] { michael@0: -moz-appearance: searchfield; michael@0: padding: 1px 2px; michael@0: font-size: 12px; michael@0: } michael@0: michael@0: .textbox-search-clear { michael@0: list-style-image: url(chrome://global/skin/icons/searchfield-regular-cancel.png); michael@0: -moz-image-region: rect(0, 14px, 14px, 0); michael@0: margin-bottom: 1px; michael@0: } michael@0: michael@0: .textbox-search-clear:active:hover { michael@0: -moz-image-region: rect(0, 28px, 14px, 14px); michael@0: } michael@0: michael@0: textbox[type="search"].compact { michael@0: padding: 0 1px; michael@0: font-size: 11px; michael@0: } michael@0: michael@0: textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear { michael@0: list-style-image: url(chrome://global/skin/icons/searchfield-small-cancel.png); michael@0: -moz-image-region: rect(0, 11px, 11px, 0); michael@0: } michael@0: michael@0: textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:active:hover { michael@0: -moz-image-region: rect(0, 22px, 11px, 11px); michael@0: } michael@0: michael@0: .textbox-search-clear:not([disabled]) { michael@0: cursor: default; michael@0: } michael@0: michael@0: .textbox-search-icons:not([selectedIndex="1"]) { michael@0: visibility: hidden; michael@0: }