Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 6 | @namespace html url("http://www.w3.org/1999/xhtml"); |
michael@0 | 7 | |
michael@0 | 8 | /* .padded is used by autocomplete widgets that don't have an icon. Gross. -dwh */ |
michael@0 | 9 | textbox:not(.padded) { |
michael@0 | 10 | cursor: default; |
michael@0 | 11 | padding: 0; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | textbox[nomatch="true"][highlightnonmatches="true"] { |
michael@0 | 15 | color: red; |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | textbox:not(.padded) .textbox-input-box { |
michael@0 | 19 | margin: 0 3px; |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | .textbox-input-box { |
michael@0 | 23 | -moz-box-align: center; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | /* ::::: history button ::::: */ |
michael@0 | 27 | |
michael@0 | 28 | .autocomplete-history-dropmarker { |
michael@0 | 29 | -moz-appearance: none !important; |
michael@0 | 30 | border: none !important; |
michael@0 | 31 | background-color: transparent !important; |
michael@0 | 32 | padding: 0px; |
michael@0 | 33 | list-style-image: url("chrome://global/skin/icons/autocomplete-dropmarker.png"); |
michael@0 | 34 | margin: 0px; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | /* ::::: autocomplete popups ::::: */ |
michael@0 | 38 | |
michael@0 | 39 | panel[type="autocomplete"], |
michael@0 | 40 | panel[type="autocomplete-richlistbox"], |
michael@0 | 41 | .autocomplete-history-popup { |
michael@0 | 42 | padding: 0px !important; |
michael@0 | 43 | background-color: -moz-Field; |
michael@0 | 44 | font: icon; |
michael@0 | 45 | -moz-appearance: none; |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | .autocomplete-history-popup { |
michael@0 | 49 | max-height: 180px; |
michael@0 | 50 | } |
michael@0 | 51 | |
michael@0 | 52 | /* ::::: tree ::::: */ |
michael@0 | 53 | |
michael@0 | 54 | .autocomplete-tree { |
michael@0 | 55 | -moz-appearance: none !important; |
michael@0 | 56 | border: none !important; |
michael@0 | 57 | background-color: transparent !important; |
michael@0 | 58 | } |
michael@0 | 59 | |
michael@0 | 60 | .autocomplete-treecol { |
michael@0 | 61 | -moz-appearance: none !important; |
michael@0 | 62 | margin: 0 !important; |
michael@0 | 63 | border: none !important; |
michael@0 | 64 | padding: 0 !important; |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | .autocomplete-treebody::-moz-tree-cell-text { |
michael@0 | 68 | padding-left: 2px; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | .autocomplete-treebody::-moz-tree-row { |
michael@0 | 72 | border-top: none; |
michael@0 | 73 | } |
michael@0 | 74 | |
michael@0 | 75 | treechildren.autocomplete-treebody::-moz-tree-row(selected) { |
michael@0 | 76 | background-color: Highlight; |
michael@0 | 77 | } |
michael@0 | 78 | |
michael@0 | 79 | treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) { |
michael@0 | 80 | color: HighlightText !important; |
michael@0 | 81 | } |
michael@0 | 82 | |
michael@0 | 83 | .autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) { |
michael@0 | 84 | max-width: 16px; |
michael@0 | 85 | height: 16px; |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | /* ::::: richlistbox autocomplete ::::: */ |
michael@0 | 89 | |
michael@0 | 90 | .autocomplete-richlistbox { |
michael@0 | 91 | -moz-appearance: none; |
michael@0 | 92 | margin: 0; |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | .autocomplete-richlistitem[selected="true"] { |
michael@0 | 96 | background-color: Highlight; |
michael@0 | 97 | color: HighlightText; |
michael@0 | 98 | background-image: linear-gradient(rgba(255,255,255,0.3), transparent); |
michael@0 | 99 | } |
michael@0 | 100 | |
michael@0 | 101 | .autocomplete-richlistitem { |
michael@0 | 102 | padding: 5px 2px; |
michael@0 | 103 | } |
michael@0 | 104 | |
michael@0 | 105 | .ac-url-box { |
michael@0 | 106 | margin-top: 1px; |
michael@0 | 107 | } |
michael@0 | 108 | |
michael@0 | 109 | .ac-site-icon { |
michael@0 | 110 | width: 16px; |
michael@0 | 111 | height: 16px; |
michael@0 | 112 | margin-bottom: -1px; |
michael@0 | 113 | -moz-margin-start: 7px; |
michael@0 | 114 | -moz-margin-end: 5px; |
michael@0 | 115 | } |
michael@0 | 116 | |
michael@0 | 117 | @media (min-resolution: 2dppx) { |
michael@0 | 118 | image.ac-site-icon { |
michael@0 | 119 | image-rendering: -moz-crisp-edges; |
michael@0 | 120 | } |
michael@0 | 121 | } |
michael@0 | 122 | |
michael@0 | 123 | .ac-type-icon { |
michael@0 | 124 | width: 16px; |
michael@0 | 125 | height: 16px; |
michael@0 | 126 | -moz-margin-start: 6px; |
michael@0 | 127 | -moz-margin-end: 4px; |
michael@0 | 128 | } |
michael@0 | 129 | |
michael@0 | 130 | .ac-url-box > .ac-site-icon, |
michael@0 | 131 | .ac-url-box > .ac-type-icon { |
michael@0 | 132 | /* Otherwise the spacer is big enough to stretch its container */ |
michael@0 | 133 | height: auto; |
michael@0 | 134 | } |
michael@0 | 135 | |
michael@0 | 136 | .ac-extra > .ac-result-type-tag { |
michael@0 | 137 | margin: 0 4px; |
michael@0 | 138 | } |
michael@0 | 139 | |
michael@0 | 140 | .ac-extra > .ac-comment { |
michael@0 | 141 | padding-right: 4px; |
michael@0 | 142 | } |
michael@0 | 143 | |
michael@0 | 144 | .ac-ellipsis-after { |
michael@0 | 145 | margin: 0 !important; |
michael@0 | 146 | padding: 0; |
michael@0 | 147 | min-width: 1.1em; |
michael@0 | 148 | } |
michael@0 | 149 | |
michael@0 | 150 | .ac-normal-text { |
michael@0 | 151 | margin: 0 !important; |
michael@0 | 152 | padding: 0; |
michael@0 | 153 | } |
michael@0 | 154 | |
michael@0 | 155 | .ac-normal-text > html|span { |
michael@0 | 156 | margin: 0 !important; |
michael@0 | 157 | padding: 0; |
michael@0 | 158 | } |
michael@0 | 159 | |
michael@0 | 160 | html|span.ac-emphasize-text { |
michael@0 | 161 | box-shadow: inset 0 0 1px 1px rgba(208,208,208,0.4); |
michael@0 | 162 | background-color: rgba(208,208,208,0.2); |
michael@0 | 163 | border-radius: 2px; |
michael@0 | 164 | text-shadow: 0 0 currentColor; |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | .ac-url-text > html|span.ac-emphasize-text, |
michael@0 | 168 | .ac-action-text > html|span.ac-emphasize-text { |
michael@0 | 169 | box-shadow: inset 0 0 1px 1px rgba(183,210,226,0.4); |
michael@0 | 170 | background-color: rgba(183,210,226,0.3); |
michael@0 | 171 | } |
michael@0 | 172 | |
michael@0 | 173 | .ac-title, .ac-url { |
michael@0 | 174 | overflow: hidden; |
michael@0 | 175 | } |
michael@0 | 176 | |
michael@0 | 177 | /* ::::: textboxes inside toolbarpaletteitems ::::: */ |
michael@0 | 178 | |
michael@0 | 179 | toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input { |
michael@0 | 180 | visibility: hidden; |
michael@0 | 181 | } |
michael@0 | 182 | |
michael@0 | 183 | toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input { |
michael@0 | 184 | visibility: hidden; |
michael@0 | 185 | } |