toolkit/themes/windows/global/textbox.css

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:edd23fa6ffb5
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
14 textbox {
15 -moz-appearance: textfield;
16 cursor: text;
17 margin: 2px 4px;
18 border: 2px solid;
19 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
20 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
21 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
22 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
23 padding: 2px 3px 3px;
24 -moz-padding-start: 5px;
25 background-color: -moz-Field;
26 color: -moz-FieldText;
27 }
28
29 html|*.textbox-input,
30 html|*.textbox-textarea {
31 margin: 0px !important;
32 border: none !important;
33 padding: 0px !important;
34 background-color: inherit;
35 color: inherit;
36 font: inherit;
37 }
38
39 .textbox-contextmenu {
40 cursor: default;
41 }
42
43 /* ..... readonly state ..... */
44
45 textbox[readonly="true"] {
46 background-color: -moz-Dialog;
47 color: -moz-DialogText;
48 }
49
50 /* ..... disabled state ..... */
51
52 textbox[disabled="true"] {
53 cursor: default;
54 background-color: -moz-Dialog;
55 color: GrayText;
56 }
57
58 /* ::::: plain textbox ::::: */
59
60 textbox.plain {
61 -moz-appearance: none !important;
62 background-color: transparent;
63 padding: 0px !important;
64 margin: 0px !important;
65 border: none !important;
66 }
67
68 /* ::::: search textbox ::::: */
69
70 .textbox-search-icon {
71 list-style-image: url(chrome://global/skin/icons/Search-glass.png);
72 -moz-image-region: rect(0, 16px, 16px, 0);
73 }
74
75 .textbox-search-icon:-moz-locale-dir(rtl) {
76 transform: scaleX(-1);
77 }
78
79 .textbox-search-icon[searchbutton]:not([disabled]) {
80 cursor: pointer;
81 }
82
83 .textbox-search-clear {
84 list-style-image: url(chrome://global/skin/icons/Search-close.png);
85 -moz-image-region: rect(0, 16px, 16px, 0);
86 }
87
88 .textbox-search-clear:not([disabled]) {
89 cursor: default;
90 }
91
92 .textbox-search-clear:not([disabled]):hover ,
93 .textbox-search-icon[searchbutton]:not([disabled]):hover {
94 -moz-image-region: rect(0, 32px, 16px, 16px);
95 }
96
97 .textbox-search-clear:not([disabled]):hover:active ,
98 .textbox-search-icon[searchbutton]:not([disabled]):hover:active {
99 -moz-image-region: rect(0, 48px, 16px, 32px);
100 }
101
102 /* ::::: textboxes inside toolbarpaletteitems ::::: */
103
104 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
105 visibility: hidden;
106 }
107

mercurial