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 {
44 .textbox-input-box menupopup {
48 /* ..... readonly state ..... */
50 textbox[readonly="true"] {
51 border: 1px solid #8050B0;
55 /* ..... disabled state ..... */
57 textbox[disabled="true"] {
58 border: 1px solid #8050B0;
63 /* ..... focused state ..... */
65 textbox[focused="true"] {
66 border: 1px solid #008484;
67 outline: 1px solid #008484;
70 textbox[focused="true"][readonly="true"] {
71 border: 1px solid #8050B0;
75 /* ::::: plain textbox ::::: */
78 padding: 0px !important;
79 margin: 0px !important;
80 border: none !important;
81 outline: none !important;
82 background-color: transparent;
83 color: inherit !important;
87 /* ::::: search textbox ::::: */
89 .textbox-search-icon {
90 list-style-image: url("chrome://global/skin/icons/search.png");
91 -moz-image-region: rect(0, 16px, 16px, 0);
94 .textbox-search-icon:-moz-locale-dir(rtl) {
95 transform: scaleX(-1);
98 .textbox-search-icon[searchbutton]:not([disabled]) {
102 .textbox-search-clear {
103 list-style-image: url("chrome://global/skin/icons/search.png");
104 -moz-image-region: rect(16px, 16px, 32px, 0);
107 .textbox-search-clear:not([disabled]) {
111 /* ::::: textboxes inside toolbarpaletteitems ::::: */
113 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {