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: /* ===== textbox.css ================================================== michael@0: == Styles used by the XUL textbox element. michael@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: michael@0: textbox { michael@0: -moz-appearance: textfield; michael@0: cursor: text; michael@0: margin: 2px 4px; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; michael@0: -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; michael@0: padding: 2px 3px 3px; michael@0: -moz-padding-start: 5px; 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: /* ..... readonly state ..... */ michael@0: michael@0: textbox[readonly="true"] { michael@0: background-color: -moz-Dialog; michael@0: color: -moz-DialogText; michael@0: } michael@0: michael@0: /* ..... disabled state ..... */ michael@0: michael@0: textbox[disabled="true"] { michael@0: cursor: default; michael@0: background-color: -moz-Dialog; michael@0: color: GrayText; michael@0: } michael@0: michael@0: /* ::::: plain textbox ::::: */ 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 textbox ::::: */ michael@0: michael@0: .textbox-search-icon { michael@0: list-style-image: url(chrome://global/skin/icons/Search-glass.png); michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: michael@0: .textbox-search-icon:-moz-locale-dir(rtl) { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: .textbox-search-icon[searchbutton]:not([disabled]) { michael@0: cursor: pointer; michael@0: } michael@0: michael@0: .textbox-search-clear { michael@0: list-style-image: url(chrome://global/skin/icons/Search-close.png); michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: michael@0: .textbox-search-clear:not([disabled]) { michael@0: cursor: default; michael@0: } michael@0: michael@0: .textbox-search-clear:not([disabled]):hover , michael@0: .textbox-search-icon[searchbutton]:not([disabled]):hover { michael@0: -moz-image-region: rect(0, 32px, 16px, 16px); michael@0: } michael@0: michael@0: .textbox-search-clear:not([disabled]):hover:active , michael@0: .textbox-search-icon[searchbutton]:not([disabled]):hover:active { michael@0: -moz-image-region: rect(0, 48px, 16px, 32px); michael@0: } michael@0: michael@0: /* ::::: textboxes inside toolbarpaletteitems ::::: */ michael@0: michael@0: toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input { michael@0: visibility: hidden; michael@0: } michael@0: