sync both themes with toolkit windows theme changes in Mozilla 54 cycle
[themes.git] / EarlyBlue / global / autocomplete.css
... / ...
CommitLineData
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 */
18textbox:not(.padded) {
19 cursor: default;
20 padding: 0px;
21}
22
23textbox[nomatch="true"][highlightnonmatches="true"] {
24 color: red;
25}
26
27.autocomplete-textbox-container {
28 -moz-box-align: center;
29}
30
31textbox: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 padding-inline-start: 2px;
52 padding-inline-end: 0;
53}
54
55/* ::::: autocomplete popups ::::: */
56
57panel[type="autocomplete"],
58panel[type="autocomplete-richlistbox"],
59.autocomplete-history-popup {
60 border: 1px solid #9999CC;
61 background-color: #FFFFFF;
62 color: #000000;
63 padding: 0;
64}
65
66.autocomplete-history-popup {
67 max-height: 25em;
68}
69
70/* ::::: tree ::::: */
71
72.autocomplete-tree {
73 border: none;
74 background-color: transparent !important;
75}
76
77.autocomplete-treecol {
78 margin: 0px !important;
79 border: none !important;
80 padding: 0px !important;
81}
82
83/* GTK calculates space for a sort arrow */
84.autocomplete-treecol > .treecol-sortdirection {
85 -moz-appearance: none !important;
86}
87
88.autocomplete-treebody::-moz-tree-cell-text {
89 padding-inline-start: 8px;
90}
91
92.autocomplete-treebody::-moz-tree-row(selected) {
93 background-color: #336699;
94}
95
96.autocomplete-treebody::-moz-tree-cell-text(selected) {
97 color: white !important;
98}
99
100.autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) {
101 max-width: 16px;
102 height: 16px;
103}
104
105/* ::::: richlistbox autocomplete ::::: */
106
107.autocomplete-richlistbox {
108 margin: 0;
109}
110
111.autocomplete-richlistbox > scrollbox {
112 overflow-x: hidden !important;
113}
114
115.autocomplete-richlistitem[selected] {
116 background-color: #336699;
117 color: white;
118}
119
120.ac-type-icon {
121 width: 16px;
122 height: 16px;
123 max-width: 16px;
124 max-height: 16px;
125 margin-inline-start: 14px;
126 margin-inline-end: 6px;
127}
128
129.ac-site-icon {
130 width: 16px;
131 height: 16px;
132 max-width: 16px;
133 max-height: 16px;
134 margin-inline-start: 0px;
135 margin-inline-end: 11px;
136 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
137}
138/*
139.ac-site-icon[selected] {
140 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon-inverted.png");
141}
142*/
143@media (min-resolution: 1.1dppx) {
144 .ac-site-icon {
145 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
146 }
147 /*
148 .ac-site-icon[selected] {
149 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon-inverted@2x.png");
150 }
151 */
152}
153
154.ac-title {
155 margin-inline-start: 0;
156 margin-inline-end: 6px;
157}
158
159html|span.ac-tag {
160 margin-inline-start: 0;
161 margin-inline-end: 2px;
162}
163
164.ac-tags {
165 margin-inline-start: 0;
166 margin-inline-end: 4px;
167}
168
169.ac-separator {
170 margin-inline-start: 0;
171 margin-inline-end: 6px;
172}
173
174/* Better align the URL/action with the title. */
175.ac-tags,
176.ac-separator,
177.ac-url,
178.ac-action {
179 margin-bottom: -2px;
180}
181
182.ac-title-text,
183.ac-tags-text,
184.ac-separator-text,
185.ac-url-text,
186.ac-action-text,
187.ac-text-overflow-container {
188 padding: 0 !important;
189 margin: 0 !important;
190}
191
192/* ::::: textboxes inside toolbarpaletteitems ::::: */
193
194toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input {
195 visibility: hidden;
196}
197
198toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input {
199 visibility: hidden;
200}