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 /* ===== autocomplete.css =================================================
6 == Styles used by the autocomplete widget.
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 /* ::::: autocomplete ::::: */
14 /* .padded is used by autocomplete widgets that don't have an icon. Gross. -dwh */
15 textbox:not(.padded) {
21 textbox[nomatch="true"][highlightnonmatches="true"] {
25 .autocomplete-textbox-container {
26 -moz-box-align: center;
29 textbox:not(.padded) .textbox-input-box {
34 -moz-box-align: center;
38 /* ::::: history button ::::: */
40 .autocomplete-history-dropmarker {
43 border-radius: 0px 3px 3px 0px;
45 .autocomplete-history-dropmarker:-moz-locale-dir(rtl) {
46 border-radius: 3px 0px 0px 3px;
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"] {
54 border-left: 1px solid #9C9CFF;
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"] {
62 border-right: 1px solid #9C9CFF;
65 /* ::::: autocomplete popups ::::: */
67 panel[type="autocomplete"],
68 panel[type="autocomplete-richlistbox"],
69 .autocomplete-history-popup {
70 border: 1px solid #FF9F00;
71 background-color: #000000;
75 .autocomplete-history-popup {
79 /* ::::: tree ::::: */
83 background-color: transparent !important;
86 .autocomplete-treecol {
87 margin: 0px !important;
88 border: none !important;
89 padding: 0px !important;
92 /* GTK calculates space for a sort arrow */
93 .autocomplete-treecol > .treecol-sortdirection {
94 -moz-appearance: none !important;
97 .autocomplete-treebody::-moz-tree-cell-text {
98 -moz-padding-start: 8px;
101 .autocomplete-treebody::-moz-tree-row(selected) {
102 background-color: #FFCF00;
105 .autocomplete-treebody::-moz-tree-cell-text(selected) {
106 color: #000000 !important;
109 .autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) {
114 /* ::::: richlistbox autocomplete ::::: */
116 .autocomplete-richlistbox {
121 .autocomplete-richlistbox > scrollbox {
122 overflow-x: hidden !important;
125 .autocomplete-richlistitem {
129 .autocomplete-richlistitem[selected="true"] {
130 background-color: #008484;
134 .autocomplete-richlistitem:not(:first-child) {
135 border-top: 1px solid #E7ADE7;
143 -moz-margin-start: 0;
144 -moz-margin-end: 3px;
152 .ac-extra > .ac-result-type-tag {
156 .ac-extra > .ac-comment {
157 -moz-padding-end: 4px;
161 margin: 2px 0px 0px !important;
167 margin: 2px 0px 0px !important;
171 .ac-normal-text > html|span {
172 margin: 0 !important;
176 html|span.ac-emphasize-text {
178 text-decoration: underline;
185 /* ::::: textboxes inside toolbarpaletteitems ::::: */
187 toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input {
191 toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input {