pace-rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/app/assets/javascripts/pace/pace.js +149 -70
- data/app/assets/stylesheets/pace/{barber-shop.css → pace-theme-barber-shop.css} +7 -1
- data/app/assets/stylesheets/pace/{big-counter.css → pace-theme-big-counter.css} +2 -1
- data/app/assets/stylesheets/pace/{bounce.css → pace-theme-bounce.css} +1 -0
- data/app/assets/stylesheets/pace/{corner-indicator.css → pace-theme-corner-indicator.css} +2 -1
- data/app/assets/stylesheets/pace/{fill-left.css → pace-theme-fill-left.css} +7 -1
- data/app/assets/stylesheets/pace/{flash.css → pace-theme-flash.css} +7 -1
- data/app/assets/stylesheets/pace/{flat-top.css → pace-theme-flat-top.css} +8 -2
- data/app/assets/stylesheets/pace/{mac-osx.css → pace-theme-mac-osx.css} +9 -1
- data/app/assets/stylesheets/pace/pace-theme-minimal.css +18 -0
- data/lib/pace/rails/version.rb +1 -1
- metadata +12 -12
- data/app/assets/stylesheets/pace/minimal.css +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0080c27396b071b243ce608c2017a676c6ad41f4
|
4
|
+
data.tar.gz: 7bba036f5ba95d784237ef5c2ac289fe35931b18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c5cad1e5fc1d111cc3139a90fa64c4bcd8b23aa92cf45b136f42a8362b420bb1bb5d8342f8e9849138d5ca961b37ad8e40fac0a5eb6a8e37ecc136bd08f72b7
|
7
|
+
data.tar.gz: 2c8a23b7783dec47d256fbc2d5826077267269f0c58d500fc8941b69ab6ca4ce8476db714effc368ef8b7e91a2e071ed8f494cc67d5f0e78c4c406e85776ac64
|
data/README.md
CHANGED
@@ -21,27 +21,27 @@ app/assets/javascripts/application.js
|
|
21
21
|
|
22
22
|
//= require pace/pace
|
23
23
|
|
24
|
-
Pace supports a few themes.
|
24
|
+
Pace supports a few themes, selec one of the following and have fun and create your own.
|
25
25
|
|
26
26
|
app/assets/stylesheets/application.css
|
27
27
|
|
28
|
-
*= require pace/minimal
|
28
|
+
*= require pace/pace-theme-minimal
|
29
29
|
|
30
|
-
*= require pace/flash
|
30
|
+
*= require pace/pace-theme-flash
|
31
31
|
|
32
|
-
*= require pace/barber-shop
|
32
|
+
*= require pace/pace-theme-barber-shop
|
33
33
|
|
34
|
-
*= require pace/mac-osx
|
34
|
+
*= require pace/pace-theme-mac-osx
|
35
35
|
|
36
|
-
*= require pace/fill-left
|
36
|
+
*= require pace/pace-theme-fill-left
|
37
37
|
|
38
|
-
*= require pace/flat-top
|
38
|
+
*= require pace/pace-theme-flat-top
|
39
39
|
|
40
|
-
*= require pace/big-
|
40
|
+
*= require pace/pace-theme-big-counter
|
41
41
|
|
42
|
-
*= require pace/corner-indicator
|
42
|
+
*= require pace/pace-theme-corner-indicator
|
43
43
|
|
44
|
-
*= require pace/bounce
|
44
|
+
*= require pace/pace-theme-bounce
|
45
45
|
|
46
46
|
You may need to restart your rails server.
|
47
47
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
(function() {
|
2
|
-
var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Events, RequestIntercept,
|
2
|
+
var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Events, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNative, firstLoad, getFromDOM, handlePushState, init, intercept, now, options, requestAnimationFrame, result, runAnimation, scalers, sources, uniScaler, _WebSocket, _XDomainRequest, _XMLHttpRequest, _pushState, _replaceState,
|
3
3
|
__slice = [].slice,
|
4
4
|
__hasProp = {}.hasOwnProperty,
|
5
|
-
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }
|
5
|
+
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
6
|
+
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
6
7
|
|
7
8
|
defaultOptions = {
|
8
9
|
catchupTime: 500,
|
@@ -11,13 +12,20 @@
|
|
11
12
|
ghostTime: 250,
|
12
13
|
maxProgressPerFrame: 10,
|
13
14
|
easeFactor: 1.25,
|
15
|
+
startOnPageLoad: true,
|
14
16
|
restartOnPushState: true,
|
17
|
+
restartOnBackboneRoute: true,
|
18
|
+
target: 'body',
|
15
19
|
elements: {
|
16
20
|
checkInterval: 100,
|
17
21
|
selectors: ['body']
|
18
22
|
},
|
19
23
|
eventLag: {
|
20
24
|
minSamples: 10
|
25
|
+
},
|
26
|
+
ajax: {
|
27
|
+
trackMethods: ['GET'],
|
28
|
+
trackWebSockets: true
|
21
29
|
}
|
22
30
|
};
|
23
31
|
|
@@ -119,14 +127,16 @@
|
|
119
127
|
}
|
120
128
|
|
121
129
|
Bar.prototype.getElement = function() {
|
130
|
+
var targetElement;
|
122
131
|
if (this.el == null) {
|
123
132
|
this.el = document.createElement('div');
|
124
133
|
this.el.className = "pace pace-active";
|
125
134
|
this.el.innerHTML = '<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>';
|
126
|
-
|
127
|
-
|
135
|
+
targetElement = document.querySelector(options.target);
|
136
|
+
if (targetElement.firstChild != null) {
|
137
|
+
targetElement.insertBefore(this.el, targetElement.firstChild);
|
128
138
|
} else {
|
129
|
-
|
139
|
+
targetElement.appendChild(this.el);
|
130
140
|
}
|
131
141
|
}
|
132
142
|
return this.el;
|
@@ -151,7 +161,7 @@
|
|
151
161
|
|
152
162
|
Bar.prototype.render = function() {
|
153
163
|
var el, progressStr;
|
154
|
-
if (document.
|
164
|
+
if (document.querySelector(options.target) == null) {
|
155
165
|
return false;
|
156
166
|
}
|
157
167
|
el = this.getElement();
|
@@ -211,38 +221,77 @@
|
|
211
221
|
|
212
222
|
_XDomainRequest = window.XDomainRequest;
|
213
223
|
|
224
|
+
_WebSocket = window.WebSocket;
|
225
|
+
|
226
|
+
extendNative = function(to, from) {
|
227
|
+
var e, key, val, _results;
|
228
|
+
_results = [];
|
229
|
+
for (key in from.prototype) {
|
230
|
+
try {
|
231
|
+
val = from.prototype[key];
|
232
|
+
if ((to[key] == null) && typeof val !== 'function') {
|
233
|
+
_results.push(to[key] = val);
|
234
|
+
} else {
|
235
|
+
_results.push(void 0);
|
236
|
+
}
|
237
|
+
} catch (_error) {
|
238
|
+
e = _error;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
return _results;
|
242
|
+
};
|
243
|
+
|
214
244
|
RequestIntercept = (function(_super) {
|
215
245
|
__extends(RequestIntercept, _super);
|
216
246
|
|
217
247
|
function RequestIntercept() {
|
218
|
-
var
|
248
|
+
var monitorXHR,
|
219
249
|
_this = this;
|
220
250
|
RequestIntercept.__super__.constructor.apply(this, arguments);
|
221
|
-
|
251
|
+
monitorXHR = function(req) {
|
222
252
|
var _open;
|
223
253
|
_open = req.open;
|
224
254
|
return req.open = function(type, url, async) {
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
255
|
+
var _ref;
|
256
|
+
if (_ref = (type != null ? type : 'GET').toUpperCase(), __indexOf.call(options.ajax.trackMethods, _ref) >= 0) {
|
257
|
+
_this.trigger('request', {
|
258
|
+
type: type,
|
259
|
+
url: url,
|
260
|
+
request: req
|
261
|
+
});
|
262
|
+
}
|
230
263
|
return _open.apply(req, arguments);
|
231
264
|
};
|
232
265
|
};
|
233
|
-
window.XMLHttpRequest = function() {
|
266
|
+
window.XMLHttpRequest = function(flags) {
|
234
267
|
var req;
|
235
|
-
req = new _XMLHttpRequest;
|
236
|
-
|
268
|
+
req = new _XMLHttpRequest(flags);
|
269
|
+
monitorXHR(req);
|
237
270
|
return req;
|
238
271
|
};
|
272
|
+
extendNative(window.XMLHttpRequest, _XMLHttpRequest);
|
239
273
|
if (_XDomainRequest != null) {
|
240
274
|
window.XDomainRequest = function() {
|
241
275
|
var req;
|
242
276
|
req = new _XDomainRequest;
|
243
|
-
|
277
|
+
monitorXHR(req);
|
244
278
|
return req;
|
245
279
|
};
|
280
|
+
extendNative(window.XDomainRequest, _XDomainRequest);
|
281
|
+
}
|
282
|
+
if ((_WebSocket != null) && options.ajax.trackWebSockets) {
|
283
|
+
window.WebSocket = function(url, protocols) {
|
284
|
+
var req;
|
285
|
+
req = new _WebSocket(url, protocols);
|
286
|
+
_this.trigger('request', {
|
287
|
+
type: 'socket',
|
288
|
+
url: url,
|
289
|
+
protocols: protocols,
|
290
|
+
request: req
|
291
|
+
});
|
292
|
+
return req;
|
293
|
+
};
|
294
|
+
extendNative(window.WebSocket, _WebSocket);
|
246
295
|
}
|
247
296
|
}
|
248
297
|
|
@@ -256,16 +305,19 @@
|
|
256
305
|
function AjaxMonitor() {
|
257
306
|
var _this = this;
|
258
307
|
this.elements = [];
|
259
|
-
intercept.on('request', function(
|
260
|
-
|
261
|
-
request = _arg.request;
|
262
|
-
return _this.watch(request);
|
308
|
+
intercept.on('request', function() {
|
309
|
+
return _this.watch.apply(_this, arguments);
|
263
310
|
});
|
264
311
|
}
|
265
312
|
|
266
|
-
AjaxMonitor.prototype.watch = function(
|
267
|
-
var tracker;
|
268
|
-
|
313
|
+
AjaxMonitor.prototype.watch = function(_arg) {
|
314
|
+
var request, tracker, type;
|
315
|
+
type = _arg.type, request = _arg.request;
|
316
|
+
if (type === 'socket') {
|
317
|
+
tracker = new SocketRequestTracker(request);
|
318
|
+
} else {
|
319
|
+
tracker = new XHRRequestTracker(request);
|
320
|
+
}
|
269
321
|
return this.elements.push(tracker);
|
270
322
|
};
|
271
323
|
|
@@ -273,53 +325,26 @@
|
|
273
325
|
|
274
326
|
})();
|
275
327
|
|
276
|
-
|
277
|
-
function
|
278
|
-
var
|
328
|
+
XHRRequestTracker = (function() {
|
329
|
+
function XHRRequestTracker(request) {
|
330
|
+
var event, size, _i, _len, _onreadystatechange, _ref,
|
279
331
|
_this = this;
|
280
332
|
this.progress = 0;
|
281
|
-
if (
|
333
|
+
if (window.ProgressEvent != null) {
|
282
334
|
size = null;
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
try {
|
287
|
-
headers = request.getAllResponseHeaders();
|
288
|
-
for (name in headers) {
|
289
|
-
val = headers[name];
|
290
|
-
if (name.toLowerCase() === 'content-length') {
|
291
|
-
size = +val;
|
292
|
-
break;
|
293
|
-
}
|
294
|
-
}
|
295
|
-
} catch (_error) {
|
296
|
-
e = _error;
|
297
|
-
}
|
298
|
-
if (size != null) {
|
299
|
-
try {
|
300
|
-
return _this.progress = request.responseText.length / size;
|
301
|
-
} catch (_error) {
|
302
|
-
e = _error;
|
303
|
-
}
|
335
|
+
request.addEventListener('progress', function(evt) {
|
336
|
+
if (evt.lengthComputable) {
|
337
|
+
return _this.progress = 100 * evt.loaded / evt.total;
|
304
338
|
} else {
|
305
339
|
return _this.progress = _this.progress + (100 - _this.progress) / 2;
|
306
340
|
}
|
307
|
-
};
|
308
|
-
|
309
|
-
_onprogress.apply(null, arguments);
|
310
|
-
}
|
311
|
-
_ref = ['onload', 'onabort', 'ontimeout', 'onerror'];
|
312
|
-
_fn = function() {
|
313
|
-
var fn;
|
314
|
-
fn = request[handler];
|
315
|
-
return request[handler] = function() {
|
316
|
-
_this.progress = 100;
|
317
|
-
return typeof fn === "function" ? fn.apply(null, arguments) : void 0;
|
318
|
-
};
|
319
|
-
};
|
341
|
+
});
|
342
|
+
_ref = ['load', 'abort', 'timeout', 'error'];
|
320
343
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
321
|
-
|
322
|
-
|
344
|
+
event = _ref[_i];
|
345
|
+
request.addEventListener(event, function() {
|
346
|
+
return _this.progress = 100;
|
347
|
+
});
|
323
348
|
}
|
324
349
|
} else {
|
325
350
|
_onreadystatechange = request.onreadystatechange;
|
@@ -335,7 +360,25 @@
|
|
335
360
|
}
|
336
361
|
}
|
337
362
|
|
338
|
-
return
|
363
|
+
return XHRRequestTracker;
|
364
|
+
|
365
|
+
})();
|
366
|
+
|
367
|
+
SocketRequestTracker = (function() {
|
368
|
+
function SocketRequestTracker(request) {
|
369
|
+
var event, _i, _len, _ref,
|
370
|
+
_this = this;
|
371
|
+
this.progress = 0;
|
372
|
+
_ref = ['error', 'open'];
|
373
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
374
|
+
event = _ref[_i];
|
375
|
+
request.addEventListener(event, function() {
|
376
|
+
return _this.progress = 100;
|
377
|
+
});
|
378
|
+
}
|
379
|
+
}
|
380
|
+
|
381
|
+
return SocketRequestTracker;
|
339
382
|
|
340
383
|
})();
|
341
384
|
|
@@ -394,9 +437,9 @@
|
|
394
437
|
};
|
395
438
|
|
396
439
|
function DocumentMonitor() {
|
397
|
-
var _onreadystatechange,
|
440
|
+
var _onreadystatechange, _ref,
|
398
441
|
_this = this;
|
399
|
-
this.progress =
|
442
|
+
this.progress = (_ref = this.states[document.readyState]) != null ? _ref : 100;
|
400
443
|
_onreadystatechange = document.onreadystatechange;
|
401
444
|
document.onreadystatechange = function() {
|
402
445
|
if (_this.states[document.readyState] != null) {
|
@@ -514,6 +557,40 @@
|
|
514
557
|
};
|
515
558
|
}
|
516
559
|
|
560
|
+
firstLoad = true;
|
561
|
+
|
562
|
+
if (options.restartOnBackboneRoute) {
|
563
|
+
setTimeout(function() {
|
564
|
+
if (window.Backbone == null) {
|
565
|
+
return;
|
566
|
+
}
|
567
|
+
return Backbone.history.on('route', function(router, name) {
|
568
|
+
var routeName, rule, _i, _len, _results;
|
569
|
+
if (!(rule = options.restartOnBackboneRoute)) {
|
570
|
+
return;
|
571
|
+
}
|
572
|
+
if (firstLoad) {
|
573
|
+
firstLoad = false;
|
574
|
+
return;
|
575
|
+
}
|
576
|
+
if (typeof rule === 'object') {
|
577
|
+
_results = [];
|
578
|
+
for (_i = 0, _len = rule.length; _i < _len; _i++) {
|
579
|
+
routeName = rule[_i];
|
580
|
+
if (!(routeName === name)) {
|
581
|
+
continue;
|
582
|
+
}
|
583
|
+
Pace.restart();
|
584
|
+
break;
|
585
|
+
}
|
586
|
+
return _results;
|
587
|
+
} else {
|
588
|
+
return Pace.restart();
|
589
|
+
}
|
590
|
+
});
|
591
|
+
}, 0);
|
592
|
+
}
|
593
|
+
|
517
594
|
SOURCE_KEYS = {
|
518
595
|
ajax: AjaxMonitor,
|
519
596
|
elements: ElementMonitor,
|
@@ -523,7 +600,7 @@
|
|
523
600
|
|
524
601
|
(init = function() {
|
525
602
|
var source, type, _i, _j, _len, _len1, _ref, _ref1, _ref2;
|
526
|
-
sources = [];
|
603
|
+
Pace.sources = sources = [];
|
527
604
|
_ref = ['ajax', 'elements', 'document', 'eventLag'];
|
528
605
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
529
606
|
type = _ref[_i];
|
@@ -536,7 +613,7 @@
|
|
536
613
|
source = _ref2[_j];
|
537
614
|
sources.push(new source(options));
|
538
615
|
}
|
539
|
-
bar = new Bar;
|
616
|
+
Pace.bar = bar = new Bar;
|
540
617
|
scalers = [];
|
541
618
|
return uniScaler = new Scaler;
|
542
619
|
})();
|
@@ -612,7 +689,9 @@
|
|
612
689
|
} else if (typeof exports === 'object') {
|
613
690
|
module.exports = Pace;
|
614
691
|
} else {
|
615
|
-
|
692
|
+
if (options.startOnPageLoad) {
|
693
|
+
Pace.start();
|
694
|
+
}
|
616
695
|
}
|
617
696
|
|
618
697
|
}).call(this);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
1
2
|
.pace {
|
2
3
|
-webkit-pointer-events: none;
|
3
4
|
pointer-events: none;
|
@@ -18,6 +19,11 @@
|
|
18
19
|
left: 0;
|
19
20
|
height: 12px;
|
20
21
|
overflow: hidden;
|
22
|
+
|
23
|
+
-webkit-transition: width 1s;
|
24
|
+
-moz-transition: width 1s;
|
25
|
+
-o-transition: width 1s;
|
26
|
+
transition: width 1s;
|
21
27
|
}
|
22
28
|
|
23
29
|
.pace .pace-progress-inner {
|
@@ -63,4 +69,4 @@
|
|
63
69
|
@keyframes pace-stripe-animation {
|
64
70
|
0% { transform: none; transform: none; }
|
65
71
|
100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
|
66
|
-
}
|
72
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
1
2
|
.pace {
|
2
3
|
-webkit-pointer-events: none;
|
3
4
|
pointer-events: none;
|
@@ -27,4 +28,4 @@
|
|
27
28
|
line-height: 1;
|
28
29
|
text-align: right;
|
29
30
|
color: rgba(0, 0, 0, 0.19999999999999996);
|
30
|
-
}
|
31
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
1
2
|
.pace {
|
2
3
|
-webkit-pointer-events: none;
|
3
4
|
pointer-events: none;
|
@@ -66,4 +67,4 @@
|
|
66
67
|
@keyframes pace-rotation {
|
67
68
|
0% { transform: rotate(0deg); }
|
68
69
|
100% { transform: rotate(359deg); }
|
69
|
-
}
|
70
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
1
2
|
.pace {
|
2
3
|
-webkit-pointer-events: none;
|
3
4
|
pointer-events: none;
|
@@ -13,4 +14,9 @@
|
|
13
14
|
top: 0;
|
14
15
|
left: 0;
|
15
16
|
bottom: 0;
|
16
|
-
|
17
|
+
|
18
|
+
-webkit-transition: width 1s;
|
19
|
+
-moz-transition: width 1s;
|
20
|
+
-o-transition: width 1s;
|
21
|
+
transition: width 1s;
|
22
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
1
2
|
.pace {
|
2
3
|
-webkit-pointer-events: none;
|
3
4
|
pointer-events: none;
|
@@ -17,6 +18,11 @@
|
|
17
18
|
top: 0;
|
18
19
|
left: 0;
|
19
20
|
height: 2px;
|
21
|
+
|
22
|
+
-webkit-transition: width 1s;
|
23
|
+
-moz-transition: width 1s;
|
24
|
+
-o-transition: width 1s;
|
25
|
+
transition: width 1s;
|
20
26
|
}
|
21
27
|
|
22
28
|
.pace .pace-progress-inner {
|
@@ -72,4 +78,4 @@
|
|
72
78
|
@keyframes pace-spinner {
|
73
79
|
0% { transform: rotate(0deg); transform: rotate(0deg); }
|
74
80
|
100% { transform: rotate(360deg); transform: rotate(360deg); }
|
75
|
-
}
|
81
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
1
2
|
.pace {
|
2
3
|
-webkit-pointer-events: none;
|
3
4
|
pointer-events: none;
|
@@ -14,10 +15,15 @@
|
|
14
15
|
left: 0;
|
15
16
|
height: 12px;
|
16
17
|
background: #29d;
|
17
|
-
|
18
|
-
transition: transform
|
18
|
+
|
19
|
+
-webkit-transition: -webkit-transform .3s, width 1s;
|
20
|
+
-moz-transition: width 1s;
|
21
|
+
-o-transform: width 1s;
|
22
|
+
transition: transform .3s, width 1s;
|
23
|
+
|
19
24
|
-webkit-transform: translateY(-50px);
|
20
25
|
transform: translateY(-50px);
|
26
|
+
|
21
27
|
pointer-events: none;
|
22
28
|
}
|
23
29
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
1
2
|
.pace {
|
2
3
|
-webkit-pointer-events: none;
|
3
4
|
pointer-events: none;
|
@@ -20,14 +21,21 @@
|
|
20
21
|
left: 0;
|
21
22
|
height: 12px;
|
22
23
|
overflow: hidden;
|
24
|
+
|
23
25
|
-webkit-border-radius: 0 0 4px 0;
|
24
26
|
-moz-border-radius: 0 0 4px 0;
|
25
27
|
-o-border-radius: 0 0 4px 0;
|
26
28
|
border-radius: 0 0 4px 0;
|
29
|
+
|
27
30
|
-webkit-box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
|
28
31
|
-moz-box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
|
29
32
|
-o-box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
|
30
33
|
box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
|
34
|
+
|
35
|
+
-webkit-transition: width 1s;
|
36
|
+
-moz-transition: width 1s;
|
37
|
+
-o-transition: width 1s;
|
38
|
+
transition: width 1s;
|
31
39
|
}
|
32
40
|
|
33
41
|
.pace .pace-progress-inner {
|
@@ -73,4 +81,4 @@
|
|
73
81
|
@keyframes pace-stripe-animation {
|
74
82
|
0% { transform: none; transform: none; }
|
75
83
|
100% { transform: translate(-28px, 0); transform: translate(-28px, 0); }
|
76
|
-
}
|
84
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/* This is a compiled file, you should be editing the file in the templates directory */
|
2
|
+
.pace .pace-progress {
|
3
|
+
background: #29d;
|
4
|
+
position: fixed;
|
5
|
+
z-index: 2000;
|
6
|
+
top: 0;
|
7
|
+
left: 0;
|
8
|
+
height: 2px;
|
9
|
+
|
10
|
+
-webkit-transition: width 1s;
|
11
|
+
-moz-transition: width 1s;
|
12
|
+
-o-transition: width 1s;
|
13
|
+
transition: width 1s;
|
14
|
+
}
|
15
|
+
|
16
|
+
.pace-inactive {
|
17
|
+
display: none;
|
18
|
+
}
|
data/lib/pace/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pace-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Vera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -79,15 +79,15 @@ files:
|
|
79
79
|
- README.md
|
80
80
|
- Rakefile
|
81
81
|
- app/assets/javascripts/pace/pace.js
|
82
|
-
- app/assets/stylesheets/pace/barber-shop.css
|
83
|
-
- app/assets/stylesheets/pace/big-counter.css
|
84
|
-
- app/assets/stylesheets/pace/bounce.css
|
85
|
-
- app/assets/stylesheets/pace/corner-indicator.css
|
86
|
-
- app/assets/stylesheets/pace/fill-left.css
|
87
|
-
- app/assets/stylesheets/pace/flash.css
|
88
|
-
- app/assets/stylesheets/pace/flat-top.css
|
89
|
-
- app/assets/stylesheets/pace/mac-osx.css
|
90
|
-
- app/assets/stylesheets/pace/minimal.css
|
82
|
+
- app/assets/stylesheets/pace/pace-theme-barber-shop.css
|
83
|
+
- app/assets/stylesheets/pace/pace-theme-big-counter.css
|
84
|
+
- app/assets/stylesheets/pace/pace-theme-bounce.css
|
85
|
+
- app/assets/stylesheets/pace/pace-theme-corner-indicator.css
|
86
|
+
- app/assets/stylesheets/pace/pace-theme-fill-left.css
|
87
|
+
- app/assets/stylesheets/pace/pace-theme-flash.css
|
88
|
+
- app/assets/stylesheets/pace/pace-theme-flat-top.css
|
89
|
+
- app/assets/stylesheets/pace/pace-theme-mac-osx.css
|
90
|
+
- app/assets/stylesheets/pace/pace-theme-minimal.css
|
91
91
|
- lib/pace/rails.rb
|
92
92
|
- lib/pace/rails/version.rb
|
93
93
|
- pace-rails.gemspec
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.1.4
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Pace automatic web page progress bar, integrated in Rails assets pipeline.
|