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 /* ===== 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");
12 /* ::::: textbox ::::: */
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 }
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 }
39 .textbox-contextmenu {
40 cursor: default;
41 }
43 /* ..... readonly state ..... */
45 textbox[readonly="true"] {
46 background-color: -moz-Dialog;
47 color: -moz-DialogText;
48 }
50 /* ..... disabled state ..... */
52 textbox[disabled="true"] {
53 cursor: default;
54 background-color: -moz-Dialog;
55 color: GrayText;
56 }
58 /* ::::: plain textbox ::::: */
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 textbox ::::: */
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 }
75 .textbox-search-icon:-moz-locale-dir(rtl) {
76 transform: scaleX(-1);
77 }
79 .textbox-search-icon[searchbutton]:not([disabled]) {
80 cursor: pointer;
81 }
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 }
88 .textbox-search-clear:not([disabled]) {
89 cursor: default;
90 }
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 }
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 }
102 /* ::::: textboxes inside toolbarpaletteitems ::::: */
104 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
105 visibility: hidden;
106 }