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