Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6 @namespace html url("http://www.w3.org/1999/xhtml");
8 textbox {
9 -moz-appearance: textfield;
10 cursor: text;
11 margin: 4px;
12 border: 3px solid;
13 -moz-border-top-colors: transparent #888888 #000000;
14 -moz-border-right-colors: transparent #FFFFFF #000000;
15 -moz-border-bottom-colors: transparent #FFFFFF #000000;
16 -moz-border-left-colors: transparent #888888 #000000;
17 border-top-right-radius: 2px;
18 border-bottom-left-radius: 2px;
19 padding: 0px 1px;
20 background-color: -moz-Field;
21 color: -moz-FieldText;
22 }
24 html|*.textbox-input,
25 html|*.textbox-textarea {
26 margin: 0px !important;
27 border: none !important;
28 padding: 0px !important;
29 background-color: inherit;
30 color: inherit;
31 font: inherit;
32 }
34 .textbox-contextmenu {
35 cursor: default;
36 }
38 textbox[focused="true"] {
39 -moz-border-top-colors: -moz-mac-focusring -moz-mac-focusring #000000;
40 -moz-border-right-colors: -moz-mac-focusring -moz-mac-focusring #000000;
41 -moz-border-bottom-colors: -moz-mac-focusring -moz-mac-focusring #000000;
42 -moz-border-left-colors: -moz-mac-focusring -moz-mac-focusring #000000;
43 }
45 textbox[readonly="true"] {
46 background-color: -moz-Dialog;
47 color: -moz-DialogText;
48 }
50 textbox[disabled="true"] {
51 cursor: default;
52 -moz-border-top-colors: transparent ThreeDShadow -moz-Dialog;
53 -moz-border-right-colors: transparent ThreeDShadow -moz-Dialog;
54 -moz-border-bottom-colors: transparent ThreeDShadow -moz-Dialog;
55 -moz-border-left-colors: transparent ThreeDShadow -moz-Dialog;
56 background-color: -moz-Dialog;
57 color: GrayText;
58 }
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 }
68 /* ::::: search box ::::: */
70 textbox[type="search"] {
71 -moz-appearance: searchfield;
72 padding: 1px 2px;
73 font-size: 12px;
74 }
76 .textbox-search-clear {
77 list-style-image: url(chrome://global/skin/icons/searchfield-regular-cancel.png);
78 -moz-image-region: rect(0, 14px, 14px, 0);
79 margin-bottom: 1px;
80 }
82 .textbox-search-clear:active:hover {
83 -moz-image-region: rect(0, 28px, 14px, 14px);
84 }
86 textbox[type="search"].compact {
87 padding: 0 1px;
88 font-size: 11px;
89 }
91 textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear {
92 list-style-image: url(chrome://global/skin/icons/searchfield-small-cancel.png);
93 -moz-image-region: rect(0, 11px, 11px, 0);
94 }
96 textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:active:hover {
97 -moz-image-region: rect(0, 22px, 11px, 11px);
98 }
100 .textbox-search-clear:not([disabled]) {
101 cursor: default;
102 }
104 .textbox-search-icons:not([selectedIndex="1"]) {
105 visibility: hidden;
106 }