|
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 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
6 @namespace html url("http://www.w3.org/1999/xhtml"); |
|
7 |
|
8 /* .padded is used by autocomplete widgets that don't have an icon. Gross. -dwh */ |
|
9 textbox:not(.padded) { |
|
10 cursor: default; |
|
11 padding: 0; |
|
12 } |
|
13 |
|
14 textbox[nomatch="true"][highlightnonmatches="true"] { |
|
15 color: red; |
|
16 } |
|
17 |
|
18 textbox:not(.padded) .textbox-input-box { |
|
19 margin: 0 3px; |
|
20 } |
|
21 |
|
22 .textbox-input-box { |
|
23 -moz-box-align: center; |
|
24 } |
|
25 |
|
26 /* ::::: history button ::::: */ |
|
27 |
|
28 .autocomplete-history-dropmarker { |
|
29 -moz-appearance: none !important; |
|
30 border: none !important; |
|
31 background-color: transparent !important; |
|
32 padding: 0px; |
|
33 list-style-image: url("chrome://global/skin/icons/autocomplete-dropmarker.png"); |
|
34 margin: 0px; |
|
35 } |
|
36 |
|
37 /* ::::: autocomplete popups ::::: */ |
|
38 |
|
39 panel[type="autocomplete"], |
|
40 panel[type="autocomplete-richlistbox"], |
|
41 .autocomplete-history-popup { |
|
42 padding: 0px !important; |
|
43 background-color: -moz-Field; |
|
44 font: icon; |
|
45 -moz-appearance: none; |
|
46 } |
|
47 |
|
48 .autocomplete-history-popup { |
|
49 max-height: 180px; |
|
50 } |
|
51 |
|
52 /* ::::: tree ::::: */ |
|
53 |
|
54 .autocomplete-tree { |
|
55 -moz-appearance: none !important; |
|
56 border: none !important; |
|
57 background-color: transparent !important; |
|
58 } |
|
59 |
|
60 .autocomplete-treecol { |
|
61 -moz-appearance: none !important; |
|
62 margin: 0 !important; |
|
63 border: none !important; |
|
64 padding: 0 !important; |
|
65 } |
|
66 |
|
67 .autocomplete-treebody::-moz-tree-cell-text { |
|
68 padding-left: 2px; |
|
69 } |
|
70 |
|
71 .autocomplete-treebody::-moz-tree-row { |
|
72 border-top: none; |
|
73 } |
|
74 |
|
75 treechildren.autocomplete-treebody::-moz-tree-row(selected) { |
|
76 background-color: Highlight; |
|
77 } |
|
78 |
|
79 treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) { |
|
80 color: HighlightText !important; |
|
81 } |
|
82 |
|
83 .autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) { |
|
84 max-width: 16px; |
|
85 height: 16px; |
|
86 } |
|
87 |
|
88 /* ::::: richlistbox autocomplete ::::: */ |
|
89 |
|
90 .autocomplete-richlistbox { |
|
91 -moz-appearance: none; |
|
92 margin: 0; |
|
93 } |
|
94 |
|
95 .autocomplete-richlistitem[selected="true"] { |
|
96 background-color: Highlight; |
|
97 color: HighlightText; |
|
98 background-image: linear-gradient(rgba(255,255,255,0.3), transparent); |
|
99 } |
|
100 |
|
101 .autocomplete-richlistitem { |
|
102 padding: 5px 2px; |
|
103 } |
|
104 |
|
105 .ac-url-box { |
|
106 margin-top: 1px; |
|
107 } |
|
108 |
|
109 .ac-site-icon { |
|
110 width: 16px; |
|
111 height: 16px; |
|
112 margin-bottom: -1px; |
|
113 -moz-margin-start: 7px; |
|
114 -moz-margin-end: 5px; |
|
115 } |
|
116 |
|
117 @media (min-resolution: 2dppx) { |
|
118 image.ac-site-icon { |
|
119 image-rendering: -moz-crisp-edges; |
|
120 } |
|
121 } |
|
122 |
|
123 .ac-type-icon { |
|
124 width: 16px; |
|
125 height: 16px; |
|
126 -moz-margin-start: 6px; |
|
127 -moz-margin-end: 4px; |
|
128 } |
|
129 |
|
130 .ac-url-box > .ac-site-icon, |
|
131 .ac-url-box > .ac-type-icon { |
|
132 /* Otherwise the spacer is big enough to stretch its container */ |
|
133 height: auto; |
|
134 } |
|
135 |
|
136 .ac-extra > .ac-result-type-tag { |
|
137 margin: 0 4px; |
|
138 } |
|
139 |
|
140 .ac-extra > .ac-comment { |
|
141 padding-right: 4px; |
|
142 } |
|
143 |
|
144 .ac-ellipsis-after { |
|
145 margin: 0 !important; |
|
146 padding: 0; |
|
147 min-width: 1.1em; |
|
148 } |
|
149 |
|
150 .ac-normal-text { |
|
151 margin: 0 !important; |
|
152 padding: 0; |
|
153 } |
|
154 |
|
155 .ac-normal-text > html|span { |
|
156 margin: 0 !important; |
|
157 padding: 0; |
|
158 } |
|
159 |
|
160 html|span.ac-emphasize-text { |
|
161 box-shadow: inset 0 0 1px 1px rgba(208,208,208,0.4); |
|
162 background-color: rgba(208,208,208,0.2); |
|
163 border-radius: 2px; |
|
164 text-shadow: 0 0 currentColor; |
|
165 } |
|
166 |
|
167 .ac-url-text > html|span.ac-emphasize-text, |
|
168 .ac-action-text > html|span.ac-emphasize-text { |
|
169 box-shadow: inset 0 0 1px 1px rgba(183,210,226,0.4); |
|
170 background-color: rgba(183,210,226,0.3); |
|
171 } |
|
172 |
|
173 .ac-title, .ac-url { |
|
174 overflow: hidden; |
|
175 } |
|
176 |
|
177 /* ::::: textboxes inside toolbarpaletteitems ::::: */ |
|
178 |
|
179 toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input { |
|
180 visibility: hidden; |
|
181 } |
|
182 |
|
183 toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input { |
|
184 visibility: hidden; |
|
185 } |