speedo 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/views/layouts/speedo/application.html.haml +26 -21
- data/app/views/speedo/home/examples.html.haml +15 -16
- data/config/routes.rb +2 -2
- data/lib/generators/speedo/install_generator.rb +2 -2
- data/lib/speedo/sass.rb +1 -2
- data/lib/speedo/version.rb +1 -1
- data/vendor/assets/javascripts/chosen.jquery.js +952 -0
- data/vendor/assets/javascripts/jquery.autoSuggest.js +368 -0
- data/vendor/assets/javascripts/jquery.autogrow.js +50 -0
- data/vendor/assets/javascripts/jquery.dataTables.js +11612 -0
- data/vendor/assets/javascripts/jquery.fancybox-1.3.4.js +1156 -0
- data/vendor/assets/javascripts/jquery.livequery.js +250 -0
- data/vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/vendor/assets/javascripts/jquery.placeholder.min.js +2 -0
- data/vendor/assets/javascripts/jquery.uniform.js +672 -0
- data/vendor/assets/javascripts/modernizr.min.js +13 -0
- data/vendor/assets/javascripts/respond.js +326 -0
- data/vendor/assets/stylesheets/autoSuggest.css +217 -0
- data/vendor/assets/stylesheets/chosen-sprite.png +0 -0
- data/vendor/assets/stylesheets/chosen.css +392 -0
- data/vendor/assets/stylesheets/dataTables/Sorting icons.psd +0 -0
- data/vendor/assets/stylesheets/dataTables/back_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/back_enabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/back_enabled_hover.png +0 -0
- data/vendor/assets/stylesheets/dataTables/favicon.ico +0 -0
- data/vendor/assets/stylesheets/dataTables/forward_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/forward_enabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/forward_enabled_hover.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_asc.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_asc_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_both.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_desc.png +0 -0
- data/vendor/assets/stylesheets/dataTables/sort_desc_disabled.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/stylesheets/dataTables/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/stylesheets/fancybox/blank.gif +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_close.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_loading.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_nav_left.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_nav_right.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_e.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_n.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_ne.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_nw.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_s.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_se.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_sw.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_shadow_w.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_left.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_main.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_over.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancy_title_right.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancybox-x.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancybox-y.png +0 -0
- data/vendor/assets/stylesheets/fancybox/fancybox.png +0 -0
- data/vendor/assets/stylesheets/gh-buttons.css +393 -0
- data/vendor/assets/stylesheets/gh-icons.png +0 -0
- data/vendor/assets/stylesheets/jquery-ui-1.8.18.custom.css +565 -0
- data/vendor/assets/stylesheets/jquery.dataTables.css +219 -0
- data/vendor/assets/stylesheets/jquery.fancybox-1.3.4.css +359 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_ffffff_1x400.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/stylesheets/jqueryui/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/stylesheets/normalize.css +504 -0
- data/vendor/assets/stylesheets/uniform/bg-input-focus.png +0 -0
- data/vendor/assets/stylesheets/uniform/bg-input.png +0 -0
- data/vendor/assets/stylesheets/uniform/sprite-aristo.png +0 -0
- data/vendor/assets/stylesheets/uniform/sprite.png +0 -0
- data/vendor/assets/stylesheets/uniform.default.css +610 -0
- metadata +100 -16
@@ -0,0 +1,326 @@
|
|
1
|
+
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
|
2
|
+
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
|
3
|
+
window.matchMedia = window.matchMedia || (function(doc, undefined){
|
4
|
+
|
5
|
+
var bool,
|
6
|
+
docElem = doc.documentElement,
|
7
|
+
refNode = docElem.firstElementChild || docElem.firstChild,
|
8
|
+
// fakeBody required for <FF4 when executed in <head>
|
9
|
+
fakeBody = doc.createElement('body'),
|
10
|
+
div = doc.createElement('div');
|
11
|
+
|
12
|
+
div.id = 'mq-test-1';
|
13
|
+
div.style.cssText = "position:absolute;top:-100em";
|
14
|
+
fakeBody.style.background = "none";
|
15
|
+
fakeBody.appendChild(div);
|
16
|
+
|
17
|
+
return function(q){
|
18
|
+
|
19
|
+
div.innerHTML = '­<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';
|
20
|
+
|
21
|
+
docElem.insertBefore(fakeBody, refNode);
|
22
|
+
bool = div.offsetWidth == 42;
|
23
|
+
docElem.removeChild(fakeBody);
|
24
|
+
|
25
|
+
return { matches: bool, media: q };
|
26
|
+
};
|
27
|
+
|
28
|
+
})(document);
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
|
34
|
+
(function( win ){
|
35
|
+
//exposed namespace
|
36
|
+
win.respond = {};
|
37
|
+
|
38
|
+
//define update even in native-mq-supporting browsers, to avoid errors
|
39
|
+
respond.update = function(){};
|
40
|
+
|
41
|
+
//expose media query support flag for external use
|
42
|
+
respond.mediaQueriesSupported = win.matchMedia && win.matchMedia( "only all" ).matches;
|
43
|
+
|
44
|
+
//if media queries are supported, exit here
|
45
|
+
if( respond.mediaQueriesSupported ){ return; }
|
46
|
+
|
47
|
+
//define vars
|
48
|
+
var doc = win.document,
|
49
|
+
docElem = doc.documentElement,
|
50
|
+
mediastyles = [],
|
51
|
+
rules = [],
|
52
|
+
appendedEls = [],
|
53
|
+
parsedSheets = {},
|
54
|
+
resizeThrottle = 30,
|
55
|
+
head = doc.getElementsByTagName( "head" )[0] || docElem,
|
56
|
+
base = doc.getElementsByTagName( "base" )[0],
|
57
|
+
links = head.getElementsByTagName( "link" ),
|
58
|
+
requestQueue = [],
|
59
|
+
|
60
|
+
//loop stylesheets, send text content to translate
|
61
|
+
ripCSS = function(){
|
62
|
+
var sheets = links,
|
63
|
+
sl = sheets.length,
|
64
|
+
i = 0,
|
65
|
+
//vars for loop:
|
66
|
+
sheet, href, media, isCSS;
|
67
|
+
|
68
|
+
for( ; i < sl; i++ ){
|
69
|
+
sheet = sheets[ i ],
|
70
|
+
href = sheet.href,
|
71
|
+
media = sheet.media,
|
72
|
+
isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet";
|
73
|
+
|
74
|
+
//only links plz and prevent re-parsing
|
75
|
+
if( !!href && isCSS && !parsedSheets[ href ] ){
|
76
|
+
// selectivizr exposes css through the rawCssText expando
|
77
|
+
if (sheet.styleSheet && sheet.styleSheet.rawCssText) {
|
78
|
+
translate( sheet.styleSheet.rawCssText, href, media );
|
79
|
+
parsedSheets[ href ] = true;
|
80
|
+
} else {
|
81
|
+
if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base)
|
82
|
+
|| href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){
|
83
|
+
requestQueue.push( {
|
84
|
+
href: href,
|
85
|
+
media: media
|
86
|
+
} );
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
makeRequests();
|
92
|
+
},
|
93
|
+
|
94
|
+
//recurse through request queue, get css text
|
95
|
+
makeRequests = function(){
|
96
|
+
if( requestQueue.length ){
|
97
|
+
var thisRequest = requestQueue.shift();
|
98
|
+
|
99
|
+
ajax( thisRequest.href, function( styles ){
|
100
|
+
translate( styles, thisRequest.href, thisRequest.media );
|
101
|
+
parsedSheets[ thisRequest.href ] = true;
|
102
|
+
makeRequests();
|
103
|
+
} );
|
104
|
+
}
|
105
|
+
},
|
106
|
+
|
107
|
+
//find media blocks in css text, convert to style blocks
|
108
|
+
translate = function( styles, href, media ){
|
109
|
+
var qs = styles.match( /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ),
|
110
|
+
ql = qs && qs.length || 0,
|
111
|
+
//try to get CSS path
|
112
|
+
href = href.substring( 0, href.lastIndexOf( "/" )),
|
113
|
+
repUrls = function( css ){
|
114
|
+
return css.replace( /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, "$1" + href + "$2$3" );
|
115
|
+
},
|
116
|
+
useMedia = !ql && media,
|
117
|
+
//vars used in loop
|
118
|
+
i = 0,
|
119
|
+
j, fullq, thisq, eachq, eql;
|
120
|
+
|
121
|
+
//if path exists, tack on trailing slash
|
122
|
+
if( href.length ){ href += "/"; }
|
123
|
+
|
124
|
+
//if no internal queries exist, but media attr does, use that
|
125
|
+
//note: this currently lacks support for situations where a media attr is specified on a link AND
|
126
|
+
//its associated stylesheet has internal CSS media queries.
|
127
|
+
//In those cases, the media attribute will currently be ignored.
|
128
|
+
if( useMedia ){
|
129
|
+
ql = 1;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
for( ; i < ql; i++ ){
|
134
|
+
j = 0;
|
135
|
+
|
136
|
+
//media attr
|
137
|
+
if( useMedia ){
|
138
|
+
fullq = media;
|
139
|
+
rules.push( repUrls( styles ) );
|
140
|
+
}
|
141
|
+
//parse for styles
|
142
|
+
else{
|
143
|
+
fullq = qs[ i ].match( /@media *([^\{]+)\{([\S\s]+?)$/ ) && RegExp.$1;
|
144
|
+
rules.push( RegExp.$2 && repUrls( RegExp.$2 ) );
|
145
|
+
}
|
146
|
+
|
147
|
+
eachq = fullq.split( "," );
|
148
|
+
eql = eachq.length;
|
149
|
+
|
150
|
+
for( ; j < eql; j++ ){
|
151
|
+
thisq = eachq[ j ];
|
152
|
+
mediastyles.push( {
|
153
|
+
media : thisq.split( "(" )[ 0 ].match( /(only\s+)?([a-zA-Z]+)\s?/ ) && RegExp.$2 || "all",
|
154
|
+
rules : rules.length - 1,
|
155
|
+
hasquery: thisq.indexOf("(") > -1,
|
156
|
+
minw : thisq.match( /\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ),
|
157
|
+
maxw : thisq.match( /\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" )
|
158
|
+
} );
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
applyMedia();
|
163
|
+
},
|
164
|
+
|
165
|
+
lastCall,
|
166
|
+
|
167
|
+
resizeDefer,
|
168
|
+
|
169
|
+
// returns the value of 1em in pixels
|
170
|
+
getEmValue = function() {
|
171
|
+
var ret,
|
172
|
+
div = doc.createElement('div'),
|
173
|
+
body = doc.body,
|
174
|
+
fakeUsed = false;
|
175
|
+
|
176
|
+
div.style.cssText = "position:absolute;font-size:1em;width:1em";
|
177
|
+
|
178
|
+
if( !body ){
|
179
|
+
body = fakeUsed = doc.createElement( "body" );
|
180
|
+
body.style.background = "none";
|
181
|
+
}
|
182
|
+
|
183
|
+
body.appendChild( div );
|
184
|
+
|
185
|
+
docElem.insertBefore( body, docElem.firstChild );
|
186
|
+
|
187
|
+
ret = div.offsetWidth;
|
188
|
+
|
189
|
+
if( fakeUsed ){
|
190
|
+
docElem.removeChild( body );
|
191
|
+
}
|
192
|
+
else {
|
193
|
+
body.removeChild( div );
|
194
|
+
}
|
195
|
+
|
196
|
+
//also update eminpx before returning
|
197
|
+
ret = eminpx = parseFloat(ret);
|
198
|
+
|
199
|
+
return ret;
|
200
|
+
},
|
201
|
+
|
202
|
+
//cached container for 1em value, populated the first time it's needed
|
203
|
+
eminpx,
|
204
|
+
|
205
|
+
//enable/disable styles
|
206
|
+
applyMedia = function( fromResize ){
|
207
|
+
var name = "clientWidth",
|
208
|
+
docElemProp = docElem[ name ],
|
209
|
+
currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[ name ] || docElemProp,
|
210
|
+
styleBlocks = {},
|
211
|
+
lastLink = links[ links.length-1 ],
|
212
|
+
now = (new Date()).getTime();
|
213
|
+
|
214
|
+
//throttle resize calls
|
215
|
+
if( fromResize && lastCall && now - lastCall < resizeThrottle ){
|
216
|
+
clearTimeout( resizeDefer );
|
217
|
+
resizeDefer = setTimeout( applyMedia, resizeThrottle );
|
218
|
+
return;
|
219
|
+
}
|
220
|
+
else {
|
221
|
+
lastCall = now;
|
222
|
+
}
|
223
|
+
|
224
|
+
for( var i in mediastyles ){
|
225
|
+
var thisstyle = mediastyles[ i ],
|
226
|
+
min = thisstyle.minw,
|
227
|
+
max = thisstyle.maxw,
|
228
|
+
minnull = min === null,
|
229
|
+
maxnull = max === null,
|
230
|
+
em = "em";
|
231
|
+
|
232
|
+
if( !!min ){
|
233
|
+
min = parseFloat( min ) * ( min.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
|
234
|
+
}
|
235
|
+
if( !!max ){
|
236
|
+
max = parseFloat( max ) * ( max.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
|
237
|
+
}
|
238
|
+
|
239
|
+
// if there's no media query at all (the () part), or min or max is not null, and if either is present, they're true
|
240
|
+
if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){
|
241
|
+
if( !styleBlocks[ thisstyle.media ] ){
|
242
|
+
styleBlocks[ thisstyle.media ] = [];
|
243
|
+
}
|
244
|
+
styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
//remove any existing respond style element(s)
|
249
|
+
for( var i in appendedEls ){
|
250
|
+
if( appendedEls[ i ] && appendedEls[ i ].parentNode === head ){
|
251
|
+
head.removeChild( appendedEls[ i ] );
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
//inject active styles, grouped by media type
|
256
|
+
for( var i in styleBlocks ){
|
257
|
+
var ss = doc.createElement( "style" ),
|
258
|
+
css = styleBlocks[ i ].join( "\n" );
|
259
|
+
|
260
|
+
ss.type = "text/css";
|
261
|
+
ss.media = i;
|
262
|
+
|
263
|
+
//originally, ss was appended to a documentFragment and sheets were appended in bulk.
|
264
|
+
//this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one!
|
265
|
+
head.insertBefore( ss, lastLink.nextSibling );
|
266
|
+
|
267
|
+
if ( ss.styleSheet ){
|
268
|
+
ss.styleSheet.cssText = css;
|
269
|
+
}
|
270
|
+
else {
|
271
|
+
ss.appendChild( doc.createTextNode( css ) );
|
272
|
+
}
|
273
|
+
|
274
|
+
//push to appendedEls to track for later removal
|
275
|
+
appendedEls.push( ss );
|
276
|
+
}
|
277
|
+
},
|
278
|
+
//tweaked Ajax functions from Quirksmode
|
279
|
+
ajax = function( url, callback ) {
|
280
|
+
var req = xmlHttp();
|
281
|
+
if (!req){
|
282
|
+
return;
|
283
|
+
}
|
284
|
+
req.open( "GET", url, true );
|
285
|
+
req.onreadystatechange = function () {
|
286
|
+
if ( req.readyState != 4 || req.status != 200 && req.status != 304 ){
|
287
|
+
return;
|
288
|
+
}
|
289
|
+
callback( req.responseText );
|
290
|
+
}
|
291
|
+
if ( req.readyState == 4 ){
|
292
|
+
return;
|
293
|
+
}
|
294
|
+
req.send( null );
|
295
|
+
},
|
296
|
+
//define ajax obj
|
297
|
+
xmlHttp = (function() {
|
298
|
+
var xmlhttpmethod = false;
|
299
|
+
try {
|
300
|
+
xmlhttpmethod = new XMLHttpRequest();
|
301
|
+
}
|
302
|
+
catch( e ){
|
303
|
+
xmlhttpmethod = new ActiveXObject( "Microsoft.XMLHTTP" );
|
304
|
+
}
|
305
|
+
return function(){
|
306
|
+
return xmlhttpmethod;
|
307
|
+
};
|
308
|
+
})();
|
309
|
+
|
310
|
+
//translate CSS
|
311
|
+
ripCSS();
|
312
|
+
|
313
|
+
//expose update for re-running respond later on
|
314
|
+
respond.update = ripCSS;
|
315
|
+
|
316
|
+
//adjust on resize
|
317
|
+
function callMedia(){
|
318
|
+
applyMedia( true );
|
319
|
+
}
|
320
|
+
if( win.addEventListener ){
|
321
|
+
win.addEventListener( "resize", callMedia, false );
|
322
|
+
}
|
323
|
+
else if( win.attachEvent ){
|
324
|
+
win.attachEvent( "onresize", callMedia );
|
325
|
+
}
|
326
|
+
})(this);
|
@@ -0,0 +1,217 @@
|
|
1
|
+
/* AutoSuggest CSS - Version 1.2 */
|
2
|
+
|
3
|
+
ul.as-selections {
|
4
|
+
list-style-type: none;
|
5
|
+
border-top: 1px solid #888;
|
6
|
+
border-bottom: 1px solid #b6b6b6;
|
7
|
+
border-left: 1px solid #aaa;
|
8
|
+
border-right: 1px solid #aaa;
|
9
|
+
padding: 4px 0 4px 4px;
|
10
|
+
margin: 0;
|
11
|
+
overflow: auto;
|
12
|
+
background-color: #fff;
|
13
|
+
box-shadow:inset 0 1px 2px #888;
|
14
|
+
-webkit-box-shadow:inset 0 1px 2px #888;
|
15
|
+
-moz-box-shadow:inset 0 1px 2px #888;
|
16
|
+
}
|
17
|
+
|
18
|
+
ul.as-selections.loading {
|
19
|
+
background-color: #eee;
|
20
|
+
}
|
21
|
+
|
22
|
+
ul.as-selections li {
|
23
|
+
float: left;
|
24
|
+
margin: 1px 4px 1px 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
ul.as-selections li.as-selection-item {
|
28
|
+
color: #2b3840;
|
29
|
+
font-size: 13px;
|
30
|
+
font-family: "Lucida Grande", arial, sans-serif;
|
31
|
+
text-shadow: 0 1px 1px #fff;
|
32
|
+
background-color: #ddeefe;
|
33
|
+
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ddeefe), to(#bfe0f1));
|
34
|
+
border: 1px solid #acc3ec;
|
35
|
+
border-top-color: #c0d9e9;
|
36
|
+
padding: 2px 7px 2px 10px;
|
37
|
+
border-radius: 12px;
|
38
|
+
-webkit-border-radius: 12px;
|
39
|
+
-moz-border-radius: 12px;
|
40
|
+
box-shadow: 0 1px 1px #e4edf2;
|
41
|
+
-webkit-box-shadow: 0 1px 1px #e4edf2;
|
42
|
+
-moz-box-shadow: 0 1px 1px #e4edf2;
|
43
|
+
}
|
44
|
+
|
45
|
+
ul.as-selections li.as-selection-item:last-child {
|
46
|
+
margin-left: 30px;
|
47
|
+
}
|
48
|
+
|
49
|
+
ul.as-selections li.as-selection-item a.as-close {
|
50
|
+
float: right;
|
51
|
+
margin: 1px 0 0 7px;
|
52
|
+
padding: 0 2px;
|
53
|
+
cursor: pointer;
|
54
|
+
color: #5491be;
|
55
|
+
font-family: "Helvetica", helvetica, arial, sans-serif;
|
56
|
+
font-size: 14px;
|
57
|
+
font-weight: bold;
|
58
|
+
text-shadow: 0 1px 1px #fff;
|
59
|
+
-webkit-transition: color .1s ease-in;
|
60
|
+
}
|
61
|
+
|
62
|
+
ul.as-selections li.as-selection-item.blur {
|
63
|
+
color: #666666;
|
64
|
+
background-color: #f4f4f4;
|
65
|
+
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f4f4f4), to(#d5d5d5));
|
66
|
+
border-color: #bbb;
|
67
|
+
border-top-color: #ccc;
|
68
|
+
box-shadow: 0 1px 1px #e9e9e9;
|
69
|
+
-webkit-box-shadow: 0 1px 1px #e9e9e9;
|
70
|
+
-moz-box-shadow: 0 1px 1px #e9e9e9;
|
71
|
+
}
|
72
|
+
|
73
|
+
ul.as-selections li.as-selection-item.blur a.as-close {
|
74
|
+
color: #999;
|
75
|
+
}
|
76
|
+
|
77
|
+
ul.as-selections li:hover.as-selection-item {
|
78
|
+
color: #2b3840;
|
79
|
+
background-color: #bbd4f1;
|
80
|
+
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#bbd4f1), to(#a3c2e5));
|
81
|
+
border-color: #6da0e0;
|
82
|
+
border-top-color: #8bb7ed;
|
83
|
+
}
|
84
|
+
|
85
|
+
ul.as-selections li:hover.as-selection-item a.as-close {
|
86
|
+
color: #4d70b0;
|
87
|
+
}
|
88
|
+
|
89
|
+
ul.as-selections li.as-selection-item.selected {
|
90
|
+
border-color: #1f30e4;
|
91
|
+
}
|
92
|
+
|
93
|
+
ul.as-selections li.as-selection-item a:hover.as-close {
|
94
|
+
color: #1b3c65;
|
95
|
+
}
|
96
|
+
|
97
|
+
ul.as-selections li.as-selection-item a:active.as-close {
|
98
|
+
color: #4d70b0;
|
99
|
+
}
|
100
|
+
|
101
|
+
ul.as-selections li.as-original {
|
102
|
+
margin-left: 0;
|
103
|
+
}
|
104
|
+
|
105
|
+
ul.as-selections li.as-original input {
|
106
|
+
border: none;
|
107
|
+
outline: none;
|
108
|
+
font-size: 13px;
|
109
|
+
width: 120px;
|
110
|
+
height: 18px;
|
111
|
+
padding-top: 3px;
|
112
|
+
}
|
113
|
+
|
114
|
+
ul.as-list {
|
115
|
+
position: absolute;
|
116
|
+
list-style-type: none;
|
117
|
+
margin: 2px 0 0 0;
|
118
|
+
padding: 0;
|
119
|
+
font-size: 14px;
|
120
|
+
color: #000;
|
121
|
+
font-family: "Lucida Grande", arial, sans-serif;
|
122
|
+
background-color: #fff;
|
123
|
+
background-color: rgba(255,255,255,0.95);
|
124
|
+
z-index: 2;
|
125
|
+
box-shadow: 0 2px 12px #222;
|
126
|
+
-webkit-box-shadow: 0 2px 12px #222;
|
127
|
+
-moz-box-shadow: 0 2px 12px #222;
|
128
|
+
border-radius: 5px;
|
129
|
+
-webkit-border-radius: 5px;
|
130
|
+
-moz-border-radius: 5px;
|
131
|
+
}
|
132
|
+
|
133
|
+
li.as-result-item, li.as-message {
|
134
|
+
margin: 0 0 0 0;
|
135
|
+
padding: 5px 12px;
|
136
|
+
background-color: transparent;
|
137
|
+
border: 1px solid #fff;
|
138
|
+
border-bottom: 1px solid #ddd;
|
139
|
+
cursor: pointer;
|
140
|
+
border-radius: 5px;
|
141
|
+
-webkit-border-radius: 5px;
|
142
|
+
-moz-border-radius: 5px;
|
143
|
+
}
|
144
|
+
|
145
|
+
li:first-child.as-result-item {
|
146
|
+
margin: 0;
|
147
|
+
}
|
148
|
+
|
149
|
+
li.as-message {
|
150
|
+
margin: 0;
|
151
|
+
cursor: default;
|
152
|
+
}
|
153
|
+
|
154
|
+
li.as-result-item.active {
|
155
|
+
background-color: #3668d9;
|
156
|
+
background-image: -webkit-gradient(linear, 0% 0%, 0% 64%, from(rgb(110, 129, 245)), to(rgb(62, 82, 242)));
|
157
|
+
border-color: #3342e8;
|
158
|
+
color: #fff;
|
159
|
+
text-shadow: 0 1px 2px #122042;
|
160
|
+
}
|
161
|
+
|
162
|
+
li.as-result-item em {
|
163
|
+
font-style: normal;
|
164
|
+
background: #444;
|
165
|
+
padding: 0 2px;
|
166
|
+
color: #fff;
|
167
|
+
}
|
168
|
+
|
169
|
+
li.as-result-item.active em {
|
170
|
+
background: #253f7a;
|
171
|
+
color: #fff;
|
172
|
+
}
|
173
|
+
|
174
|
+
/* Webkit Hacks */
|
175
|
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
176
|
+
ul.as-selections {
|
177
|
+
border-top-width: 2px;
|
178
|
+
}
|
179
|
+
ul.as-selections li.as-selection-item {
|
180
|
+
padding-top: 3px;
|
181
|
+
padding-bottom: 3px;
|
182
|
+
}
|
183
|
+
ul.as-selections li.as-selection-item a.as-close {
|
184
|
+
margin-top: -1px;
|
185
|
+
}
|
186
|
+
ul.as-selections li.as-original input {
|
187
|
+
height: 19px;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
/* Opera Hacks */
|
192
|
+
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
|
193
|
+
ul.as-list {
|
194
|
+
border: 1px solid #888;
|
195
|
+
}
|
196
|
+
ul.as-selections li.as-selection-item a.as-close {
|
197
|
+
margin-left: 4px;
|
198
|
+
margin-top: 0;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
/* IE Hacks */
|
203
|
+
ul.as-list {
|
204
|
+
border: 1px solid #888\9;
|
205
|
+
}
|
206
|
+
ul.as-selections li.as-selection-item a.as-close {
|
207
|
+
margin-left: 4px\9;
|
208
|
+
margin-top: 0\9;
|
209
|
+
}
|
210
|
+
|
211
|
+
/* Firefox 3.0 Hacks */
|
212
|
+
ul.as-list, x:-moz-any-link, x:default {
|
213
|
+
border: 1px solid #888;
|
214
|
+
}
|
215
|
+
BODY:first-of-type ul.as-list, x:-moz-any-link, x:default { /* Target FF 3.5+ */
|
216
|
+
border: none;
|
217
|
+
}
|
Binary file
|