bitsnote-assets 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/app/assets/javascripts/daterangepicker/daterangepicker.js +1113 -0
- data/app/assets/stylesheets/daterangepicker/daterangepicker.css +284 -0
- data/lib/bitsnote-assets.rb +1 -24
- data/lib/bitsnote-assets/version.rb +1 -1
- metadata +4 -22
- data/app/assets/javascripts/pickadate/picker.date.js +0 -1349
- data/app/assets/javascripts/pickadate/picker.date.min.js +0 -5
- data/app/assets/javascripts/pickadate/picker.js +0 -1078
- data/app/assets/javascripts/pickadate/picker.min.js +0 -7
- data/app/assets/javascripts/pickadate/picker.time.js +0 -1014
- data/app/assets/javascripts/pickadate/picker.time.min.js +0 -5
- data/app/assets/stylesheets/pickadate/classic.css +0 -109
- data/app/assets/stylesheets/pickadate/classic.date.css +0 -301
- data/app/assets/stylesheets/pickadate/classic.date.min.css +0 -1
- data/app/assets/stylesheets/pickadate/classic.min.css +0 -4
- data/app/assets/stylesheets/pickadate/classic.time.css +0 -131
- data/app/assets/stylesheets/pickadate/classic.time.min.css +0 -1
- data/app/assets/stylesheets/pickadate/default.css +0 -175
- data/app/assets/stylesheets/pickadate/default.date.css +0 -301
- data/app/assets/stylesheets/pickadate/default.date.min.css +0 -1
- data/app/assets/stylesheets/pickadate/default.min.css +0 -4
- data/app/assets/stylesheets/pickadate/default.time.css +0 -125
- data/app/assets/stylesheets/pickadate/default.time.min.css +0 -1
- data/app/assets/stylesheets/pickadate/rtl.css +0 -29
- data/app/assets/stylesheets/pickadate/rtl.min.css +0 -3
@@ -1,5 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Time picker for pickadate.js v3.5.3
|
3
|
-
* http://amsul.github.io/pickadate.js/time.htm
|
4
|
-
*/
|
5
|
-
!function(a){"function"==typeof define&&define.amd?define(["picker","jquery"],a):"object"==typeof exports?module.exports=a(require("./picker.js"),require("jquery")):a(Picker,jQuery)}(function(a,b){function c(a,b){var c=this,d=a.$node[0].value,e=a.$node.data("value"),f=e||d,g=e?b.formatSubmit:b.format;c.settings=b,c.$node=a.$node,c.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},c.item={},c.item.clear=null,c.item.interval=b.interval||30,c.item.disable=(b.disable||[]).slice(0),c.item.enable=-function(a){return a[0]===!0?a.shift():-1}(c.item.disable),c.set("min",b.min).set("max",b.max).set("now"),f?c.set("select",f,{format:g,fromValue:!!d}):c.set("select",null).set("highlight",c.item.now),c.key={40:1,38:-1,39:1,37:-1,go:function(a){c.set("highlight",c.item.highlight.pick+a*c.item.interval,{interval:a*c.item.interval}),this.render()}},a.on("render",function(){var c=a.$root.children(),d=c.find("."+b.klass.viewset),e=function(a){return["webkit","moz","ms","o",""].map(function(b){return(b?"-"+b+"-":"")+a})},f=function(a,b){e("transform").map(function(c){a.css(c,b)}),e("transition").map(function(c){a.css(c,b)})};d.length&&(f(c,"none"),c[0].scrollTop=~~d.position().top-2*d[0].clientHeight,f(c,""))},1).on("open",function(){a.$root.find("button").attr("disabled",!1)},1).on("close",function(){a.$root.find("button").attr("disabled",!0)},1)}var d=24,e=60,f=12,g=d*e,h=a._;c.prototype.set=function(a,b,c){var d=this,e=d.item;return null===b?("clear"==a&&(a="select"),e[a]=b,d):(e["enable"==a?"disable":"flip"==a?"enable":a]=d.queue[a].split(" ").map(function(e){return b=d[e](a,b,c)}).pop(),"select"==a?d.set("highlight",e.select,c):"highlight"==a?d.set("view",e.highlight,c):"interval"==a?d.set("min",e.min,c).set("max",e.max,c):a.match(/^(flip|min|max|disable|enable)$/)&&("min"==a&&d.set("max",e.max,c),e.select&&d.disabled(e.select)&&d.set("select",e.select,c),e.highlight&&d.disabled(e.highlight)&&d.set("highlight",e.highlight,c)),d)},c.prototype.get=function(a){return this.item[a]},c.prototype.create=function(a,c,f){var i=this;return c=void 0===c?a:c,h.isDate(c)&&(c=[c.getHours(),c.getMinutes()]),b.isPlainObject(c)&&h.isInteger(c.pick)?c=c.pick:b.isArray(c)?c=+c[0]*e+ +c[1]:h.isInteger(c)||(c=i.now(a,c,f)),"max"==a&&c<i.item.min.pick&&(c+=g),"min"!=a&&"max"!=a&&(c-i.item.min.pick)%i.item.interval!==0&&(c+=i.item.interval),c=i.normalize(a,c,f),{hour:~~(d+c/e)%d,mins:(e+c%e)%e,time:(g+c)%g,pick:c}},c.prototype.createRange=function(a,c){var d=this,e=function(a){return a===!0||b.isArray(a)||h.isDate(a)?d.create(a):a};return h.isInteger(a)||(a=e(a)),h.isInteger(c)||(c=e(c)),h.isInteger(a)&&b.isPlainObject(c)?a=[c.hour,c.mins+a*d.settings.interval]:h.isInteger(c)&&b.isPlainObject(a)&&(c=[a.hour,a.mins+c*d.settings.interval]),{from:e(a),to:e(c)}},c.prototype.withinRange=function(a,b){return a=this.createRange(a.from,a.to),b.pick>=a.from.pick&&b.pick<=a.to.pick},c.prototype.overlapRanges=function(a,b){var c=this;return a=c.createRange(a.from,a.to),b=c.createRange(b.from,b.to),c.withinRange(a,b.from)||c.withinRange(a,b.to)||c.withinRange(b,a.from)||c.withinRange(b,a.to)},c.prototype.now=function(a,b){var c,d=this.item.interval,f=new Date,g=f.getHours()*e+f.getMinutes(),i=h.isInteger(b);return g-=g%d,c=0>b&&-d>=d*b+g,g+="min"==a&&c?0:d,i&&(g+=d*(c&&"max"!=a?b+1:b)),g},c.prototype.normalize=function(a,b){var c=this.item.interval,d=this.item.min&&this.item.min.pick||0;return b-="min"==a?0:(b-d)%c},c.prototype.measure=function(a,c,f){var g=this;return c||(c="min"==a?[0,0]:[d-1,e-1]),"string"==typeof c?c=g.parse(a,c):c===!0||h.isInteger(c)?c=g.now(a,c,f):b.isPlainObject(c)&&h.isInteger(c.pick)&&(c=g.normalize(a,c.pick,f)),c},c.prototype.validate=function(a,b,c){var d=this,e=c&&c.interval?c.interval:d.item.interval;return d.disabled(b)&&(b=d.shift(b,e)),b=d.scope(b),d.disabled(b)&&(b=d.shift(b,-1*e)),b},c.prototype.disabled=function(a){var c=this,d=c.item.disable.filter(function(d){return h.isInteger(d)?a.hour==d:b.isArray(d)||h.isDate(d)?a.pick==c.create(d).pick:b.isPlainObject(d)?c.withinRange(d,a):void 0});return d=d.length&&!d.filter(function(a){return b.isArray(a)&&"inverted"==a[2]||b.isPlainObject(a)&&a.inverted}).length,-1===c.item.enable?!d:d||a.pick<c.item.min.pick||a.pick>c.item.max.pick},c.prototype.shift=function(a,b){var c=this,d=c.item.min.pick,e=c.item.max.pick;for(b=b||c.item.interval;c.disabled(a)&&(a=c.create(a.pick+=b),!(a.pick<=d||a.pick>=e)););return a},c.prototype.scope=function(a){var b=this.item.min.pick,c=this.item.max.pick;return this.create(a.pick>c?c:a.pick<b?b:a)},c.prototype.parse=function(a,b,c){var d,f,g,i,j,k=this,l={};if(!b||"string"!=typeof b)return b;c&&c.format||(c=c||{},c.format=k.settings.format),k.formats.toArray(c.format).map(function(a){var c,d=k.formats[a],e=d?h.trigger(d,k,[b,l]):a.replace(/^!/,"").length;d&&(c=b.substr(0,e),l[a]=c.match(/^\d+$/)?+c:c),b=b.substr(e)});for(i in l)j=l[i],h.isInteger(j)?i.match(/^(h|hh)$/i)?(d=j,("h"==i||"hh"==i)&&(d%=12)):"i"==i&&(f=j):i.match(/^a$/i)&&j.match(/^p/i)&&("h"in l||"hh"in l)&&(g=!0);return(g?d+12:d)*e+f},c.prototype.formats={h:function(a,b){return a?h.digits(a):b.hour%f||f},hh:function(a,b){return a?2:h.lead(b.hour%f||f)},H:function(a,b){return a?h.digits(a):""+b.hour%24},HH:function(a,b){return a?h.digits(a):h.lead(b.hour%24)},i:function(a,b){return a?2:h.lead(b.mins)},a:function(a,b){return a?4:g/2>b.time%g?"a.m.":"p.m."},A:function(a,b){return a?2:g/2>b.time%g?"AM":"PM"},toArray:function(a){return a.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(a,b){var c=this;return c.formats.toArray(a).map(function(a){return h.trigger(c.formats[a],c,[0,b])||a.replace(/^!/,"")}).join("")}},c.prototype.isTimeExact=function(a,c){var d=this;return h.isInteger(a)&&h.isInteger(c)||"boolean"==typeof a&&"boolean"==typeof c?a===c:(h.isDate(a)||b.isArray(a))&&(h.isDate(c)||b.isArray(c))?d.create(a).pick===d.create(c).pick:b.isPlainObject(a)&&b.isPlainObject(c)?d.isTimeExact(a.from,c.from)&&d.isTimeExact(a.to,c.to):!1},c.prototype.isTimeOverlap=function(a,c){var d=this;return h.isInteger(a)&&(h.isDate(c)||b.isArray(c))?a===d.create(c).hour:h.isInteger(c)&&(h.isDate(a)||b.isArray(a))?c===d.create(a).hour:b.isPlainObject(a)&&b.isPlainObject(c)?d.overlapRanges(a,c):!1},c.prototype.flipEnable=function(a){var b=this.item;b.enable=a||(-1==b.enable?1:-1)},c.prototype.deactivate=function(a,c){var d=this,e=d.item.disable.slice(0);return"flip"==c?d.flipEnable():c===!1?(d.flipEnable(1),e=[]):c===!0?(d.flipEnable(-1),e=[]):c.map(function(a){for(var c,f=0;f<e.length;f+=1)if(d.isTimeExact(a,e[f])){c=!0;break}c||(h.isInteger(a)||h.isDate(a)||b.isArray(a)||b.isPlainObject(a)&&a.from&&a.to)&&e.push(a)}),e},c.prototype.activate=function(a,c){var d=this,e=d.item.disable,f=e.length;return"flip"==c?d.flipEnable():c===!0?(d.flipEnable(1),e=[]):c===!1?(d.flipEnable(-1),e=[]):c.map(function(a){var c,g,i,j;for(i=0;f>i;i+=1){if(g=e[i],d.isTimeExact(g,a)){c=e[i]=null,j=!0;break}if(d.isTimeOverlap(g,a)){b.isPlainObject(a)?(a.inverted=!0,c=a):b.isArray(a)?(c=a,c[2]||c.push("inverted")):h.isDate(a)&&(c=[a.getFullYear(),a.getMonth(),a.getDate(),"inverted"]);break}}if(c)for(i=0;f>i;i+=1)if(d.isTimeExact(e[i],a)){e[i]=null;break}if(j)for(i=0;f>i;i+=1)if(d.isTimeOverlap(e[i],a)){e[i]=null;break}c&&e.push(c)}),e.filter(function(a){return null!=a})},c.prototype.i=function(a,b){return h.isInteger(b)&&b>0?b:this.item.interval},c.prototype.nodes=function(a){var b=this,c=b.settings,d=b.item.select,e=b.item.highlight,f=b.item.view,g=b.item.disable;return h.node("ul",h.group({min:b.item.min.pick,max:b.item.max.pick,i:b.item.interval,node:"li",item:function(a){a=b.create(a);var i=a.pick,j=d&&d.pick==i,k=e&&e.pick==i,l=g&&b.disabled(a);return[h.trigger(b.formats.toString,b,[h.trigger(c.formatLabel,b,[a])||c.format,a]),function(a){return j&&a.push(c.klass.selected),k&&a.push(c.klass.highlighted),f&&f.pick==i&&a.push(c.klass.viewset),l&&a.push(c.klass.disabled),a.join(" ")}([c.klass.listItem]),"data-pick="+a.pick+" "+h.ariaAttr({role:"option",selected:j&&b.$node.val()===h.trigger(b.formats.toString,b,[c.format,a])?!0:null,activedescendant:k?!0:null,disabled:l?!0:null})]}})+h.node("li",h.node("button",c.clear,c.klass.buttonClear,"type=button data-clear=1"+(a?"":" disabled")+" "+h.ariaAttr({controls:b.$node[0].id})),"",h.ariaAttr({role:"presentation"})),c.klass.list,h.ariaAttr({role:"listbox",controls:b.$node[0].id}))},c.defaults=function(a){return{clear:"Clear",format:"h:i A",interval:30,klass:{picker:a+" "+a+"--time",holder:a+"__holder",list:a+"__list",listItem:a+"__list-item",disabled:a+"__list-item--disabled",selected:a+"__list-item--selected",highlighted:a+"__list-item--highlighted",viewset:a+"__list-item--viewset",now:a+"__list-item--now",buttonClear:a+"__button--clear"}}}(a.klasses().picker),a.extend("pickatime",c)});
|
@@ -1,109 +0,0 @@
|
|
1
|
-
/* ==========================================================================
|
2
|
-
$BASE-PICKER
|
3
|
-
========================================================================== */
|
4
|
-
/**
|
5
|
-
* Note: the root picker element should *NOT* be styled more than what’s here.
|
6
|
-
*/
|
7
|
-
.picker {
|
8
|
-
font-size: 16px;
|
9
|
-
text-align: left;
|
10
|
-
line-height: 1.2;
|
11
|
-
color: #000000;
|
12
|
-
position: absolute;
|
13
|
-
z-index: 10000;
|
14
|
-
-webkit-user-select: none;
|
15
|
-
-moz-user-select: none;
|
16
|
-
-ms-user-select: none;
|
17
|
-
user-select: none;
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* The picker input element.
|
21
|
-
*/
|
22
|
-
.picker__input {
|
23
|
-
cursor: default;
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* When the picker is opened, the input element is “activated”.
|
27
|
-
*/
|
28
|
-
.picker__input.picker__input--active {
|
29
|
-
border-color: #0089ec;
|
30
|
-
}
|
31
|
-
/**
|
32
|
-
* The holder is the only “scrollable” top-level container element.
|
33
|
-
*/
|
34
|
-
.picker__holder {
|
35
|
-
width: 100%;
|
36
|
-
overflow-y: auto;
|
37
|
-
-webkit-overflow-scrolling: touch;
|
38
|
-
}
|
39
|
-
|
40
|
-
/*!
|
41
|
-
* Classic picker styling for pickadate.js
|
42
|
-
* Demo: http://amsul.github.io/pickadate.js
|
43
|
-
*/
|
44
|
-
/**
|
45
|
-
* Note: the root picker element should *NOT* be styled more than what’s here.
|
46
|
-
*/
|
47
|
-
.picker {
|
48
|
-
width: 100%;
|
49
|
-
}
|
50
|
-
/**
|
51
|
-
* The holder is the base of the picker.
|
52
|
-
*/
|
53
|
-
.picker__holder {
|
54
|
-
position: absolute;
|
55
|
-
background: #ffffff;
|
56
|
-
border: 1px solid #aaaaaa;
|
57
|
-
border-top-width: 0;
|
58
|
-
border-bottom-width: 0;
|
59
|
-
-webkit-border-radius: 0 0 5px 5px;
|
60
|
-
-moz-border-radius: 0 0 5px 5px;
|
61
|
-
border-radius: 0 0 5px 5px;
|
62
|
-
-webkit-box-sizing: border-box;
|
63
|
-
-moz-box-sizing: border-box;
|
64
|
-
box-sizing: border-box;
|
65
|
-
min-width: 176px;
|
66
|
-
max-width: 466px;
|
67
|
-
max-height: 0;
|
68
|
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
69
|
-
filter: alpha(opacity=0);
|
70
|
-
-moz-opacity: 0;
|
71
|
-
opacity: 0;
|
72
|
-
-webkit-transform: translateY(-1em) perspective(600px) rotateX(10deg);
|
73
|
-
-moz-transform: translateY(-1em) perspective(600px) rotateX(10deg);
|
74
|
-
transform: translateY(-1em) perspective(600px) rotateX(10deg);
|
75
|
-
-webkit-transition: -webkit-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s 0.15s, border-width 0s 0.15s;
|
76
|
-
-moz-transition: -moz-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s 0.15s, border-width 0s 0.15s;
|
77
|
-
transition: transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s 0.15s, border-width 0s 0.15s;
|
78
|
-
}
|
79
|
-
/**
|
80
|
-
* The frame and wrap work together to ensure that
|
81
|
-
* clicks within the picker don’t reach the holder.
|
82
|
-
*/
|
83
|
-
.picker__frame {
|
84
|
-
padding: 1px;
|
85
|
-
}
|
86
|
-
.picker__wrap {
|
87
|
-
margin: -1px;
|
88
|
-
}
|
89
|
-
/**
|
90
|
-
* When the picker opens...
|
91
|
-
*/
|
92
|
-
.picker--opened .picker__holder {
|
93
|
-
max-height: 25em;
|
94
|
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
95
|
-
filter: alpha(opacity=100);
|
96
|
-
-moz-opacity: 1;
|
97
|
-
opacity: 1;
|
98
|
-
border-top-width: 1px;
|
99
|
-
border-bottom-width: 1px;
|
100
|
-
-webkit-transform: translateY(0) perspective(600px) rotateX(0);
|
101
|
-
-moz-transform: translateY(0) perspective(600px) rotateX(0);
|
102
|
-
transform: translateY(0) perspective(600px) rotateX(0);
|
103
|
-
-webkit-transition: -webkit-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s, border-width 0s;
|
104
|
-
-moz-transition: -moz-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s, border-width 0s;
|
105
|
-
transition: transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s, border-width 0s;
|
106
|
-
-webkit-box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.12);
|
107
|
-
-moz-box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.12);
|
108
|
-
box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.12);
|
109
|
-
}
|
@@ -1,301 +0,0 @@
|
|
1
|
-
/* ==========================================================================
|
2
|
-
$BASE-DATE-PICKER
|
3
|
-
========================================================================== */
|
4
|
-
/**
|
5
|
-
* The picker box.
|
6
|
-
*/
|
7
|
-
.picker__box {
|
8
|
-
padding: 0 1em;
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* The header containing the month and year stuff.
|
12
|
-
*/
|
13
|
-
.picker__header {
|
14
|
-
text-align: center;
|
15
|
-
position: relative;
|
16
|
-
margin-top: .75em;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* The month and year labels.
|
20
|
-
*/
|
21
|
-
.picker__month,
|
22
|
-
.picker__year {
|
23
|
-
font-weight: 500;
|
24
|
-
display: inline-block;
|
25
|
-
margin-left: .25em;
|
26
|
-
margin-right: .25em;
|
27
|
-
}
|
28
|
-
.picker__year {
|
29
|
-
color: #999999;
|
30
|
-
font-size: .8em;
|
31
|
-
font-style: italic;
|
32
|
-
}
|
33
|
-
/**
|
34
|
-
* The month and year selectors.
|
35
|
-
*/
|
36
|
-
.picker__select--month,
|
37
|
-
.picker__select--year {
|
38
|
-
border: 1px solid #b7b7b7;
|
39
|
-
height: 2em;
|
40
|
-
padding: .5em;
|
41
|
-
margin-left: .25em;
|
42
|
-
margin-right: .25em;
|
43
|
-
}
|
44
|
-
@media (min-width: 24.5em) {
|
45
|
-
.picker__select--month,
|
46
|
-
.picker__select--year {
|
47
|
-
margin-top: -0.5em;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
.picker__select--month {
|
51
|
-
width: 35%;
|
52
|
-
}
|
53
|
-
.picker__select--year {
|
54
|
-
width: 22.5%;
|
55
|
-
}
|
56
|
-
.picker__select--month:focus,
|
57
|
-
.picker__select--year:focus {
|
58
|
-
border-color: #0089ec;
|
59
|
-
}
|
60
|
-
/**
|
61
|
-
* The month navigation buttons.
|
62
|
-
*/
|
63
|
-
.picker__nav--prev,
|
64
|
-
.picker__nav--next {
|
65
|
-
position: absolute;
|
66
|
-
padding: .5em 1.25em;
|
67
|
-
width: 1em;
|
68
|
-
height: 1em;
|
69
|
-
box-sizing: content-box;
|
70
|
-
top: -0.25em;
|
71
|
-
}
|
72
|
-
@media (min-width: 24.5em) {
|
73
|
-
.picker__nav--prev,
|
74
|
-
.picker__nav--next {
|
75
|
-
top: -0.33em;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
.picker__nav--prev {
|
79
|
-
left: -1em;
|
80
|
-
padding-right: 1.25em;
|
81
|
-
}
|
82
|
-
@media (min-width: 24.5em) {
|
83
|
-
.picker__nav--prev {
|
84
|
-
padding-right: 1.5em;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
.picker__nav--next {
|
88
|
-
right: -1em;
|
89
|
-
padding-left: 1.25em;
|
90
|
-
}
|
91
|
-
@media (min-width: 24.5em) {
|
92
|
-
.picker__nav--next {
|
93
|
-
padding-left: 1.5em;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
.picker__nav--prev:before,
|
97
|
-
.picker__nav--next:before {
|
98
|
-
content: " ";
|
99
|
-
border-top: .5em solid transparent;
|
100
|
-
border-bottom: .5em solid transparent;
|
101
|
-
border-right: 0.75em solid #000000;
|
102
|
-
width: 0;
|
103
|
-
height: 0;
|
104
|
-
display: block;
|
105
|
-
margin: 0 auto;
|
106
|
-
}
|
107
|
-
.picker__nav--next:before {
|
108
|
-
border-right: 0;
|
109
|
-
border-left: 0.75em solid #000000;
|
110
|
-
}
|
111
|
-
.picker__nav--prev:hover,
|
112
|
-
.picker__nav--next:hover {
|
113
|
-
cursor: pointer;
|
114
|
-
color: #000000;
|
115
|
-
background: #b1dcfb;
|
116
|
-
}
|
117
|
-
.picker__nav--disabled,
|
118
|
-
.picker__nav--disabled:hover,
|
119
|
-
.picker__nav--disabled:before,
|
120
|
-
.picker__nav--disabled:before:hover {
|
121
|
-
cursor: default;
|
122
|
-
background: none;
|
123
|
-
border-right-color: #f5f5f5;
|
124
|
-
border-left-color: #f5f5f5;
|
125
|
-
}
|
126
|
-
/**
|
127
|
-
* The calendar table of dates
|
128
|
-
*/
|
129
|
-
.picker__table {
|
130
|
-
text-align: center;
|
131
|
-
border-collapse: collapse;
|
132
|
-
border-spacing: 0;
|
133
|
-
table-layout: fixed;
|
134
|
-
font-size: inherit;
|
135
|
-
width: 100%;
|
136
|
-
margin-top: .75em;
|
137
|
-
margin-bottom: .5em;
|
138
|
-
}
|
139
|
-
@media (min-height: 33.875em) {
|
140
|
-
.picker__table {
|
141
|
-
margin-bottom: .75em;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
.picker__table td {
|
145
|
-
margin: 0;
|
146
|
-
padding: 0;
|
147
|
-
}
|
148
|
-
/**
|
149
|
-
* The weekday labels
|
150
|
-
*/
|
151
|
-
.picker__weekday {
|
152
|
-
width: 14.285714286%;
|
153
|
-
font-size: .75em;
|
154
|
-
padding-bottom: .25em;
|
155
|
-
color: #999999;
|
156
|
-
font-weight: 500;
|
157
|
-
/* Increase the spacing a tad */
|
158
|
-
}
|
159
|
-
@media (min-height: 33.875em) {
|
160
|
-
.picker__weekday {
|
161
|
-
padding-bottom: .5em;
|
162
|
-
}
|
163
|
-
}
|
164
|
-
/**
|
165
|
-
* The days on the calendar
|
166
|
-
*/
|
167
|
-
.picker__day {
|
168
|
-
padding: .3125em 0;
|
169
|
-
font-weight: 200;
|
170
|
-
border: 1px solid transparent;
|
171
|
-
}
|
172
|
-
.picker__day--today {
|
173
|
-
position: relative;
|
174
|
-
}
|
175
|
-
.picker__day--today:before {
|
176
|
-
content: " ";
|
177
|
-
position: absolute;
|
178
|
-
top: 2px;
|
179
|
-
right: 2px;
|
180
|
-
width: 0;
|
181
|
-
height: 0;
|
182
|
-
border-top: 0.5em solid #0059bc;
|
183
|
-
border-left: .5em solid transparent;
|
184
|
-
}
|
185
|
-
.picker__day--disabled:before {
|
186
|
-
border-top-color: #aaaaaa;
|
187
|
-
}
|
188
|
-
.picker__day--outfocus {
|
189
|
-
color: #dddddd;
|
190
|
-
}
|
191
|
-
.picker__day--infocus:hover,
|
192
|
-
.picker__day--outfocus:hover {
|
193
|
-
cursor: pointer;
|
194
|
-
color: #000000;
|
195
|
-
background: #b1dcfb;
|
196
|
-
}
|
197
|
-
.picker__day--highlighted {
|
198
|
-
border-color: #0089ec;
|
199
|
-
}
|
200
|
-
.picker__day--highlighted:hover,
|
201
|
-
.picker--focused .picker__day--highlighted {
|
202
|
-
cursor: pointer;
|
203
|
-
color: #000000;
|
204
|
-
background: #b1dcfb;
|
205
|
-
}
|
206
|
-
.picker__day--selected,
|
207
|
-
.picker__day--selected:hover,
|
208
|
-
.picker--focused .picker__day--selected {
|
209
|
-
background: #0089ec;
|
210
|
-
color: #ffffff;
|
211
|
-
}
|
212
|
-
.picker__day--disabled,
|
213
|
-
.picker__day--disabled:hover,
|
214
|
-
.picker--focused .picker__day--disabled {
|
215
|
-
background: #f5f5f5;
|
216
|
-
border-color: #f5f5f5;
|
217
|
-
color: #dddddd;
|
218
|
-
cursor: default;
|
219
|
-
}
|
220
|
-
.picker__day--highlighted.picker__day--disabled,
|
221
|
-
.picker__day--highlighted.picker__day--disabled:hover {
|
222
|
-
background: #bbbbbb;
|
223
|
-
}
|
224
|
-
/**
|
225
|
-
* The footer containing the "today", "clear", and "close" buttons.
|
226
|
-
*/
|
227
|
-
.picker__footer {
|
228
|
-
text-align: center;
|
229
|
-
}
|
230
|
-
.picker__button--today,
|
231
|
-
.picker__button--clear,
|
232
|
-
.picker__button--close {
|
233
|
-
border: 1px solid #ffffff;
|
234
|
-
background: #ffffff;
|
235
|
-
font-size: .8em;
|
236
|
-
padding: .66em 0;
|
237
|
-
font-weight: bold;
|
238
|
-
width: 33%;
|
239
|
-
display: inline-block;
|
240
|
-
vertical-align: bottom;
|
241
|
-
}
|
242
|
-
.picker__button--today:hover,
|
243
|
-
.picker__button--clear:hover,
|
244
|
-
.picker__button--close:hover {
|
245
|
-
cursor: pointer;
|
246
|
-
color: #000000;
|
247
|
-
background: #b1dcfb;
|
248
|
-
border-bottom-color: #b1dcfb;
|
249
|
-
}
|
250
|
-
.picker__button--today:focus,
|
251
|
-
.picker__button--clear:focus,
|
252
|
-
.picker__button--close:focus {
|
253
|
-
background: #b1dcfb;
|
254
|
-
border-color: #0089ec;
|
255
|
-
outline: none;
|
256
|
-
}
|
257
|
-
.picker__button--today:before,
|
258
|
-
.picker__button--clear:before,
|
259
|
-
.picker__button--close:before {
|
260
|
-
position: relative;
|
261
|
-
display: inline-block;
|
262
|
-
height: 0;
|
263
|
-
}
|
264
|
-
.picker__button--today:before,
|
265
|
-
.picker__button--clear:before {
|
266
|
-
content: " ";
|
267
|
-
margin-right: .45em;
|
268
|
-
}
|
269
|
-
.picker__button--today:before {
|
270
|
-
top: -0.05em;
|
271
|
-
width: 0;
|
272
|
-
border-top: 0.66em solid #0059bc;
|
273
|
-
border-left: .66em solid transparent;
|
274
|
-
}
|
275
|
-
.picker__button--clear:before {
|
276
|
-
top: -0.25em;
|
277
|
-
width: .66em;
|
278
|
-
border-top: 3px solid #ee2200;
|
279
|
-
}
|
280
|
-
.picker__button--close:before {
|
281
|
-
content: "\D7";
|
282
|
-
top: -0.1em;
|
283
|
-
vertical-align: top;
|
284
|
-
font-size: 1.1em;
|
285
|
-
margin-right: .35em;
|
286
|
-
color: #777777;
|
287
|
-
}
|
288
|
-
.picker__button--today[disabled],
|
289
|
-
.picker__button--today[disabled]:hover {
|
290
|
-
background: #f5f5f5;
|
291
|
-
border-color: #f5f5f5;
|
292
|
-
color: #dddddd;
|
293
|
-
cursor: default;
|
294
|
-
}
|
295
|
-
.picker__button--today[disabled]:before {
|
296
|
-
border-top-color: #aaaaaa;
|
297
|
-
}
|
298
|
-
|
299
|
-
/* ==========================================================================
|
300
|
-
$CLASSIC-DATE-PICKER
|
301
|
-
========================================================================== */
|
@@ -1 +0,0 @@
|
|
1
|
-
.picker__box{padding:0 1em}.picker__header{text-align:center;position:relative;margin-top:.75em}.picker__month,.picker__year{font-weight:500;display:inline-block;margin-left:.25em;margin-right:.25em}.picker__year{color:#999;font-size:.8em;font-style:italic}.picker__select--month,.picker__select--year{border:1px solid #b7b7b7;height:2em;padding:.5em;margin-left:.25em;margin-right:.25em}@media (min-width:24.5em){.picker__select--month,.picker__select--year{margin-top:-.5em}}.picker__select--month{width:35%}.picker__select--year{width:22.5%}.picker__select--month:focus,.picker__select--year:focus{border-color:#0089ec}.picker__nav--next,.picker__nav--prev{position:absolute;padding:.5em 1.25em;width:1em;height:1em;box-sizing:content-box;top:-.25em}@media (min-width:24.5em){.picker__nav--next,.picker__nav--prev{top:-.33em}}.picker__nav--prev{left:-1em;padding-right:1.25em}@media (min-width:24.5em){.picker__nav--prev{padding-right:1.5em}}.picker__nav--next{right:-1em;padding-left:1.25em}@media (min-width:24.5em){.picker__nav--next{padding-left:1.5em}}.picker__nav--next:before,.picker__nav--prev:before{content:" ";border-top:.5em solid transparent;border-bottom:.5em solid transparent;border-right:.75em solid #000;width:0;height:0;display:block;margin:0 auto}.picker__nav--next:before{border-right:0;border-left:.75em solid #000}.picker__nav--next:hover,.picker__nav--prev:hover{cursor:pointer;color:#000;background:#b1dcfb}.picker__nav--disabled,.picker__nav--disabled:before,.picker__nav--disabled:before:hover,.picker__nav--disabled:hover{cursor:default;background:0 0;border-right-color:#f5f5f5;border-left-color:#f5f5f5}.picker__table{text-align:center;border-collapse:collapse;border-spacing:0;table-layout:fixed;font-size:inherit;width:100%;margin-top:.75em;margin-bottom:.5em}@media (min-height:33.875em){.picker__table{margin-bottom:.75em}}.picker__table td{margin:0;padding:0}.picker__weekday{width:14.285714286%;font-size:.75em;padding-bottom:.25em;color:#999;font-weight:500}@media (min-height:33.875em){.picker__weekday{padding-bottom:.5em}}.picker__day{padding:.3125em 0;font-weight:200;border:1px solid transparent}.picker__day--today{position:relative}.picker__day--today:before{content:" ";position:absolute;top:2px;right:2px;width:0;height:0;border-top:.5em solid #0059bc;border-left:.5em solid transparent}.picker__day--disabled:before{border-top-color:#aaa}.picker__day--outfocus{color:#ddd}.picker__day--infocus:hover,.picker__day--outfocus:hover{cursor:pointer;color:#000;background:#b1dcfb}.picker__day--highlighted{border-color:#0089ec}.picker--focused .picker__day--highlighted,.picker__day--highlighted:hover{cursor:pointer;color:#000;background:#b1dcfb}.picker--focused .picker__day--selected,.picker__day--selected,.picker__day--selected:hover{background:#0089ec;color:#fff}.picker--focused .picker__day--disabled,.picker__day--disabled,.picker__day--disabled:hover{background:#f5f5f5;border-color:#f5f5f5;color:#ddd;cursor:default}.picker__day--highlighted.picker__day--disabled,.picker__day--highlighted.picker__day--disabled:hover{background:#bbb}.picker__footer{text-align:center}.picker__button--clear,.picker__button--close,.picker__button--today{border:1px solid #fff;background:#fff;font-size:.8em;padding:.66em 0;font-weight:700;width:33%;display:inline-block;vertical-align:bottom}.picker__button--clear:hover,.picker__button--close:hover,.picker__button--today:hover{cursor:pointer;color:#000;background:#b1dcfb;border-bottom-color:#b1dcfb}.picker__button--clear:focus,.picker__button--close:focus,.picker__button--today:focus{background:#b1dcfb;border-color:#0089ec;outline:0}.picker__button--clear:before,.picker__button--close:before,.picker__button--today:before{position:relative;display:inline-block;height:0}.picker__button--clear:before,.picker__button--today:before{content:" ";margin-right:.45em}.picker__button--today:before{top:-.05em;width:0;border-top:.66em solid #0059bc;border-left:.66em solid transparent}.picker__button--clear:before{top:-.25em;width:.66em;border-top:3px solid #e20}.picker__button--close:before{content:"\D7";top:-.1em;vertical-align:top;font-size:1.1em;margin-right:.35em;color:#777}.picker__button--today[disabled],.picker__button--today[disabled]:hover{background:#f5f5f5;border-color:#f5f5f5;color:#ddd;cursor:default}.picker__button--today[disabled]:before{border-top-color:#aaa}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
.picker{font-size:16px;text-align:left;line-height:1.2;color:#000;position:absolute;z-index:10000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.picker__input{cursor:default}.picker__input.picker__input--active{border-color:#0089ec}.picker__holder{width:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}/*!
|
2
|
-
* Classic picker styling for pickadate.js
|
3
|
-
* Demo: http://amsul.github.io/pickadate.js
|
4
|
-
*/.picker{width:100%}.picker__holder{position:absolute;background:#fff;border:1px solid #aaa;border-top-width:0;border-bottom-width:0;-webkit-border-radius:0 0 5px 5px;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;min-width:176px;max-width:466px;max-height:0;-ms-filter:"alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;opacity:0;-webkit-transform:translateY(-1em) perspective(600px) rotateX(10deg);-moz-transform:translateY(-1em) perspective(600px) rotateX(10deg);transform:translateY(-1em) perspective(600px) rotateX(10deg);-webkit-transition:-webkit-transform .15s ease-out,opacity .15s ease-out,max-height 0s .15s,border-width 0s .15s;-moz-transition:-moz-transform .15s ease-out,opacity .15s ease-out,max-height 0s .15s,border-width 0s .15s;transition:transform .15s ease-out,opacity .15s ease-out,max-height 0s .15s,border-width 0s .15s}.picker__frame{padding:1px}.picker__wrap{margin:-1px}.picker--opened .picker__holder{max-height:25em;-ms-filter:"alpha(Opacity=100)";filter:alpha(opacity=100);-moz-opacity:1;opacity:1;border-top-width:1px;border-bottom-width:1px;-webkit-transform:translateY(0) perspective(600px) rotateX(0);-moz-transform:translateY(0) perspective(600px) rotateX(0);transform:translateY(0) perspective(600px) rotateX(0);-webkit-transition:-webkit-transform .15s ease-out,opacity .15s ease-out,max-height 0s,border-width 0s;-moz-transition:-moz-transform .15s ease-out,opacity .15s ease-out,max-height 0s,border-width 0s;transition:transform .15s ease-out,opacity .15s ease-out,max-height 0s,border-width 0s;-webkit-box-shadow:0 6px 18px 1px rgba(0,0,0,.12);-moz-box-shadow:0 6px 18px 1px rgba(0,0,0,.12);box-shadow:0 6px 18px 1px rgba(0,0,0,.12)}
|
@@ -1,131 +0,0 @@
|
|
1
|
-
/* ==========================================================================
|
2
|
-
$BASE-TIME-PICKER
|
3
|
-
========================================================================== */
|
4
|
-
/**
|
5
|
-
* The list of times.
|
6
|
-
*/
|
7
|
-
.picker__list {
|
8
|
-
list-style: none;
|
9
|
-
padding: 0.75em 0 4.2em;
|
10
|
-
margin: 0;
|
11
|
-
}
|
12
|
-
/**
|
13
|
-
* The times on the clock.
|
14
|
-
*/
|
15
|
-
.picker__list-item {
|
16
|
-
border-bottom: 1px solid #dddddd;
|
17
|
-
border-top: 1px solid #dddddd;
|
18
|
-
margin-bottom: -1px;
|
19
|
-
position: relative;
|
20
|
-
background: #ffffff;
|
21
|
-
padding: .75em 1.25em;
|
22
|
-
}
|
23
|
-
@media (min-height: 46.75em) {
|
24
|
-
.picker__list-item {
|
25
|
-
padding: .5em 1em;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
/* Hovered time */
|
29
|
-
.picker__list-item:hover {
|
30
|
-
cursor: pointer;
|
31
|
-
color: #000000;
|
32
|
-
background: #b1dcfb;
|
33
|
-
border-color: #0089ec;
|
34
|
-
z-index: 10;
|
35
|
-
}
|
36
|
-
/* Highlighted and hovered/focused time */
|
37
|
-
.picker__list-item--highlighted {
|
38
|
-
border-color: #0089ec;
|
39
|
-
z-index: 10;
|
40
|
-
}
|
41
|
-
.picker__list-item--highlighted:hover,
|
42
|
-
.picker--focused .picker__list-item--highlighted {
|
43
|
-
cursor: pointer;
|
44
|
-
color: #000000;
|
45
|
-
background: #b1dcfb;
|
46
|
-
}
|
47
|
-
/* Selected and hovered/focused time */
|
48
|
-
.picker__list-item--selected,
|
49
|
-
.picker__list-item--selected:hover,
|
50
|
-
.picker--focused .picker__list-item--selected {
|
51
|
-
background: #0089ec;
|
52
|
-
color: #ffffff;
|
53
|
-
z-index: 10;
|
54
|
-
}
|
55
|
-
/* Disabled time */
|
56
|
-
.picker__list-item--disabled,
|
57
|
-
.picker__list-item--disabled:hover,
|
58
|
-
.picker--focused .picker__list-item--disabled {
|
59
|
-
background: #f5f5f5;
|
60
|
-
border-color: #f5f5f5;
|
61
|
-
color: #dddddd;
|
62
|
-
cursor: default;
|
63
|
-
border-color: #dddddd;
|
64
|
-
z-index: auto;
|
65
|
-
}
|
66
|
-
/**
|
67
|
-
* The clear button
|
68
|
-
*/
|
69
|
-
.picker--time .picker__button--clear {
|
70
|
-
display: block;
|
71
|
-
width: 80%;
|
72
|
-
margin: 1em auto 0;
|
73
|
-
padding: 1em 1.25em;
|
74
|
-
background: none;
|
75
|
-
border: 0;
|
76
|
-
font-weight: 500;
|
77
|
-
font-size: .67em;
|
78
|
-
text-align: center;
|
79
|
-
text-transform: uppercase;
|
80
|
-
color: #666;
|
81
|
-
}
|
82
|
-
.picker--time .picker__button--clear:hover,
|
83
|
-
.picker--time .picker__button--clear:focus {
|
84
|
-
color: #000000;
|
85
|
-
background: #b1dcfb;
|
86
|
-
background: #ee2200;
|
87
|
-
border-color: #ee2200;
|
88
|
-
cursor: pointer;
|
89
|
-
color: #ffffff;
|
90
|
-
outline: none;
|
91
|
-
}
|
92
|
-
.picker--time .picker__button--clear:before {
|
93
|
-
top: -0.25em;
|
94
|
-
color: #666;
|
95
|
-
font-size: 1.25em;
|
96
|
-
font-weight: bold;
|
97
|
-
}
|
98
|
-
.picker--time .picker__button--clear:hover:before,
|
99
|
-
.picker--time .picker__button--clear:focus:before {
|
100
|
-
color: #ffffff;
|
101
|
-
}
|
102
|
-
|
103
|
-
/* ==========================================================================
|
104
|
-
$CLASSIC-TIME-PICKER
|
105
|
-
========================================================================== */
|
106
|
-
/**
|
107
|
-
* Note: the root picker element should __NOT__ be styled
|
108
|
-
* more than what’s here. Style the `.picker__holder` instead.
|
109
|
-
*/
|
110
|
-
.picker--time {
|
111
|
-
min-width: 256px;
|
112
|
-
max-width: 320px;
|
113
|
-
}
|
114
|
-
/**
|
115
|
-
* The holder is the base of the picker.
|
116
|
-
*/
|
117
|
-
.picker--time .picker__holder {
|
118
|
-
background: #f2f2f2;
|
119
|
-
}
|
120
|
-
@media (min-height: 40.125em) {
|
121
|
-
.picker--time .picker__holder {
|
122
|
-
font-size: .875em;
|
123
|
-
}
|
124
|
-
}
|
125
|
-
/**
|
126
|
-
* The box contains the list of times.
|
127
|
-
*/
|
128
|
-
.picker--time .picker__box {
|
129
|
-
padding: 0;
|
130
|
-
position: relative;
|
131
|
-
}
|