tweaks for making devtools look nicer
[themes.git] / LCARStrek / global / textbox.css
CommitLineData
9099c61d
RK
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/. */
351107c9 4
b1eaa419 5/* ===== textbox.css ==================================================
6 == Styles used by the XUL textbox element.
7 ======================================================================= */
8
f98e9249
RK
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 */
11
b1eaa419 12/* ::::: textbox ::::: */
13
14textbox {
569543b3 15 border-radius: 3px;
d0646e4a 16 -moz-outline-radius: 5px;
b1eaa419 17 cursor: text;
d15efd04 18 margin: 1px 2px;
f98e9249 19 border: 1px solid #9C9CFF;
cfae8c74
RK
20 padding: 1px 0px;
21 -moz-padding-start: 2px;
b1eaa419 22 background-color: #000000;
23 color: #E7ADE7;
b1e5c9b1 24 min-height: 19px;
b1eaa419 25}
26
f98e9249 27html|*.textbox-input,
b1eaa419 28html|*.textbox-textarea {
569543b3 29 border-radius: 3px;
b1eaa419 30 margin: 0px !important;
31 border: none !important;
32 padding: 0px !important;
33 background-color: inherit;
34 color: inherit;
35 font: inherit;
36}
37
a7145e95
RK
38html|*.textbox-input::-moz-placeholder,
39html|*.textbox-textarea::-moz-placeholder {
40 color: #8050B0;
41 opacity: 1.0;
706c344c
RK
42}
43
f98e9249
RK
44.textbox-input-box menupopup {
45 cursor: default;
46}
47
b1eaa419 48/* ..... readonly state ..... */
49
50textbox[readonly="true"] {
51 border: 1px solid #8050B0;
52 color: #8050B0;
53}
54
55/* ..... disabled state ..... */
351107c9 56
b1eaa419 57textbox[disabled="true"] {
f98e9249 58 border: 1px solid #8050B0;
b1eaa419 59 cursor: default;
60 color: #8050B0;
a12570b9 61}
351107c9 62
b1eaa419 63/* ..... focused state ..... */
351107c9 64
b1eaa419 65textbox[focused="true"] {
f98e9249
RK
66 border: 1px solid #008484;
67 outline: 1px solid #008484;
b1eaa419 68}
351107c9 69
b1eaa419 70textbox[focused="true"][readonly="true"] {
f98e9249
RK
71 border: 1px solid #8050B0;
72 outline: none;
b1eaa419 73}
351107c9 74
b1eaa419 75/* ::::: plain textbox ::::: */
351107c9 76
b1eaa419 77textbox.plain {
78 padding: 0px !important;
79 margin: 0px !important;
80 border: none !important;
f98e9249 81 outline: none !important;
cfae8c74 82 background-color: transparent;
a12570b9 83 color: inherit !important;
b1e5c9b1 84 min-height: 0px;
0c7f928d 85}
f98e9249
RK
86
87/* ::::: search textbox ::::: */
88
89.textbox-search-icon {
90 list-style-image: url("chrome://global/skin/icons/search.png");
91 -moz-image-region: rect(0, 16px, 16px, 0);
92}
93
18f5421a 94.textbox-search-icon:-moz-locale-dir(rtl) {
71a617ff 95 transform: scaleX(-1);
f98e9249
RK
96}
97
98.textbox-search-icon[searchbutton]:not([disabled]) {
99 cursor: pointer;
100}
101
102.textbox-search-clear {
103 list-style-image: url("chrome://global/skin/icons/search.png");
18f5421a 104 -moz-image-region: rect(16px, 16px, 32px, 0);
f98e9249
RK
105}
106
107.textbox-search-clear:not([disabled]) {
108 cursor: default;
109}
110
111/* ::::: textboxes inside toolbarpaletteitems ::::: */
112
113toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
114 visibility: hidden;
115}