pghero 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pghero might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/app/assets/javascripts/pghero/Chart.bundle.js +14591 -0
- data/app/assets/javascripts/pghero/application.js +141 -0
- data/app/assets/javascripts/pghero/chartkick.js +1396 -0
- data/app/assets/javascripts/pghero/jquery.js +11008 -0
- data/app/assets/javascripts/pghero/jquery.nouislider.min.js +31 -0
- data/app/assets/stylesheets/pghero/application.css +409 -0
- data/app/assets/stylesheets/pghero/jquery.nouislider.css +165 -0
- data/app/views/layouts/pg_hero/application.html.erb +2 -384
- data/app/views/pg_hero/home/_query_stats_slider.html.erb +2 -162
- data/app/views/pg_hero/home/system.html.erb +4 -6
- data/lib/pghero/engine.rb +11 -0
- data/lib/pghero/version.rb +1 -1
- metadata +9 -2
@@ -0,0 +1,31 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
$.Link (part of noUiSlider) - WTFPL */
|
4
|
+
(function(c){function m(a,c,d){if((a[c]||a[d])&&a[c]===a[d])throw Error("(Link) '"+c+"' can't match '"+d+"'.'");}function r(a){void 0===a&&(a={});if("object"!==typeof a)throw Error("(Format) 'format' option must be an object.");var h={};c(u).each(function(c,n){if(void 0===a[n])h[n]=A[c];else if(typeof a[n]===typeof A[c]){if("decimals"===n&&(0>a[n]||7<a[n]))throw Error("(Format) 'format.decimals' option must be between 0 and 7.");h[n]=a[n]}else throw Error("(Format) 'format."+n+"' must be a "+typeof A[c]+
|
5
|
+
".");});m(h,"mark","thousand");m(h,"prefix","negative");m(h,"prefix","negativeBefore");this.r=h}function k(a,h){"object"!==typeof a&&c.error("(Link) Initialize with an object.");return new k.prototype.p(a.target||function(){},a.method,a.format||{},h)}var u="decimals mark thousand prefix postfix encoder decoder negative negativeBefore to from".split(" "),A=[2,".","","","",function(a){return a},function(a){return a},"-","",function(a){return a},function(a){return a}];r.prototype.a=function(a){return this.r[a]};
|
6
|
+
r.prototype.L=function(a){function c(a){return a.split("").reverse().join("")}a=this.a("encoder")(a);var d=this.a("decimals"),n="",k="",m="",r="";0===parseFloat(a.toFixed(d))&&(a="0");0>a&&(n=this.a("negative"),k=this.a("negativeBefore"));a=Math.abs(a).toFixed(d).toString();a=a.split(".");this.a("thousand")?(m=c(a[0]).match(/.{1,3}/g),m=c(m.join(c(this.a("thousand"))))):m=a[0];this.a("mark")&&1<a.length&&(r=this.a("mark")+a[1]);return this.a("to")(k+this.a("prefix")+n+m+r+this.a("postfix"))};r.prototype.w=
|
7
|
+
function(a){function c(a){return a.replace(/[\-\/\\\^$*+?.()|\[\]{}]/g,"\\$&")}var d;if(null===a||void 0===a)return!1;a=this.a("from")(a);a=a.toString();d=a.replace(RegExp("^"+c(this.a("negativeBefore"))),"");a!==d?(a=d,d="-"):d="";a=a.replace(RegExp("^"+c(this.a("prefix"))),"");this.a("negative")&&(d="",a=a.replace(RegExp("^"+c(this.a("negative"))),"-"));a=a.replace(RegExp(c(this.a("postfix"))+"$"),"").replace(RegExp(c(this.a("thousand")),"g"),"").replace(this.a("mark"),".");a=this.a("decoder")(parseFloat(d+
|
8
|
+
a));return isNaN(a)?!1:a};k.prototype.K=function(a,h){this.method=h||"html";this.j=c(a.replace("-tooltip-","")||"<div/>")[0]};k.prototype.H=function(a){this.method="val";this.j=document.createElement("input");this.j.name=a;this.j.type="hidden"};k.prototype.G=function(a){function h(a,c){return[c?null:a,c?a:null]}var d=this;this.method="val";this.target=a.on("change",function(a){d.B.val(h(c(a.target).val(),d.t),{link:d,set:!0})})};k.prototype.p=function(a,h,d,k){this.g=d;this.update=!k;if("string"===
|
9
|
+
typeof a&&0===a.indexOf("-tooltip-"))this.K(a,h);else if("string"===typeof a&&0!==a.indexOf("-"))this.H(a);else if("function"===typeof a)this.target=!1,this.method=a;else{if(a instanceof c||c.zepto&&c.zepto.isZ(a)){if(!h){if(a.is("input, select, textarea")){this.G(a);return}h="html"}if("function"===typeof h||"string"===typeof h&&a[h]){this.method=h;this.target=a;return}}throw new RangeError("(Link) Invalid Link.");}};k.prototype.write=function(a,c,d,k){if(!this.update||!1!==k)if(this.u=a,this.F=a=
|
10
|
+
this.format(a),"function"===typeof this.method)this.method.call(this.target[0]||d[0],a,c,d);else this.target[this.method](a,c,d)};k.prototype.q=function(a){this.g=new r(c.extend({},a,this.g instanceof r?this.g.r:this.g))};k.prototype.J=function(a){this.B=a};k.prototype.I=function(a){this.t=a};k.prototype.format=function(a){return this.g.L(a)};k.prototype.A=function(a){return this.g.w(a)};k.prototype.p.prototype=k.prototype;c.Link=k})(window.jQuery||window.Zepto);/*
|
11
|
+
|
12
|
+
$.fn.noUiSlider - WTFPL - refreshless.com/nouislider/ */
|
13
|
+
(function(c){function m(e){return"number"===typeof e&&!isNaN(e)&&isFinite(e)}function r(e){return c.isArray(e)?e:[e]}function k(e,b){e.addClass(b);setTimeout(function(){e.removeClass(b)},300)}function u(e,b){return 100*b/(e[1]-e[0])}function A(e,b){if(b>=e.d.slice(-1)[0])return 100;for(var a=1,c,f,d;b>=e.d[a];)a++;c=e.d[a-1];f=e.d[a];d=e.c[a-1];c=[c,f];return d+u(c,0>c[0]?b+Math.abs(c[0]):b-c[0])/(100/(e.c[a]-d))}function a(e,b){if(100<=b)return e.d.slice(-1)[0];for(var a=1,c,f,d;b>=e.c[a];)a++;c=
|
14
|
+
e.d[a-1];f=e.d[a];d=e.c[a-1];c=[c,f];return 100/(e.c[a]-d)*(b-d)*(c[1]-c[0])/100+c[0]}function h(a,b){for(var c=1,g;(a.dir?100-b:b)>=a.c[c];)c++;if(a.m)return g=a.c[c-1],c=a.c[c],b-g>(c-g)/2?c:g;a.h[c-1]?(g=a.h[c-1],c=a.c[c-1]+Math.round((b-a.c[c-1])/g)*g):c=b;return c}function d(a,b){if(!m(b))throw Error("noUiSlider: 'step' is not numeric.");a.h[0]=b}function n(a,b){if("object"!==typeof b||c.isArray(b))throw Error("noUiSlider: 'range' is not an object.");if(void 0===b.min||void 0===b.max)throw Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
|
15
|
+
c.each(b,function(b,g){var d;"number"===typeof g&&(g=[g]);if(!c.isArray(g))throw Error("noUiSlider: 'range' contains invalid value.");d="min"===b?0:"max"===b?100:parseFloat(b);if(!m(d)||!m(g[0]))throw Error("noUiSlider: 'range' value isn't numeric.");a.c.push(d);a.d.push(g[0]);d?a.h.push(isNaN(g[1])?!1:g[1]):isNaN(g[1])||(a.h[0]=g[1])});c.each(a.h,function(b,c){if(!c)return!0;a.h[b]=u([a.d[b],a.d[b+1]],c)/(100/(a.c[b+1]-a.c[b]))})}function E(a,b){"number"===typeof b&&(b=[b]);if(!c.isArray(b)||!b.length||
|
16
|
+
2<b.length)throw Error("noUiSlider: 'start' option is incorrect.");a.b=b.length;a.start=b}function I(a,b){a.m=b;if("boolean"!==typeof b)throw Error("noUiSlider: 'snap' option must be a boolean.");}function J(a,b){if("lower"===b&&1===a.b)a.i=1;else if("upper"===b&&1===a.b)a.i=2;else if(!0===b&&2===a.b)a.i=3;else if(!1===b)a.i=0;else throw Error("noUiSlider: 'connect' option doesn't match handle count.");}function D(a,b){switch(b){case "horizontal":a.k=0;break;case "vertical":a.k=1;break;default:throw Error("noUiSlider: 'orientation' option is invalid.");
|
17
|
+
}}function K(a,b){if(2<a.c.length)throw Error("noUiSlider: 'margin' option is only supported on linear sliders.");a.margin=u(a.d,b);if(!m(b))throw Error("noUiSlider: 'margin' option must be numeric.");}function L(a,b){switch(b){case "ltr":a.dir=0;break;case "rtl":a.dir=1;a.i=[0,2,1,3][a.i];break;default:throw Error("noUiSlider: 'direction' option was not recognized.");}}function M(a,b){if("string"!==typeof b)throw Error("noUiSlider: 'behaviour' must be a string containing options.");var c=0<=b.indexOf("snap");
|
18
|
+
a.n={s:0<=b.indexOf("tap")||c,extend:0<=b.indexOf("extend"),v:0<=b.indexOf("drag"),fixed:0<=b.indexOf("fixed"),m:c}}function N(a,b,d){a.o=[b.lower,b.upper];a.g=b.format;c.each(a.o,function(a,e){if(!c.isArray(e))throw Error("noUiSlider: 'serialization."+(a?"upper":"lower")+"' must be an array.");c.each(e,function(){if(!(this instanceof c.Link))throw Error("noUiSlider: 'serialization."+(a?"upper":"lower")+"' can only contain Link instances.");this.I(a);this.J(d);this.q(b.format)})});a.dir&&1<a.b&&a.o.reverse()}
|
19
|
+
function O(a,b){var f={c:[],d:[],h:[!1],margin:0},g;g={step:{e:!1,f:d},start:{e:!0,f:E},connect:{e:!0,f:J},direction:{e:!0,f:L},range:{e:!0,f:n},snap:{e:!1,f:I},orientation:{e:!1,f:D},margin:{e:!1,f:K},behaviour:{e:!0,f:M},serialization:{e:!0,f:N}};a=c.extend({connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},a);a.serialization=c.extend({lower:[],upper:[],format:{}},a.serialization);c.each(g,function(c,d){if(void 0===a[c]){if(d.e)throw Error("noUiSlider: '"+c+"' is required.");
|
20
|
+
return!0}d.f(f,a[c],b)});f.style=f.k?"top":"left";return f}function P(a,b){var d=c("<div><div/></div>").addClass(f[2]),g=["-lower","-upper"];a.dir&&g.reverse();d.children().addClass(f[3]+" "+f[3]+g[b]);return d}function Q(a,b){b.j&&(b=new c.Link({target:c(b.j).clone().appendTo(a),method:b.method,format:b.g},!0));return b}function R(a,b){var d,f=[];for(d=0;d<a.b;d++){var k=f,h=d,m=a.o[d],n=b[d].children(),r=a.g,s=void 0,v=[],s=new c.Link({},!0);s.q(r);v.push(s);for(s=0;s<m.length;s++)v.push(Q(n,m[s]));
|
21
|
+
k[h]=v}return f}function S(a,b,c){switch(a){case 1:b.addClass(f[7]);c[0].addClass(f[6]);break;case 3:c[1].addClass(f[6]);case 2:c[0].addClass(f[7]);case 0:b.addClass(f[6])}}function T(a,b){var c,d=[];for(c=0;c<a.b;c++)d.push(P(a,c).appendTo(b));return d}function U(a,b){b.addClass([f[0],f[8+a.dir],f[4+a.k]].join(" "));return c("<div/>").appendTo(b).addClass(f[1])}function V(d,b,m){function g(){return t[["width","height"][b.k]]()}function n(a){var b,c=[q.val()];for(b=0;b<a.length;b++)q.trigger(a[b],
|
22
|
+
c)}function u(d,p,e){var g=d[0]!==l[0][0]?1:0,H=x[0]+b.margin,k=x[1]-b.margin;e&&1<l.length&&(p=g?Math.max(p,H):Math.min(p,k));100>p&&(p=h(b,p));p=Math.max(Math.min(parseFloat(p.toFixed(7)),100),0);if(p===x[g])return 1===l.length?!1:p===H||p===k?0:!1;d.css(b.style,p+"%");d.is(":first-child")&&d.toggleClass(f[17],50<p);x[g]=p;b.dir&&(p=100-p);c(y[g]).each(function(){this.write(a(b,p),d.children(),q)});return!0}function B(a,b,c){c||k(q,f[14]);u(a,b,!1);n(["slide","set","change"])}function w(a,c,d,e){a=
|
23
|
+
a.replace(/\s/g,".nui ")+".nui";c.on(a,function(a){var c=q.attr("disabled");if(q.hasClass(f[14])||void 0!==c&&null!==c)return!1;a.preventDefault();var c=0===a.type.indexOf("touch"),p=0===a.type.indexOf("mouse"),F=0===a.type.indexOf("pointer"),g,k,l=a;0===a.type.indexOf("MSPointer")&&(F=!0);a.originalEvent&&(a=a.originalEvent);c&&(g=a.changedTouches[0].pageX,k=a.changedTouches[0].pageY);if(p||F)F||void 0!==window.pageXOffset||(window.pageXOffset=document.documentElement.scrollLeft,window.pageYOffset=
|
24
|
+
document.documentElement.scrollTop),g=a.clientX+window.pageXOffset,k=a.clientY+window.pageYOffset;l.C=[g,k];l.cursor=p;a=l;a.l=a.C[b.k];d(a,e)})}function C(a,c){var b=c.b||l,d,e=!1,e=100*(a.l-c.start)/g(),f=b[0][0]!==l[0][0]?1:0;var k=c.D;d=e+k[0];e+=k[1];1<b.length?(0>d&&(e+=Math.abs(d)),100<e&&(d-=e-100),d=[Math.max(Math.min(d,100),0),Math.max(Math.min(e,100),0)]):d=[d,e];e=u(b[0],d[f],1===b.length);1<b.length&&(e=u(b[1],d[f?0:1],!1)||e);e&&n(["slide"])}function s(a){c("."+f[15]).removeClass(f[15]);
|
25
|
+
a.cursor&&c("body").css("cursor","").off(".nui");G.off(".nui");q.removeClass(f[12]);n(["set","change"])}function v(a,b){1===b.b.length&&b.b[0].children().addClass(f[15]);a.stopPropagation();w(z.move,G,C,{start:a.l,b:b.b,D:[x[0],x[l.length-1]]});w(z.end,G,s,null);a.cursor&&(c("body").css("cursor",c(a.target).css("cursor")),1<l.length&&q.addClass(f[12]),c("body").on("selectstart.nui",!1))}function D(a){var d=a.l,e=0;a.stopPropagation();c.each(l,function(){e+=this.offset()[b.style]});e=d<e/2||1===l.length?
|
26
|
+
0:1;d-=t.offset()[b.style];d=100*d/g();B(l[e],d,b.n.m);b.n.m&&v(a,{b:[l[e]]})}function E(a){var c=(a=a.l<t.offset()[b.style])?0:100;a=a?0:l.length-1;B(l[a],c,!1)}var q=c(d),x=[-1,-1],t,y,l;if(q.hasClass(f[0]))throw Error("Slider was already initialized.");t=U(b,q);l=T(b,t);y=R(b,l);S(b.i,q,l);(function(a){var b;if(!a.fixed)for(b=0;b<l.length;b++)w(z.start,l[b].children(),v,{b:[l[b]]});a.s&&w(z.start,t,D,{b:l});a.extend&&(q.addClass(f[16]),a.s&&w(z.start,q,E,{b:l}));a.v&&(b=t.find("."+f[7]).addClass(f[10]),
|
27
|
+
a.fixed&&(b=b.add(t.children().not(b).children())),w(z.start,b,v,{b:l}))})(b.n);d.vSet=function(){var a=Array.prototype.slice.call(arguments,0),d,e,g,h,m,s,t=r(a[0]);"object"===typeof a[1]?(d=a[1].set,e=a[1].link,g=a[1].update,h=a[1].animate):!0===a[1]&&(d=!0);b.dir&&1<b.b&&t.reverse();h&&k(q,f[14]);a=1<l.length?3:1;1===t.length&&(a=1);for(m=0;m<a;m++)h=e||y[m%2][0],h=h.A(t[m%2]),!1!==h&&(h=A(b,h),b.dir&&(h=100-h),!0!==u(l[m%2],h,!0)&&c(y[m%2]).each(function(a){if(!a)return s=this.u,!0;this.write(s,
|
28
|
+
l[m%2].children(),q,g)}));!0===d&&n(["set"]);return this};d.vGet=function(){var a,c=[];for(a=0;a<b.b;a++)c[a]=y[a][0].F;return 1===c.length?c[0]:b.dir?c.reverse():c};d.destroy=function(){c.each(y,function(){c.each(this,function(){this.target&&this.target.off(".nui")})});c(this).off(".nui").removeClass(f.join(" ")).empty();return m};q.val(b.start)}function W(a){if(!this.length)throw Error("noUiSlider: Can't initialize slider on empty selection.");var b=O(a,this);return this.each(function(){V(this,
|
29
|
+
b,a)})}function X(a){return this.each(function(){var b=c(this).val(),d=this.destroy(),f=c.extend({},d,a);c(this).noUiSlider(f);d.start===f.start&&c(this).val(b)})}function B(){return this[0][arguments.length?"vSet":"vGet"].apply(this[0],arguments)}var G=c(document),C=c.fn.val,z=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",
|
30
|
+
end:"mouseup touchend"},f="noUi-target noUi-base noUi-origin noUi-handle noUi-horizontal noUi-vertical noUi-background noUi-connect noUi-ltr noUi-rtl noUi-dragable noUi-state-drag noUi-state-tap noUi-active noUi-extended noUi-stacking".split(" ");c.fn.val=function(){var a=arguments,b=c(this[0]);return arguments.length?this.each(function(){(c(this).hasClass(f[0])?B:C).apply(c(this),a)}):(b.hasClass(f[0])?B:C).call(b)};c.noUiSlider={Link:c.Link};c.fn.noUiSlider=function(a,b){return(b?X:W).call(this,
|
31
|
+
a)}})(window.jQuery||window.Zepto);
|
@@ -0,0 +1,409 @@
|
|
1
|
+
/*
|
2
|
+
*= require ./jquery.nouislider
|
3
|
+
*= require_self
|
4
|
+
*/
|
5
|
+
|
6
|
+
body {
|
7
|
+
margin: 0;
|
8
|
+
padding: 20px;
|
9
|
+
background-color: #eee;
|
10
|
+
}
|
11
|
+
|
12
|
+
body, textarea {
|
13
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
14
|
+
font-size: 14px;
|
15
|
+
line-height: 1.4;
|
16
|
+
color: #333;
|
17
|
+
}
|
18
|
+
|
19
|
+
a, a:visited, a:active {
|
20
|
+
color: #428bca;
|
21
|
+
text-decoration: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
a:hover {
|
25
|
+
text-decoration: underline;
|
26
|
+
}
|
27
|
+
|
28
|
+
table {
|
29
|
+
width: 100%;
|
30
|
+
border-collapse: collapse;
|
31
|
+
border-spacing: 0;
|
32
|
+
margin-bottom: 20px;
|
33
|
+
}
|
34
|
+
|
35
|
+
th {
|
36
|
+
text-align: left;
|
37
|
+
border-bottom: solid 2px #ddd;
|
38
|
+
}
|
39
|
+
|
40
|
+
h1 {
|
41
|
+
margin-top: 0;
|
42
|
+
font-size: 20px;
|
43
|
+
font-weight: bold;
|
44
|
+
}
|
45
|
+
|
46
|
+
h1, p {
|
47
|
+
margin-bottom: 20px;
|
48
|
+
}
|
49
|
+
|
50
|
+
ul {
|
51
|
+
list-style-type: none;
|
52
|
+
padding: 0;
|
53
|
+
margin: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
table td, table th {
|
57
|
+
padding: 8px;
|
58
|
+
}
|
59
|
+
|
60
|
+
td {
|
61
|
+
border-top: solid 1px #ddd;
|
62
|
+
}
|
63
|
+
|
64
|
+
pre {
|
65
|
+
background-color: #eee;
|
66
|
+
padding: 10px;
|
67
|
+
white-space: pre-wrap;
|
68
|
+
word-break: break-word;
|
69
|
+
}
|
70
|
+
|
71
|
+
textarea {
|
72
|
+
width: 100%;
|
73
|
+
height: 100px;
|
74
|
+
border: solid 1px #ddd;
|
75
|
+
padding: 10px;
|
76
|
+
}
|
77
|
+
|
78
|
+
hr {
|
79
|
+
border: none;
|
80
|
+
height: 0;
|
81
|
+
border-top: solid 1px #ddd;
|
82
|
+
margin-bottom: 15px;
|
83
|
+
}
|
84
|
+
|
85
|
+
.container {
|
86
|
+
max-width: 1000px;
|
87
|
+
margin-left: auto;
|
88
|
+
margin-right: auto;
|
89
|
+
}
|
90
|
+
|
91
|
+
.text-muted {
|
92
|
+
color: #999;
|
93
|
+
}
|
94
|
+
|
95
|
+
.text-right {
|
96
|
+
text-align: right;
|
97
|
+
}
|
98
|
+
|
99
|
+
.percent {
|
100
|
+
color: #999;
|
101
|
+
font-size: 12px;
|
102
|
+
margin-left: 6px;
|
103
|
+
}
|
104
|
+
|
105
|
+
.tiny {
|
106
|
+
font-size: 12px;
|
107
|
+
margin-left: 6px;
|
108
|
+
}
|
109
|
+
|
110
|
+
#status, .content, .alert {
|
111
|
+
margin-bottom: 20px;
|
112
|
+
}
|
113
|
+
|
114
|
+
.content {
|
115
|
+
padding: 20px 20px 1px 20px;
|
116
|
+
background-color: #fff;
|
117
|
+
}
|
118
|
+
|
119
|
+
.queries td {
|
120
|
+
vertical-align: middle;
|
121
|
+
}
|
122
|
+
|
123
|
+
#status div {
|
124
|
+
margin-bottom: 0;
|
125
|
+
}
|
126
|
+
|
127
|
+
#slider-container {
|
128
|
+
padding: 6px 140px 20px 140px;
|
129
|
+
}
|
130
|
+
|
131
|
+
.queries-table th a {
|
132
|
+
color: inherit;
|
133
|
+
}
|
134
|
+
|
135
|
+
#slider {
|
136
|
+
margin-bottom: 20px;
|
137
|
+
}
|
138
|
+
|
139
|
+
#range-start {
|
140
|
+
min-height: 20px;
|
141
|
+
}
|
142
|
+
|
143
|
+
#range-end {
|
144
|
+
float: right;
|
145
|
+
}
|
146
|
+
|
147
|
+
.queries-info {
|
148
|
+
text-align: center;
|
149
|
+
margin-top: 40px;
|
150
|
+
}
|
151
|
+
|
152
|
+
/* nav */
|
153
|
+
|
154
|
+
.nav a {
|
155
|
+
color: #333;
|
156
|
+
text-decoration: none;
|
157
|
+
display: block;
|
158
|
+
padding: 12px 20px;
|
159
|
+
}
|
160
|
+
|
161
|
+
.nav li.active a {
|
162
|
+
background-color: #ddd;
|
163
|
+
}
|
164
|
+
|
165
|
+
.nav a:hover {
|
166
|
+
background-color: #ddd;
|
167
|
+
}
|
168
|
+
|
169
|
+
.nav li.active-database a {
|
170
|
+
color: #999;
|
171
|
+
}
|
172
|
+
|
173
|
+
.nav-header {
|
174
|
+
font-weight: bold;
|
175
|
+
color: #333;
|
176
|
+
padding: 12px 20px 12px 0;
|
177
|
+
margin: 0;
|
178
|
+
}
|
179
|
+
|
180
|
+
/* buttons */
|
181
|
+
|
182
|
+
.btn {
|
183
|
+
display: inline-block;
|
184
|
+
border: none;
|
185
|
+
color: #fff;
|
186
|
+
padding: 12px 20px;
|
187
|
+
font-size: inherit;
|
188
|
+
font-family: inherit;
|
189
|
+
line-height: 1;
|
190
|
+
cursor: pointer;
|
191
|
+
outline: none;
|
192
|
+
margin: 0;
|
193
|
+
-webkit-appearance: none;
|
194
|
+
-webkit-border-radius: 0;
|
195
|
+
}
|
196
|
+
|
197
|
+
.btn-danger {
|
198
|
+
background-color: #d9534f;
|
199
|
+
}
|
200
|
+
|
201
|
+
.btn-info {
|
202
|
+
background-color: #5bc0de;
|
203
|
+
}
|
204
|
+
|
205
|
+
/* alerts */
|
206
|
+
|
207
|
+
.alert {
|
208
|
+
padding: 12px 20px;
|
209
|
+
color: #fff;
|
210
|
+
}
|
211
|
+
|
212
|
+
.alert-info {
|
213
|
+
background-color: #5bc0de;
|
214
|
+
}
|
215
|
+
|
216
|
+
.alert-success {
|
217
|
+
background-color: #5cb85c;
|
218
|
+
}
|
219
|
+
|
220
|
+
.alert-warning {
|
221
|
+
background-color: #f0ad4e;
|
222
|
+
}
|
223
|
+
|
224
|
+
.alert-danger {
|
225
|
+
background-color: #d9534f;
|
226
|
+
}
|
227
|
+
|
228
|
+
.alert a {
|
229
|
+
color: #fff;
|
230
|
+
text-decoration: none;
|
231
|
+
}
|
232
|
+
|
233
|
+
.button_to, .button_to div {
|
234
|
+
display: inline;
|
235
|
+
}
|
236
|
+
|
237
|
+
/*
|
238
|
+
Simple Grid
|
239
|
+
Learn More - http://dallasbass.com/simple-grid-a-lightweight-responsive-css-grid/
|
240
|
+
Project Page - http://thisisdallas.github.com/Simple-Grid/
|
241
|
+
Author - Dallas Bass
|
242
|
+
Site - dallasbass.com
|
243
|
+
*/
|
244
|
+
|
245
|
+
*, *:after, *:before {
|
246
|
+
-webkit-box-sizing: border-box;
|
247
|
+
-moz-box-sizing: border-box;
|
248
|
+
box-sizing: border-box;
|
249
|
+
}
|
250
|
+
|
251
|
+
body {
|
252
|
+
margin: 0px;
|
253
|
+
}
|
254
|
+
|
255
|
+
[class*='col-'] {
|
256
|
+
float: left;
|
257
|
+
padding-right: 20px;
|
258
|
+
}
|
259
|
+
|
260
|
+
[class*='col-']:last-of-type {
|
261
|
+
padding-right: 0px;
|
262
|
+
}
|
263
|
+
|
264
|
+
.grid {
|
265
|
+
width: 100%;
|
266
|
+
|
267
|
+
margin: 0 auto;
|
268
|
+
overflow: hidden;
|
269
|
+
}
|
270
|
+
|
271
|
+
.grid:after {
|
272
|
+
content: "";
|
273
|
+
display: table;
|
274
|
+
clear: both;
|
275
|
+
}
|
276
|
+
|
277
|
+
.grid-pad {
|
278
|
+
padding: 20px 0 0px 20px;
|
279
|
+
}
|
280
|
+
|
281
|
+
.grid-pad > [class*='col-']:last-of-type {
|
282
|
+
padding-right: 20px;
|
283
|
+
}
|
284
|
+
|
285
|
+
.push-right {
|
286
|
+
float: right;
|
287
|
+
}
|
288
|
+
|
289
|
+
/* Content Columns */
|
290
|
+
|
291
|
+
.col-1-1 {
|
292
|
+
width: 100%;
|
293
|
+
}
|
294
|
+
.col-2-3, .col-8-12 {
|
295
|
+
width: 66.66%;
|
296
|
+
}
|
297
|
+
|
298
|
+
.col-1-2, .col-6-12 {
|
299
|
+
width: 50%;
|
300
|
+
}
|
301
|
+
|
302
|
+
.col-1-3, .col-4-12 {
|
303
|
+
width: 33.33%;
|
304
|
+
}
|
305
|
+
|
306
|
+
.col-1-4, .col-3-12 {
|
307
|
+
width: 25%;
|
308
|
+
}
|
309
|
+
|
310
|
+
.col-1-5 {
|
311
|
+
width: 20%;
|
312
|
+
}
|
313
|
+
|
314
|
+
.col-1-6, .col-2-12 {
|
315
|
+
width: 16.667%;
|
316
|
+
}
|
317
|
+
|
318
|
+
.col-1-7 {
|
319
|
+
width: 14.28%;
|
320
|
+
}
|
321
|
+
|
322
|
+
.col-1-8 {
|
323
|
+
width: 12.5%;
|
324
|
+
}
|
325
|
+
|
326
|
+
.col-1-9 {
|
327
|
+
width: 11.1%;
|
328
|
+
}
|
329
|
+
|
330
|
+
.col-1-10 {
|
331
|
+
width: 10%;
|
332
|
+
}
|
333
|
+
|
334
|
+
.col-1-11 {
|
335
|
+
width: 9.09%;
|
336
|
+
}
|
337
|
+
|
338
|
+
.col-1-12 {
|
339
|
+
width: 8.33%
|
340
|
+
}
|
341
|
+
|
342
|
+
/* Layout Columns */
|
343
|
+
|
344
|
+
.col-11-12 {
|
345
|
+
width: 91.66%
|
346
|
+
}
|
347
|
+
|
348
|
+
.col-10-12 {
|
349
|
+
width: 83.333%;
|
350
|
+
}
|
351
|
+
|
352
|
+
.col-9-12 {
|
353
|
+
width: 75%;
|
354
|
+
}
|
355
|
+
|
356
|
+
.col-5-12 {
|
357
|
+
width: 41.66%;
|
358
|
+
}
|
359
|
+
|
360
|
+
.col-7-12 {
|
361
|
+
width: 58.33%
|
362
|
+
}
|
363
|
+
|
364
|
+
@media handheld, only screen and (max-width: 767px) {
|
365
|
+
|
366
|
+
|
367
|
+
.grid {
|
368
|
+
width: 100%;
|
369
|
+
min-width: 0;
|
370
|
+
margin-left: 0px;
|
371
|
+
margin-right: 0px;
|
372
|
+
padding-left: 0px;
|
373
|
+
padding-right: 0px;
|
374
|
+
}
|
375
|
+
|
376
|
+
[class*='col-'] {
|
377
|
+
width: auto;
|
378
|
+
float: none;
|
379
|
+
margin-left: 0px;
|
380
|
+
margin-right: 0px;
|
381
|
+
margin-top: 10px;
|
382
|
+
margin-bottom: 10px;
|
383
|
+
padding-right: 0px;
|
384
|
+
padding-left: 0px;
|
385
|
+
}
|
386
|
+
}
|
387
|
+
|
388
|
+
.noUi-connect {
|
389
|
+
box-shadow: none;
|
390
|
+
background: #5bc0de;
|
391
|
+
}
|
392
|
+
|
393
|
+
.noUi-handle {
|
394
|
+
box-shadow: none;
|
395
|
+
}
|
396
|
+
|
397
|
+
.noUi-target {
|
398
|
+
box-shadow: none;
|
399
|
+
border-color: #eee;
|
400
|
+
}
|
401
|
+
|
402
|
+
.noUi-background {
|
403
|
+
box-shadow: none;
|
404
|
+
background-color: #eee;
|
405
|
+
}
|
406
|
+
|
407
|
+
.noUi-origin {
|
408
|
+
border-radius: 0;
|
409
|
+
}
|
@@ -0,0 +1,165 @@
|
|
1
|
+
|
2
|
+
/* Functional styling;
|
3
|
+
* These styles are required for noUiSlider to function.
|
4
|
+
* You don't need to change these rules to apply your design.
|
5
|
+
*/
|
6
|
+
.noUi-target,
|
7
|
+
.noUi-target * {
|
8
|
+
-webkit-touch-callout: none;
|
9
|
+
-webkit-user-select: none;
|
10
|
+
-ms-touch-action: none;
|
11
|
+
-ms-user-select: none;
|
12
|
+
-moz-user-select: none;
|
13
|
+
-moz-box-sizing: border-box;
|
14
|
+
box-sizing: border-box;
|
15
|
+
}
|
16
|
+
.noUi-base {
|
17
|
+
width: 100%;
|
18
|
+
height: 100%;
|
19
|
+
position: relative;
|
20
|
+
}
|
21
|
+
.noUi-origin {
|
22
|
+
position: absolute;
|
23
|
+
right: 0;
|
24
|
+
top: 0;
|
25
|
+
left: 0;
|
26
|
+
bottom: 0;
|
27
|
+
}
|
28
|
+
.noUi-handle {
|
29
|
+
position: relative;
|
30
|
+
z-index: 1;
|
31
|
+
}
|
32
|
+
.noUi-stacking .noUi-handle {
|
33
|
+
/* This class is applied to the lower origin when
|
34
|
+
its values is > 50%. */
|
35
|
+
z-index: 10;
|
36
|
+
}
|
37
|
+
.noUi-stacking + .noUi-origin {
|
38
|
+
/* Fix stacking order in IE7, which incorrectly
|
39
|
+
creates a new context for the origins. */
|
40
|
+
*z-index: -1;
|
41
|
+
}
|
42
|
+
.noUi-state-tap .noUi-origin {
|
43
|
+
-webkit-transition: left 0.3s, top 0.3s;
|
44
|
+
transition: left 0.3s, top 0.3s;
|
45
|
+
}
|
46
|
+
.noUi-state-drag * {
|
47
|
+
cursor: inherit !important;
|
48
|
+
}
|
49
|
+
|
50
|
+
/* Slider size and handle placement;
|
51
|
+
*/
|
52
|
+
.noUi-horizontal {
|
53
|
+
height: 18px;
|
54
|
+
}
|
55
|
+
.noUi-horizontal .noUi-handle {
|
56
|
+
width: 34px;
|
57
|
+
height: 28px;
|
58
|
+
left: -17px;
|
59
|
+
top: -6px;
|
60
|
+
}
|
61
|
+
.noUi-horizontal.noUi-extended {
|
62
|
+
padding: 0 15px;
|
63
|
+
}
|
64
|
+
.noUi-horizontal.noUi-extended .noUi-origin {
|
65
|
+
right: -15px;
|
66
|
+
}
|
67
|
+
.noUi-vertical {
|
68
|
+
width: 18px;
|
69
|
+
}
|
70
|
+
.noUi-vertical .noUi-handle {
|
71
|
+
width: 28px;
|
72
|
+
height: 34px;
|
73
|
+
left: -6px;
|
74
|
+
top: -17px;
|
75
|
+
}
|
76
|
+
.noUi-vertical.noUi-extended {
|
77
|
+
padding: 15px 0;
|
78
|
+
}
|
79
|
+
.noUi-vertical.noUi-extended .noUi-origin {
|
80
|
+
bottom: -15px;
|
81
|
+
}
|
82
|
+
|
83
|
+
/* Styling;
|
84
|
+
*/
|
85
|
+
.noUi-background {
|
86
|
+
background: #FAFAFA;
|
87
|
+
box-shadow: inset 0 1px 1px #f0f0f0;
|
88
|
+
}
|
89
|
+
.noUi-connect {
|
90
|
+
background: #3FB8AF;
|
91
|
+
box-shadow: inset 0 0 3px rgba(51,51,51,0.45);
|
92
|
+
-webkit-transition: background 450ms;
|
93
|
+
transition: background 450ms;
|
94
|
+
}
|
95
|
+
.noUi-origin {
|
96
|
+
border-radius: 2px;
|
97
|
+
}
|
98
|
+
.noUi-target {
|
99
|
+
border-radius: 4px;
|
100
|
+
border: 1px solid #D3D3D3;
|
101
|
+
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
|
102
|
+
}
|
103
|
+
.noUi-target.noUi-connect {
|
104
|
+
box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB;
|
105
|
+
}
|
106
|
+
|
107
|
+
/* Handles and cursors;
|
108
|
+
*/
|
109
|
+
.noUi-dragable {
|
110
|
+
cursor: w-resize;
|
111
|
+
}
|
112
|
+
.noUi-vertical .noUi-dragable {
|
113
|
+
cursor: n-resize;
|
114
|
+
}
|
115
|
+
.noUi-handle {
|
116
|
+
border: 1px solid #D9D9D9;
|
117
|
+
border-radius: 3px;
|
118
|
+
background: #FFF;
|
119
|
+
cursor: default;
|
120
|
+
box-shadow: inset 0 0 1px #FFF,
|
121
|
+
inset 0 1px 7px #EBEBEB,
|
122
|
+
0 3px 6px -3px #BBB;
|
123
|
+
}
|
124
|
+
.noUi-active {
|
125
|
+
box-shadow: inset 0 0 1px #FFF,
|
126
|
+
inset 0 1px 7px #DDD,
|
127
|
+
0 3px 6px -3px #BBB;
|
128
|
+
}
|
129
|
+
|
130
|
+
/* Handle stripes;
|
131
|
+
*/
|
132
|
+
.noUi-handle:before,
|
133
|
+
.noUi-handle:after {
|
134
|
+
content: "";
|
135
|
+
display: block;
|
136
|
+
position: absolute;
|
137
|
+
height: 14px;
|
138
|
+
width: 1px;
|
139
|
+
background: #E8E7E6;
|
140
|
+
left: 14px;
|
141
|
+
top: 6px;
|
142
|
+
}
|
143
|
+
.noUi-handle:after {
|
144
|
+
left: 17px;
|
145
|
+
}
|
146
|
+
.noUi-vertical .noUi-handle:before,
|
147
|
+
.noUi-vertical .noUi-handle:after {
|
148
|
+
width: 14px;
|
149
|
+
height: 1px;
|
150
|
+
left: 6px;
|
151
|
+
top: 14px;
|
152
|
+
}
|
153
|
+
.noUi-vertical .noUi-handle:after {
|
154
|
+
top: 17px;
|
155
|
+
}
|
156
|
+
|
157
|
+
/* Disabled state;
|
158
|
+
*/
|
159
|
+
[disabled].noUi-connect,
|
160
|
+
[disabled] .noUi-connect {
|
161
|
+
background: #B8B8B8;
|
162
|
+
}
|
163
|
+
[disabled] .noUi-handle {
|
164
|
+
cursor: not-allowed;
|
165
|
+
}
|