~wasta-linux/wasta-core-wily/master

« back to all changes in this revision

Viewing changes to install-files/firefox-addons/extensions/{8a01dfcc-450f-11e5-909b-fb581d5d46b0}/chrome/global/autocomplete.css

  • Committer: Rik Shaw
  • Date: 2015-11-01 13:28:40 UTC
  • Revision ID: git-v1:59c62c9b2e4f4f1cf62db1f5dc1cf630feb99933
initial 15.10 commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: 0;
 
18
}
 
19
 
 
20
textbox[enablehistory="true"] {
 
21
  -moz-appearance: none;
 
22
  border: 0;
 
23
  background-color: transparent;
 
24
}
 
25
 
 
26
textbox[nomatch="true"][highlightnonmatches="true"] {
 
27
  color: red;
 
28
}
 
29
 
 
30
.autocomplete-textbox-container {
 
31
  -moz-box-align: center;
 
32
}
 
33
 
 
34
textbox[enablehistory="true"] > .autocomplete-textbox-container {
 
35
  -moz-appearance: menulist-textfield;
 
36
}
 
37
 
 
38
textbox:not(.padded) .textbox-input-box {
 
39
  margin: 0 3px;
 
40
}
 
41
 
 
42
.textbox-input-box {
 
43
  -moz-box-align: center;
 
44
}
 
45
 
 
46
/* ::::: autocomplete popups ::::: */
 
47
 
 
48
panel[type="autocomplete"],
 
49
panel[type="autocomplete-richlistbox"],
 
50
.autocomplete-history-popup {
 
51
  border-width: 1px;
 
52
  -moz-border-top-colors: ThreeDDarkShadow;
 
53
  -moz-border-right-colors: ThreeDDarkShadow;
 
54
  -moz-border-bottom-colors: ThreeDDarkShadow;
 
55
  -moz-border-left-colors: ThreeDDarkShadow;
 
56
  padding: 0;
 
57
  background-color: -moz-Field;
 
58
}
 
59
 
 
60
.autocomplete-history-popup {
 
61
  max-height: 180px;
 
62
}
 
63
 
 
64
/* ::::: tree ::::: */
 
65
 
 
66
.autocomplete-tree {
 
67
  -moz-appearance: none !important;
 
68
  border: none !important;
 
69
  background-color: transparent !important;
 
70
  color: MenuText;
 
71
}
 
72
 
 
73
.autocomplete-treecol {
 
74
  -moz-appearance: none !important;
 
75
  margin: 0 !important;
 
76
  border: none !important;
 
77
  padding: 0 !important;
 
78
}
 
79
 
 
80
/* GTK calculates space for a sort arrow */
 
81
.autocomplete-treecol > .treecol-sortdirection {
 
82
  -moz-appearance: none !important;
 
83
}
 
84
 
 
85
.autocomplete-treebody::-moz-tree-cell-text {
 
86
  -moz-padding-start: 8px;
 
87
}
 
88
 
 
89
treechildren.autocomplete-treebody::-moz-tree-row(selected) {
 
90
 background-color: Highlight;
 
91
}
 
92
 
 
93
treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) {
 
94
  color: HighlightText !important;
 
95
}
 
96
 
 
97
.autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) {
 
98
  max-width: 16px;
 
99
  height: 16px;
 
100
}
 
101
 
 
102
/* ::::: richlistbox autocomplete ::::: */
 
103
 
 
104
.autocomplete-richlistbox {
 
105
  -moz-appearance: none;
 
106
  margin: 1px;
 
107
  background-color: transparent;
 
108
}
 
109
 
 
110
.autocomplete-richlistitem[selected="true"] {
 
111
  background-color: Highlight;
 
112
  color: HighlightText;
 
113
}
 
114
 
 
115
.autocomplete-richlistitem {
 
116
  padding: 6px 2px;
 
117
  color: MenuText;
 
118
}
 
119
 
 
120
.ac-url-box {
 
121
  /* When setting a vertical margin here, half of that needs to be added
 
122
     .ac-title-box's translateY for when .ac-url-box is hidden (see below). */
 
123
  margin-top: 1px;
 
124
}
 
125
 
 
126
.autocomplete-richlistitem[actiontype="keyword"] .ac-url-box,
 
127
.autocomplete-richlistitem[actiontype="searchengine"] .ac-url-box,
 
128
.autocomplete-richlistitem[actiontype="visiturl"] .ac-url-box,
 
129
.autocomplete-richlistitem[type~="autofill"] .ac-url-box {
 
130
  visibility: hidden;
 
131
}
 
132
 
 
133
.autocomplete-richlistitem[actiontype="keyword"] .ac-title-box,
 
134
.autocomplete-richlistitem[actiontype="searchengine"] .ac-title-box,
 
135
.autocomplete-richlistitem[actiontype="visiturl"] .ac-title-box,
 
136
.autocomplete-richlistitem[type~="autofill"] .ac-title-box {
 
137
  /* Center the title by moving it down by half of .ac-url-box's height,
 
138
     including vertical margins (if any). */
 
139
  transform: translateY(.5em);
 
140
}
 
141
 
 
142
.ac-site-icon {
 
143
  width: 16px; 
 
144
  height: 16px;
 
145
  margin-bottom: -2px;
 
146
  -moz-margin-start: 3px;
 
147
  -moz-margin-end: 6px;
 
148
}
 
149
 
 
150
.ac-type-icon {
 
151
  width: 16px; 
 
152
  height: 16px;
 
153
  -moz-margin-start: 6px;
 
154
  -moz-margin-end: 4px;
 
155
}
 
156
 
 
157
.ac-extra > .ac-result-type-tag {
 
158
  margin: 0 4px;
 
159
}
 
160
 
 
161
.ac-extra > .ac-comment {
 
162
  padding-right: 4px;
 
163
}
 
164
 
 
165
.ac-ellipsis-after {
 
166
  margin: 0 !important;
 
167
  padding: 0; 
 
168
  min-width: 1em;
 
169
}
 
170
 
 
171
.ac-normal-text {
 
172
  margin: 0 !important;
 
173
  padding: 0;
 
174
}
 
175
 
 
176
.ac-normal-text > html|span {
 
177
  margin: 0 !important;
 
178
  padding: 0;
 
179
}
 
180
 
 
181
html|span.ac-emphasize-text {
 
182
  box-shadow: inset 0 0 1px 1px rgba(0,0,0,0.1);
 
183
  background-color: rgba(0,0,0,0.05);
 
184
  border-radius: 2px;
 
185
  text-shadow: 0 0 currentColor; /*faux bold effect*/
 
186
}
 
187
 
 
188
.ac-url-text > html|span.ac-emphasize-text,
 
189
.ac-action-text > html|span.ac-emphasize-text {
 
190
  box-shadow: none;
 
191
}
 
192
 
 
193
.ac-normal-text[selected="true"] > html|span.ac-emphasize-text {
 
194
  box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.3);
 
195
  background-color: rgba(255,255,255,0.2);
 
196
}
 
197
 
 
198
.ac-title, .ac-url {
 
199
  overflow: hidden;
 
200
}
 
201
 
 
202
/* ::::: textboxes inside toolbarpaletteitems ::::: */
 
203
 
 
204
toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input {
 
205
  visibility: hidden;
 
206
}
 
207
 
 
208
toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input {
 
209
  visibility: hidden;
 
210
}