toolkit/themes/linux/global/autocomplete.css

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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

mercurial