override OS settings and always show the standard up/down scrollbar buttons
[themes.git] / EarlyBlue / global / autocomplete.css
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 /* ===== autocomplete.css =================================================
9   == Styles used by the autocomplete widget.
10   ======================================================================= */
11
12 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
13 @namespace html url("http://www.w3.org/1999/xhtml");
14
15 /* ::::: autocomplete ::::: */
16
17 /* .padded is used by autocomplete widgets that don't have an icon. Gross. -dwh */
18 textbox:not(.padded) {
19   cursor: default;
20   padding: 0px;
21 }
22
23 textbox[nomatch="true"][highlightnonmatches="true"] {
24   color: red;
25 }
26
27 .autocomplete-textbox-container {
28   -moz-box-align: center;
29 }
30
31 textbox:not(.padded) .textbox-input-box {
32   margin: 0 3px;
33 }
34
35 .textbox-input-box {
36   -moz-box-align: center;
37 }
38
39 /* ::::: history button ::::: */
40
41 .autocomplete-history-dropmarker {
42   min-width: 15px;
43   min-height: 19px;
44   background-color: #9999CC;
45 }
46
47 .autocomplete-history-dropmarker[open="true"] {
48   border: 1px inset #CCD0DD;
49   padding-top: 2px;
50   padding-bottom: 0;
51   -moz-padding-start: 2px;
52   -moz-padding-end: 0;
53 }
54
55 /* ::::: autocomplete popups ::::: */
56
57 panel[type="autocomplete"],
58 panel[type="autocomplete-richlistbox"],
59 .autocomplete-history-popup {
60   border: 1px solid #9999CC;
61   background-color: white;
62   padding: 0;
63 }
64
65 .autocomplete-history-popup {
66   max-height: 25em;
67 }
68
69 /* ::::: tree ::::: */
70
71 .autocomplete-tree {
72   border: none;
73   background-color: transparent !important;
74 }
75
76 .autocomplete-treecol {
77   margin: 0px !important;
78   border: none !important;
79   padding: 0px !important;
80 }
81
82 /* GTK calculates space for a sort arrow */
83 .autocomplete-treecol > .treecol-sortdirection {
84   -moz-appearance: none !important;
85 }
86
87 .autocomplete-treebody::-moz-tree-cell-text {
88   -moz-padding-start: 8px;
89 }
90
91 .autocomplete-treebody::-moz-tree-row(selected) {
92   background-color: #336699;
93 }
94
95 .autocomplete-treebody::-moz-tree-cell-text(selected) {
96   color: white !important;
97 }
98
99 .autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) {
100   max-width: 16px;
101   height: 16px;
102 }
103
104 /* ::::: richlistbox autocomplete ::::: */
105
106 .autocomplete-richlistbox {
107   margin: 0;
108 }
109
110 .autocomplete-richlistbox > scrollbox {
111   overflow-x: hidden !important;
112 }
113
114 .autocomplete-richlistitem {
115   padding: 1px 2px;
116 }
117
118 .autocomplete-richlistitem[selected="true"] {
119   background-color: #336699;
120   color: white;
121 }
122
123 .autocomplete-richlistitem:not(:first-child) {
124   border-top: 1px solid #666699;
125 }
126
127 .ac-title-box {
128 }
129
130 .ac-url-box {
131   /* When setting a vertical margin here, half of that needs to be added
132      .ac-title-box's translateY for when .ac-url-box is hidden (see below). */
133 /*  margin: 1px 0 4px;*/
134 }
135
136 .autocomplete-richlistitem[actiontype="keyword"] .ac-url-box,
137 .autocomplete-richlistitem[actiontype="searchengine"] .ac-url-box,
138 .autocomplete-richlistitem[actiontype="visiturl"] .ac-url-box,
139 .autocomplete-richlistitem[type~="autofill"] .ac-url-box {
140   visibility: hidden;
141 }
142
143 .autocomplete-richlistitem[actiontype="keyword"] .ac-title-box,
144 .autocomplete-richlistitem[actiontype="searchengine"] .ac-title-box,
145 .autocomplete-richlistitem[actiontype="visiturl"] .ac-title-box,
146 .autocomplete-richlistitem[type~="autofill"] .ac-title-box {
147   /* Center the title by moving it down by half of .ac-url-box's height,
148      including vertical margins (if any). */
149 /*  transform: translateY(calc(.5em + 2px));*/
150   transform: translateY(calc(.5em));
151 }
152
153 .ac-site-icon {
154   width: 16px;
155   height: 16px;
156   margin-top: 0;
157   margin-bottom: -3px;
158   -moz-margin-start: 3px;
159   -moz-margin-end: 5px;
160 }
161
162 .ac-type-icon {
163   width: 16px;
164   height: 16px;
165 }
166
167 .ac-extra > .ac-result-type-tag {
168   margin: 0 4px;
169 }
170
171 .ac-extra > .ac-comment {
172   -moz-padding-end: 4px;
173 }
174
175 .ac-ellipsis-after {
176   margin: 2px 0px 0px !important;
177   padding: 0;
178   min-width: 1em;
179 }
180
181 .ac-normal-text {
182   margin: 2px 0px 0px !important;
183   padding: 0;
184 }
185
186 .ac-normal-text > html|span {
187   margin: 0 !important;
188   padding: 0;
189 }
190
191 html|span.ac-emphasize-text {
192   font-weight: bold;
193   text-decoration: underline;
194 }
195
196 .ac-title, .ac-url {
197   overflow: hidden;
198 }
199
200 /* ::::: textboxes inside toolbarpaletteitems ::::: */
201
202 toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input {
203   visibility: hidden;
204 }
205
206 toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input {
207   visibility: hidden;
208 }