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"); /* namespace for HTML elements */
12 /* ::::: textbox ::::: */
16 -moz-outline-radius: 5px;
19 border: 1px solid #9C9CFF;
21 -moz-padding-start: 2px;
22 background-color: #000000;
28 html|*.textbox-textarea {
30 margin: 0px !important;
31 border: none !important;
32 padding: 0px !important;
33 background-color: inherit;
38 html|*.textbox-input:-moz-placeholder,
39 html|*.textbox-textarea:-moz-placeholder {
43 .textbox-input-box menupopup {
47 /* ..... readonly state ..... */
49 textbox[readonly="true"] {
50 border: 1px solid #8050B0;
54 /* ..... disabled state ..... */
56 textbox[disabled="true"] {
57 border: 1px solid #8050B0;
62 /* ..... focused state ..... */
64 textbox[focused="true"] {
65 border: 1px solid #008484;
66 outline: 1px solid #008484;
69 textbox[focused="true"][readonly="true"] {
70 border: 1px solid #8050B0;
74 /* ::::: plain textbox ::::: */
77 padding: 0px !important;
78 margin: 0px !important;
79 border: none !important;
80 outline: none !important;
81 background-color: transparent;
82 color: inherit !important;
86 /* ::::: search textbox ::::: */
88 .textbox-search-icon {
89 list-style-image: url("chrome://global/skin/icons/search.png");
90 -moz-image-region: rect(0, 16px, 16px, 0);
93 .textbox-search-icon:-moz-locale-dir(rtl) {
94 transform: scaleX(-1);
97 .textbox-search-icon[searchbutton]:not([disabled]) {
101 .textbox-search-clear {
102 list-style-image: url("chrome://global/skin/icons/search.png");
103 -moz-image-region: rect(16px, 16px, 32px, 0);
106 .textbox-search-clear:not([disabled]) {
110 /* ::::: textboxes inside toolbarpaletteitems ::::: */
112 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {