1/* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5/* ===== textbox.css ================================================== 6 == Styles used by the XUL textbox element. 7 ======================================================================= */ 8 9@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 10@namespace html url("http://www.w3.org/1999/xhtml"); 11 12/* ::::: textbox ::::: */ 13 14textbox { 15 -moz-appearance: textfield; 16 cursor: text; 17 margin: 2px 4px; 18 border: 2px solid; 19 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; 20 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; 21 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; 22 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; 23 padding: 2px 2px 3px; 24 padding-inline-start: 4px; 25 background-color: -moz-Field; 26 color: -moz-FieldText; 27} 28 29html|*.textbox-input, 30html|*.textbox-textarea { 31 margin: 0px !important; 32 border: none !important; 33 padding: 0px 1px !important; 34 background-color: inherit; 35 color: inherit; 36 font: inherit; 37} 38 39.textbox-contextmenu { 40 cursor: default; 41} 42 43/* ..... readonly state ..... */ 44 45textbox[readonly="true"] { 46 background-color: -moz-Dialog; 47 color: -moz-DialogText; 48} 49 50/* ..... disabled state ..... */ 51 52textbox[disabled="true"] { 53 cursor: default; 54 background-color: -moz-Dialog; 55 color: GrayText; 56} 57 58/* ::::: plain textbox ::::: */ 59 60textbox.plain { 61 -moz-appearance: none !important; 62 background-color: transparent; 63 padding: 0px !important; 64 margin: 0px !important; 65 border: none !important; 66} 67 68textbox.plain html|*.textbox-input, 69textbox.plain html|*.textbox-textarea { 70 padding: 0px !important; 71} 72 73/* ::::: search textbox ::::: */ 74 75.textbox-search-icon { 76 list-style-image: url(moz-icon://stock/gtk-find?size=menu); 77} 78 79.textbox-search-clear { 80 list-style-image: url(moz-icon://stock/gtk-clear?size=menu); 81} 82 83.textbox-search-icon[searchbutton]:not([disabled]) , 84.textbox-search-clear:not([disabled]) { 85 cursor: pointer; 86} 87 88/* ::::: textboxes inside toolbarpaletteitems ::::: */ 89 90toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input { 91 visibility: hidden; 92} 93