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