1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/linux/global/autocomplete.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,192 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +/* ===== autocomplete.css ================================================= 1.9 + == Styles used by the autocomplete widget. 1.10 + ======================================================================= */ 1.11 + 1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.13 +@namespace html url("http://www.w3.org/1999/xhtml"); 1.14 + 1.15 +/* ::::: autocomplete ::::: */ 1.16 + 1.17 +/* .padded is used by autocomplete widgets that don't have an icon. Gross. -dwh */ 1.18 +textbox:not(.padded) { 1.19 + cursor: default; 1.20 + padding: 0 1px; 1.21 +} 1.22 + 1.23 +textbox[enablehistory="true"] { 1.24 + -moz-appearance: none; 1.25 + border: 0; 1.26 + background-color: transparent; 1.27 +} 1.28 + 1.29 +textbox[nomatch="true"][highlightnonmatches="true"] { 1.30 + color: red; 1.31 +} 1.32 + 1.33 +.autocomplete-textbox-container { 1.34 + -moz-box-align: center; 1.35 +} 1.36 + 1.37 +textbox[enablehistory="true"] > .autocomplete-textbox-container { 1.38 + -moz-appearance: menulist-textfield; 1.39 +} 1.40 + 1.41 +textbox:not(.padded) .textbox-input-box { 1.42 + margin: 0 3px; 1.43 +} 1.44 + 1.45 +.textbox-input-box { 1.46 + -moz-box-align: center; 1.47 +} 1.48 + 1.49 +/* ::::: autocomplete popups ::::: */ 1.50 + 1.51 +panel[type="autocomplete"], 1.52 +panel[type="autocomplete-richlistbox"], 1.53 +.autocomplete-history-popup { 1.54 + border-width: 1px; 1.55 + -moz-border-top-colors: ThreeDDarkShadow; 1.56 + -moz-border-right-colors: ThreeDDarkShadow; 1.57 + -moz-border-bottom-colors: ThreeDDarkShadow; 1.58 + -moz-border-left-colors: ThreeDDarkShadow; 1.59 + padding: 0; 1.60 + background-color: -moz-Field; 1.61 +} 1.62 + 1.63 +.autocomplete-history-popup { 1.64 + max-height: 180px; 1.65 +} 1.66 + 1.67 +/* ::::: tree ::::: */ 1.68 + 1.69 +.autocomplete-tree { 1.70 + -moz-appearance: none !important; 1.71 + border: none !important; 1.72 + background-color: transparent !important; 1.73 + color: MenuText; 1.74 +} 1.75 + 1.76 +.autocomplete-treecol { 1.77 + -moz-appearance: none !important; 1.78 + margin: 0 !important; 1.79 + border: none !important; 1.80 + padding: 0 !important; 1.81 +} 1.82 + 1.83 +/* GTK calculates space for a sort arrow */ 1.84 +.autocomplete-treecol > .treecol-sortdirection { 1.85 + -moz-appearance: none !important; 1.86 +} 1.87 + 1.88 +.autocomplete-treebody::-moz-tree-cell-text { 1.89 + -moz-padding-start: 8px; 1.90 +} 1.91 + 1.92 +treechildren.autocomplete-treebody::-moz-tree-row(selected) { 1.93 + background-color: Highlight; 1.94 +} 1.95 + 1.96 +treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) { 1.97 + color: HighlightText !important; 1.98 +} 1.99 + 1.100 +.autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) { 1.101 + max-width: 16px; 1.102 + height: 16px; 1.103 +} 1.104 + 1.105 +/* ::::: richlistbox autocomplete ::::: */ 1.106 + 1.107 +.autocomplete-richlistbox { 1.108 + -moz-appearance: none; 1.109 + margin: 1px; 1.110 + background-color: transparent; 1.111 +} 1.112 + 1.113 +.autocomplete-richlistitem[selected="true"] { 1.114 + background-color: Highlight; 1.115 + color: HighlightText; 1.116 +} 1.117 + 1.118 +.autocomplete-richlistitem { 1.119 + padding: 6px 2px; 1.120 + color: MenuText; 1.121 +} 1.122 + 1.123 +.ac-url-box { 1.124 + margin-top: 1px; 1.125 +} 1.126 + 1.127 +.ac-site-icon { 1.128 + width: 16px; 1.129 + height: 16px; 1.130 + margin-bottom: -2px; 1.131 + -moz-margin-start: 3px; 1.132 + -moz-margin-end: 6px; 1.133 +} 1.134 + 1.135 +.ac-type-icon { 1.136 + width: 16px; 1.137 + height: 16px; 1.138 + -moz-margin-start: 6px; 1.139 + -moz-margin-end: 4px; 1.140 +} 1.141 + 1.142 +.ac-extra > .ac-result-type-tag { 1.143 + margin: 0 4px; 1.144 +} 1.145 + 1.146 +.ac-extra > .ac-comment { 1.147 + padding-right: 4px; 1.148 +} 1.149 + 1.150 +.ac-ellipsis-after { 1.151 + margin: 0 !important; 1.152 + padding: 0; 1.153 + min-width: 1em; 1.154 +} 1.155 + 1.156 +.ac-normal-text { 1.157 + margin: 0 !important; 1.158 + padding: 0; 1.159 +} 1.160 + 1.161 +.ac-normal-text > html|span { 1.162 + margin: 0 !important; 1.163 + padding: 0; 1.164 +} 1.165 + 1.166 +html|span.ac-emphasize-text { 1.167 + box-shadow: inset 0 0 1px 1px rgba(0,0,0,0.1); 1.168 + background-color: rgba(0,0,0,0.05); 1.169 + border-radius: 2px; 1.170 + text-shadow: 0 0 currentColor; /*faux bold effect*/ 1.171 +} 1.172 + 1.173 +.ac-url-text > html|span.ac-emphasize-text, 1.174 +.ac-action-text > html|span.ac-emphasize-text { 1.175 + box-shadow: none; 1.176 +} 1.177 + 1.178 +.ac-normal-text[selected="true"] > html|span.ac-emphasize-text { 1.179 + box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.3); 1.180 + background-color: rgba(255,255,255,0.2); 1.181 +} 1.182 + 1.183 +.ac-title, .ac-url { 1.184 + overflow: hidden; 1.185 +} 1.186 + 1.187 +/* ::::: textboxes inside toolbarpaletteitems ::::: */ 1.188 + 1.189 +toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input { 1.190 + visibility: hidden; 1.191 +} 1.192 + 1.193 +toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input { 1.194 + visibility: hidden; 1.195 +}