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/. */
5 /* ===== textbox.css ==================================================
6 == Styles used by the XUL textbox element.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10 @namespace html url("http://www.w3.org/1999/xhtml");
12 /* ::::: textbox ::::: */
17 border: 1px inset #CCD0DD;
19 -moz-padding-start: 2px;
20 background-color: #FFFFFF;
26 html|*.textbox-textarea {
27 margin: 0px !important;
28 border: none !important;
29 padding: 0px !important;
30 background-color: inherit;
35 .textbox-input-box menupopup {
39 /* ..... readonly state ..... */
41 textbox[readonly="true"] {
42 background-color: #CCCCCC;
46 /* ..... disabled state ..... */
48 textbox[disabled="true"] {
50 background-color: #FFFFFF;
52 border: 1px solid #666699;
55 textbox[focused="true"] {
56 border: 1px solid #6699CC;
57 outline: 1px solid #6699CC;
60 textbox[focused="true"][readonly="true"] {
61 border: 1px solid #6699CC;
65 /* ::::: plain textbox ::::: */
68 padding: 0px !important;
69 margin: 0px !important;
70 border: none !important;
71 outline: none !important;
72 background-color: transparent;
73 color: inherit !important;
77 /* ::::: search textbox ::::: */
79 .textbox-search-icon {
80 list-style-image: url("chrome://global/skin/icons/search.png");
81 -moz-image-region: rect(0, 16px, 16px, 0);
84 .textbox-search-icon:-moz-locale-dir(rtl) {
85 transform: scaleX(-1);
88 .textbox-search-icon[searchbutton]:not([disabled]) {
92 .textbox-search-clear {
93 list-style-image: url("chrome://global/skin/icons/search.png");
94 -moz-image-region: rect(16px, 16px, 32px, 0);
97 .textbox-search-clear:not([disabled]) {
101 /* ::::: textboxes inside toolbarpaletteitems ::::: */
103 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {