first (largest) part of sync for both themes with toolkit windows theme changes in...
[themes.git] / EarlyBlue / global / textbox.css
... / ...
CommitLineData
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/* ===== textbox.css ==================================================
6 == Styles used by the XUL textbox element.
7 ======================================================================= */
8
9@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10@namespace html url("http://www.w3.org/1999/xhtml");
11
12/* ::::: textbox ::::: */
13
14textbox {
15 cursor: text;
16 margin: 2px 3px;
17 border: 1px inset #CCD0DD;
18 padding: 1px 0px;
19 padding-inline-start: 2px;
20 background-color: #FFFFFF;
21 color: #000000;
22 min-height: 19px;
23}
24
25html|*.textbox-input,
26html|*.textbox-textarea {
27 margin: 0px !important;
28 border: none !important;
29 padding: 0px !important;
30 background-color: inherit;
31 color: inherit;
32 font: inherit;
33}
34
35.textbox-input-box menupopup {
36 cursor: default;
37}
38
39/* ..... readonly state ..... */
40
41textbox[readonly="true"] {
42 background-color: #CCCCCC;
43 color: #000000;
44}
45
46/* ..... disabled state ..... */
47
48textbox[disabled="true"] {
49 cursor: default;
50 background-color: #FFFFFF;
51 color: #CCCCCC;
52 border: 1px solid #666699;
53}
54
55textbox[focused="true"] {
56 border: 1px solid #6699CC;
57 outline: 1px solid #6699CC;
58}
59
60textbox[focused="true"][readonly="true"] {
61 border: 1px solid #6699CC;
62 outline: none;
63}
64
65/* ::::: plain textbox ::::: */
66
67textbox.plain {
68 padding: 0px !important;
69 margin: 0px !important;
70 border: none !important;
71 outline: none !important;
72 background-color: transparent;
73 color: inherit !important;
74 min-height: 0px;
75}
76
77/* ::::: search textbox ::::: */
78
79.textbox-search-icon {
80 list-style-image: url("chrome://global/skin/icons/search.png");
81 -moz-image-region: rect(0, 16px, 16px, 0);
82}
83
84.textbox-search-icon:-moz-locale-dir(rtl) {
85 transform: scaleX(-1);
86}
87
88.textbox-search-icon[searchbutton]:not([disabled]) {
89 cursor: pointer;
90}
91
92.textbox-search-clear {
93 list-style-image: url("chrome://global/skin/icons/search.png");
94 -moz-image-region: rect(16px, 16px, 32px, 0);
95}
96
97.textbox-search-clear:not([disabled]) {
98 cursor: default;
99}
100
101/* ::::: textboxes inside toolbarpaletteitems ::::: */
102
103toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
104 visibility: hidden;
105}