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@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 6@namespace html url("http://www.w3.org/1999/xhtml"); 7 8textbox { 9 -moz-appearance: textfield; 10 cursor: text; 11 margin: 4px; 12 padding: 0px; 13 background-color: -moz-Field; 14 color: -moz-FieldText; 15} 16 17html|*.textbox-input, 18html|*.textbox-textarea { 19 margin: 0px !important; 20 border: none !important; 21 padding: 0px 1px !important; 22 background-color: inherit; 23 color: inherit; 24 font: inherit; 25} 26 27.textbox-contextmenu { 28 cursor: default; 29} 30 31textbox[readonly="true"] { 32 background-color: -moz-Dialog; 33 color: -moz-DialogText; 34} 35 36textbox[disabled="true"] { 37 cursor: default; 38 background-color: -moz-Dialog; 39 color: GrayText; 40} 41 42textbox.plain { 43 -moz-appearance: none !important; 44 background-color: transparent; 45 padding: 0px !important; 46 margin: 0px !important; 47 border: none !important; 48} 49 50textbox.plain html|*.textbox-input, 51textbox.plain html|*.textbox-textarea { 52 padding: 0px !important; 53} 54 55/* ::::: search box ::::: */ 56 57textbox[type="search"] { 58 -moz-appearance: searchfield; 59 padding: 1px; 60 font-size: 12px; 61} 62 63.textbox-search-clear { 64 list-style-image: url(chrome://global/skin/icons/searchfield-cancel.svg); 65 -moz-image-region: rect(0, 14px, 14px, 0); 66 margin-bottom: 1px; 67} 68 69textbox[type="search"].compact { 70 padding: 0; 71 font-size: 11px; 72} 73 74textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear { 75 width: 11px; 76} 77 78.textbox-search-clear:not([disabled]) { 79 cursor: default; 80} 81 82.textbox-search-icons:not([selectedIndex="1"]) { 83 visibility: hidden; 84} 85