pickadate-rails 3.5.2.0 → 3.5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/pickadate-rails/version.rb +1 -1
- data/vendor/assets/javascripts/pickadate/picker.date.js +39 -12
- data/vendor/assets/javascripts/pickadate/picker.js +38 -21
- data/vendor/assets/javascripts/pickadate/picker.time.js +31 -7
- data/vendor/assets/javascripts/pickadate/translations/fr_FR.js +5 -1
- data/vendor/assets/stylesheets/pickadate/classic.date.css +33 -10
- data/vendor/assets/stylesheets/pickadate/default.css +1 -0
- data/vendor/assets/stylesheets/pickadate/default.date.css +33 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 549fa9d0cc7f189eefeddc37ef4b335ba2d4f5a9
|
4
|
+
data.tar.gz: e41bfd0af43ff43ee3b9c5ad9b576a090e9ec871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22e0243bab42931fa8cc7cc897798c84ce25a3b251d85229a1661048115476d7037cb0b141394d3c022a709efdb4e3e0ed08685637229c46c5f6d8c556f13672
|
7
|
+
data.tar.gz: 72a9cf48145dc6d1ad394803c60672bd5e1dc2c63690c1ccee7d6acde2ce19e769fb4bd66c86ade40953104640105b1543524c3658a548403ac44a7e6c115f0a
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Pickadate-Rails [![Gem Version](https://badge.fury.io/rb/pickadate-rails.png)](http://badge.fury.io/rb/pickadate-rails)
|
2
2
|
|
3
|
-
## Pickadate Version: 3.5.
|
3
|
+
## Pickadate Version: 3.5.3
|
4
4
|
|
5
5
|
Easily add [pickadate.js](https://github.com/amsul/pickadate.js) to your Rails 3.1+ application using the asset pipeline.
|
6
6
|
|
@@ -1,16 +1,20 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Date picker for pickadate.js v3.5.
|
3
|
+
* Date picker for pickadate.js v3.5.3
|
4
4
|
* http://amsul.github.io/pickadate.js/date.htm
|
5
5
|
*/
|
6
6
|
|
7
7
|
(function ( factory ) {
|
8
8
|
|
9
|
-
//
|
9
|
+
// AMD.
|
10
10
|
if ( typeof define == 'function' && define.amd )
|
11
11
|
define( ['picker','jquery'], factory )
|
12
12
|
|
13
|
-
//
|
13
|
+
// Node.js/browserify.
|
14
|
+
else if ( typeof exports == 'object' )
|
15
|
+
module.exports = factory( require('./picker.js'), require('jquery') )
|
16
|
+
|
17
|
+
// Browser globals.
|
14
18
|
else factory( Picker, jQuery )
|
15
19
|
|
16
20
|
}(function( Picker, $ ) {
|
@@ -31,12 +35,20 @@ var DAYS_IN_WEEK = 7,
|
|
31
35
|
function DatePicker( picker, settings ) {
|
32
36
|
|
33
37
|
var calendar = this,
|
34
|
-
|
38
|
+
element = picker.$node[ 0 ],
|
39
|
+
elementValue = element.value,
|
35
40
|
elementDataValue = picker.$node.data( 'value' ),
|
36
41
|
valueString = elementDataValue || elementValue,
|
37
42
|
formatString = elementDataValue ? settings.formatSubmit : settings.format,
|
38
43
|
isRTL = function() {
|
39
|
-
|
44
|
+
|
45
|
+
return element.currentStyle ?
|
46
|
+
|
47
|
+
// For IE.
|
48
|
+
element.currentStyle.direction == 'rtl' :
|
49
|
+
|
50
|
+
// For normal browsers.
|
51
|
+
getComputedStyle( picker.$root[0] ).direction == 'rtl'
|
40
52
|
}
|
41
53
|
|
42
54
|
calendar.settings = settings
|
@@ -118,13 +130,17 @@ function DatePicker( picker, settings ) {
|
|
118
130
|
picker.$root.find( '.' + settings.klass.selectYear ).trigger( 'focus' )
|
119
131
|
}
|
120
132
|
})
|
121
|
-
}).
|
133
|
+
}, 1 ).
|
122
134
|
on( 'open', function() {
|
123
|
-
|
124
|
-
|
135
|
+
var includeToday = ''
|
136
|
+
if ( calendar.disabled( calendar.get('now') ) ) {
|
137
|
+
includeToday = ':not(.' + settings.klass.buttonToday + ')'
|
138
|
+
}
|
139
|
+
picker.$root.find( 'button' + includeToday + ', select' ).attr( 'disabled', false )
|
140
|
+
}, 1 ).
|
125
141
|
on( 'close', function() {
|
126
142
|
picker.$root.find( 'button, select' ).attr( 'disabled', true )
|
127
|
-
})
|
143
|
+
}, 1 )
|
128
144
|
|
129
145
|
} //DatePicker
|
130
146
|
|
@@ -379,11 +395,16 @@ DatePicker.prototype.measure = function( type, value/*, options*/ ) {
|
|
379
395
|
|
380
396
|
var calendar = this
|
381
397
|
|
382
|
-
// If it
|
398
|
+
// If it’s anything false-y, remove the limits.
|
383
399
|
if ( !value ) {
|
384
400
|
value = type == 'min' ? -Infinity : Infinity
|
385
401
|
}
|
386
402
|
|
403
|
+
// If it’s a string, parse it.
|
404
|
+
else if ( typeof value == 'string' ) {
|
405
|
+
value = calendar.parse( type, value )
|
406
|
+
}
|
407
|
+
|
387
408
|
// If it's an integer, get a date relative to today.
|
388
409
|
else if ( _.isInteger( value ) ) {
|
389
410
|
value = calendar.now( type, value, { rel: value } )
|
@@ -1230,11 +1251,15 @@ DatePicker.prototype.nodes = function( isOpen ) {
|
|
1230
1251
|
'div',
|
1231
1252
|
_.node( 'button', settings.today, settings.klass.buttonToday,
|
1232
1253
|
'type=button data-pick=' + nowObject.pick +
|
1233
|
-
( isOpen ? '' : ' disabled' ) + ' ' +
|
1254
|
+
( isOpen && !calendar.disabled(nowObject) ? '' : ' disabled' ) + ' ' +
|
1234
1255
|
_.ariaAttr({ controls: calendar.$node[0].id }) ) +
|
1235
1256
|
_.node( 'button', settings.clear, settings.klass.buttonClear,
|
1236
1257
|
'type=button data-clear=1' +
|
1237
1258
|
( isOpen ? '' : ' disabled' ) + ' ' +
|
1259
|
+
_.ariaAttr({ controls: calendar.$node[0].id }) ) +
|
1260
|
+
_.node('button', settings.close, settings.klass.buttonClose,
|
1261
|
+
'type=button data-close=true ' +
|
1262
|
+
( isOpen ? '' : ' disabled' ) + ' ' +
|
1238
1263
|
_.ariaAttr({ controls: calendar.$node[0].id }) ),
|
1239
1264
|
settings.klass.footer
|
1240
1265
|
) //endreturn
|
@@ -1267,6 +1292,7 @@ DatePicker.defaults = (function( prefix ) {
|
|
1267
1292
|
// Today and clear
|
1268
1293
|
today: 'Today',
|
1269
1294
|
clear: 'Clear',
|
1295
|
+
close: 'Close',
|
1270
1296
|
|
1271
1297
|
// The format to show on the `input` element
|
1272
1298
|
format: 'd mmmm, yyyy',
|
@@ -1301,7 +1327,8 @@ DatePicker.defaults = (function( prefix ) {
|
|
1301
1327
|
footer: prefix + 'footer',
|
1302
1328
|
|
1303
1329
|
buttonClear: prefix + 'button--clear',
|
1304
|
-
buttonToday: prefix + 'button--today'
|
1330
|
+
buttonToday: prefix + 'button--today',
|
1331
|
+
buttonClose: prefix + 'button--close'
|
1305
1332
|
}
|
1306
1333
|
}
|
1307
1334
|
})( Picker.klasses().picker + '__' )
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* pickadate.js v3.5.
|
2
|
+
* pickadate.js v3.5.3, 2014/07/12
|
3
3
|
* By Amsul, http://amsul.ca
|
4
4
|
* Hosted on http://amsul.github.io/pickadate.js
|
5
5
|
* Licensed under MIT
|
@@ -7,11 +7,15 @@
|
|
7
7
|
|
8
8
|
(function ( factory ) {
|
9
9
|
|
10
|
-
//
|
11
|
-
if ( typeof define
|
10
|
+
// AMD.
|
11
|
+
if ( typeof define == 'function' && define.amd )
|
12
12
|
define( 'picker', ['jquery'], factory )
|
13
13
|
|
14
|
-
//
|
14
|
+
// Node.js/browserify.
|
15
|
+
else if ( typeof exports == 'object' )
|
16
|
+
module.exports = factory( require('jquery') )
|
17
|
+
|
18
|
+
// Browser globals.
|
15
19
|
else this.Picker = factory( jQuery )
|
16
20
|
|
17
21
|
}(function( $ ) {
|
@@ -85,9 +89,11 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
85
89
|
// Confirm focus state, convert into text input to remove UA stylings,
|
86
90
|
// and set as readonly to prevent keyboard popup.
|
87
91
|
ELEMENT.autofocus = ELEMENT == document.activeElement
|
88
|
-
ELEMENT.type = 'text'
|
89
92
|
ELEMENT.readOnly = !SETTINGS.editable
|
90
93
|
ELEMENT.id = ELEMENT.id || STATE.id
|
94
|
+
if ( ELEMENT.type != 'text' ) {
|
95
|
+
ELEMENT.type = 'text'
|
96
|
+
}
|
91
97
|
|
92
98
|
|
93
99
|
// Create a new picker component with the settings.
|
@@ -202,7 +208,7 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
202
208
|
}, //stop
|
203
209
|
|
204
210
|
|
205
|
-
|
211
|
+
/**
|
206
212
|
* Open up the picker
|
207
213
|
*/
|
208
214
|
open: function( dontGiveFocus ) {
|
@@ -366,8 +372,8 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
366
372
|
/**
|
367
373
|
* Clear the values
|
368
374
|
*/
|
369
|
-
clear: function() {
|
370
|
-
return P.set( 'clear' )
|
375
|
+
clear: function( options ) {
|
376
|
+
return P.set( 'clear', null, options )
|
371
377
|
}, //clear
|
372
378
|
|
373
379
|
|
@@ -457,7 +463,7 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
457
463
|
/**
|
458
464
|
* Bind events on the things.
|
459
465
|
*/
|
460
|
-
on: function( thing, method ) {
|
466
|
+
on: function( thing, method, internal ) {
|
461
467
|
|
462
468
|
var thingName, thingMethod,
|
463
469
|
thingIsObject = $.isPlainObject( thing ),
|
@@ -476,6 +482,11 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
476
482
|
// Grab the method of the thing.
|
477
483
|
thingMethod = thingObject[ thingName ]
|
478
484
|
|
485
|
+
// If it was an internal binding, prefix it.
|
486
|
+
if ( internal ) {
|
487
|
+
thingName = '_' + thingName
|
488
|
+
}
|
489
|
+
|
479
490
|
// Make sure the thing methods collection exists.
|
480
491
|
STATE.methods[ thingName ] = STATE.methods[ thingName ] || []
|
481
492
|
|
@@ -509,12 +520,16 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
509
520
|
* Fire off method events.
|
510
521
|
*/
|
511
522
|
trigger: function( name, data ) {
|
512
|
-
var
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
523
|
+
var _trigger = function( name ) {
|
524
|
+
var methodList = STATE.methods[ name ]
|
525
|
+
if ( methodList ) {
|
526
|
+
methodList.map( function( method ) {
|
527
|
+
PickerConstructor._.trigger( method, P, [ data ] )
|
528
|
+
})
|
529
|
+
}
|
517
530
|
}
|
531
|
+
_trigger( '_' + name )
|
532
|
+
_trigger( name )
|
518
533
|
return P
|
519
534
|
} //trigger
|
520
535
|
} //PickerInstance.prototype
|
@@ -699,6 +714,9 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
699
714
|
else if ( targetData.clear ) {
|
700
715
|
P.clear().close( true )
|
701
716
|
}
|
717
|
+
})
|
718
|
+
.on('click', '[data-close]', function () {
|
719
|
+
P.close(true);
|
702
720
|
}) //P.$root
|
703
721
|
|
704
722
|
aria( P.$root[0], 'hidden', true )
|
@@ -710,11 +728,9 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
710
728
|
*/
|
711
729
|
function prepareElementHidden() {
|
712
730
|
|
713
|
-
var
|
714
|
-
name
|
731
|
+
var name
|
715
732
|
|
716
733
|
if ( SETTINGS.hiddenName === true ) {
|
717
|
-
id = ELEMENT.name + '_hidden'
|
718
734
|
name = ELEMENT.name
|
719
735
|
ELEMENT.name = ''
|
720
736
|
}
|
@@ -723,17 +739,18 @@ function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
|
|
723
739
|
typeof SETTINGS.hiddenPrefix == 'string' ? SETTINGS.hiddenPrefix : '',
|
724
740
|
typeof SETTINGS.hiddenSuffix == 'string' ? SETTINGS.hiddenSuffix : '_submit'
|
725
741
|
]
|
726
|
-
name =
|
742
|
+
name = name[0] + ELEMENT.name + name[1]
|
727
743
|
}
|
728
744
|
|
729
745
|
P._hidden = $(
|
730
746
|
'<input ' +
|
731
747
|
'type=hidden ' +
|
732
748
|
|
733
|
-
// Create the name
|
734
|
-
// input’s with a prefix and suffix.
|
749
|
+
// Create the name using the original input’s with a prefix and suffix.
|
735
750
|
'name="' + name + '"' +
|
736
|
-
|
751
|
+
|
752
|
+
// Create the ID using the original input’s; only if it has one.
|
753
|
+
(ELEMENT.id ? 'id="' + ELEMENT.id + '_hidden"' : '') +
|
737
754
|
|
738
755
|
// If the element has a value, set the hidden value as well.
|
739
756
|
(
|
@@ -1,16 +1,20 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Time picker for pickadate.js v3.5.
|
3
|
+
* Time picker for pickadate.js v3.5.3
|
4
4
|
* http://amsul.github.io/pickadate.js/time.htm
|
5
5
|
*/
|
6
6
|
|
7
7
|
(function ( factory ) {
|
8
8
|
|
9
|
-
//
|
9
|
+
// AMD.
|
10
10
|
if ( typeof define == 'function' && define.amd )
|
11
11
|
define( ['picker','jquery'], factory )
|
12
12
|
|
13
|
-
//
|
13
|
+
// Node.js/browserify.
|
14
|
+
else if ( typeof exports == 'object' )
|
15
|
+
module.exports = factory( require('./picker.js'), require('jquery') )
|
16
|
+
|
17
|
+
// Browser globals.
|
14
18
|
else factory( Picker, jQuery )
|
15
19
|
|
16
20
|
}(function( Picker, $ ) {
|
@@ -106,17 +110,32 @@ function TimePicker( picker, settings ) {
|
|
106
110
|
picker.
|
107
111
|
on( 'render', function() {
|
108
112
|
var $pickerHolder = picker.$root.children(),
|
109
|
-
$viewset = $pickerHolder.find( '.' + settings.klass.viewset )
|
113
|
+
$viewset = $pickerHolder.find( '.' + settings.klass.viewset ),
|
114
|
+
vendors = function( prop ) {
|
115
|
+
return ['webkit', 'moz', 'ms', 'o', ''].map(function( vendor ) {
|
116
|
+
return ( vendor ? '-' + vendor + '-' : '' ) + prop
|
117
|
+
})
|
118
|
+
},
|
119
|
+
animations = function( $el, state ) {
|
120
|
+
vendors( 'transform' ).map(function( prop ) {
|
121
|
+
$el.css( prop, state )
|
122
|
+
})
|
123
|
+
vendors( 'transition' ).map(function( prop ) {
|
124
|
+
$el.css( prop, state )
|
125
|
+
})
|
126
|
+
}
|
110
127
|
if ( $viewset.length ) {
|
128
|
+
animations( $pickerHolder, 'none' )
|
111
129
|
$pickerHolder[ 0 ].scrollTop = ~~$viewset.position().top - ( $viewset[ 0 ].clientHeight * 2 )
|
130
|
+
animations( $pickerHolder, '' )
|
112
131
|
}
|
113
|
-
}).
|
132
|
+
}, 1 ).
|
114
133
|
on( 'open', function() {
|
115
134
|
picker.$root.find( 'button' ).attr( 'disabled', false )
|
116
|
-
}).
|
135
|
+
}, 1 ).
|
117
136
|
on( 'close', function() {
|
118
137
|
picker.$root.find( 'button' ).attr( 'disabled', true )
|
119
|
-
})
|
138
|
+
}, 1 )
|
120
139
|
|
121
140
|
} //TimePicker
|
122
141
|
|
@@ -369,6 +388,11 @@ TimePicker.prototype.measure = function( type, value, options ) {
|
|
369
388
|
value = type == 'min' ? [ 0, 0 ] : [ HOURS_IN_DAY - 1, MINUTES_IN_HOUR - 1 ]
|
370
389
|
}
|
371
390
|
|
391
|
+
// If it’s a string, parse it.
|
392
|
+
if ( typeof value == 'string' ) {
|
393
|
+
value = clock.parse( type, value )
|
394
|
+
}
|
395
|
+
|
372
396
|
// If it’s a literal true, or an integer, make it relative to now.
|
373
397
|
else if ( value === true || _.isInteger( value ) ) {
|
374
398
|
value = clock.now( type, value, options )
|
@@ -9,5 +9,9 @@ jQuery.extend( jQuery.fn.pickadate.defaults, {
|
|
9
9
|
clear: 'Effacer',
|
10
10
|
firstDay: 1,
|
11
11
|
format: 'dd mmmm yyyy',
|
12
|
-
formatSubmit: 'yyyy/mm/dd'
|
12
|
+
formatSubmit: 'yyyy/mm/dd',
|
13
|
+
labelMonthNext: 'Mois suivant',
|
14
|
+
labelMonthPrev: 'Mois précédent',
|
15
|
+
labelMonthSelect: 'Sélectionner un mois',
|
16
|
+
labelYearSelect: 'Sélectionner une année'
|
13
17
|
});
|
@@ -210,7 +210,8 @@
|
|
210
210
|
color: #ffffff;
|
211
211
|
}
|
212
212
|
.picker__day--disabled,
|
213
|
-
.picker__day--disabled:hover
|
213
|
+
.picker__day--disabled:hover,
|
214
|
+
.picker--focused .picker__day--disabled {
|
214
215
|
background: #f5f5f5;
|
215
216
|
border-color: #f5f5f5;
|
216
217
|
color: #dddddd;
|
@@ -221,56 +222,78 @@
|
|
221
222
|
background: #bbbbbb;
|
222
223
|
}
|
223
224
|
/**
|
224
|
-
* The footer containing the "today" and "
|
225
|
+
* The footer containing the "today", "clear", and "close" buttons.
|
225
226
|
*/
|
226
227
|
.picker__footer {
|
227
228
|
text-align: center;
|
228
229
|
}
|
229
230
|
.picker__button--today,
|
230
|
-
.picker__button--clear
|
231
|
+
.picker__button--clear,
|
232
|
+
.picker__button--close {
|
231
233
|
border: 1px solid #ffffff;
|
232
234
|
background: #ffffff;
|
233
235
|
font-size: .8em;
|
234
236
|
padding: .66em 0;
|
235
237
|
font-weight: bold;
|
236
|
-
width:
|
238
|
+
width: 33%;
|
237
239
|
display: inline-block;
|
238
240
|
vertical-align: bottom;
|
239
241
|
}
|
240
242
|
.picker__button--today:hover,
|
241
|
-
.picker__button--clear:hover
|
243
|
+
.picker__button--clear:hover,
|
244
|
+
.picker__button--close:hover {
|
242
245
|
cursor: pointer;
|
243
246
|
color: #000000;
|
244
247
|
background: #b1dcfb;
|
245
248
|
border-bottom-color: #b1dcfb;
|
246
249
|
}
|
247
250
|
.picker__button--today:focus,
|
248
|
-
.picker__button--clear:focus
|
251
|
+
.picker__button--clear:focus,
|
252
|
+
.picker__button--close:focus {
|
249
253
|
background: #b1dcfb;
|
250
254
|
border-color: #0089ec;
|
251
255
|
outline: none;
|
252
256
|
}
|
253
257
|
.picker__button--today:before,
|
254
|
-
.picker__button--clear:before
|
258
|
+
.picker__button--clear:before,
|
259
|
+
.picker__button--close:before {
|
255
260
|
position: relative;
|
256
261
|
display: inline-block;
|
257
262
|
height: 0;
|
258
263
|
}
|
259
|
-
.picker__button--today:before
|
264
|
+
.picker__button--today:before,
|
265
|
+
.picker__button--clear:before {
|
260
266
|
content: " ";
|
261
267
|
margin-right: .45em;
|
268
|
+
}
|
269
|
+
.picker__button--today:before {
|
262
270
|
top: -0.05em;
|
263
271
|
width: 0;
|
264
272
|
border-top: 0.66em solid #0059bc;
|
265
273
|
border-left: .66em solid transparent;
|
266
274
|
}
|
267
275
|
.picker__button--clear:before {
|
276
|
+
top: -0.25em;
|
277
|
+
width: .66em;
|
278
|
+
border-top: 3px solid #ee2200;
|
279
|
+
}
|
280
|
+
.picker__button--close:before {
|
268
281
|
content: "\D7";
|
269
|
-
margin-right: .35em;
|
270
282
|
top: -0.1em;
|
271
|
-
color: #ee2200;
|
272
283
|
vertical-align: top;
|
273
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;
|
274
297
|
}
|
275
298
|
|
276
299
|
/* ==========================================================================
|
@@ -62,6 +62,7 @@
|
|
62
62
|
-webkit-transition: background 0.15s ease-out, top 0s 0.15s;
|
63
63
|
-moz-transition: background 0.15s ease-out, top 0s 0.15s;
|
64
64
|
transition: background 0.15s ease-out, top 0s 0.15s;
|
65
|
+
-webkit-backface-visibility: hidden;
|
65
66
|
}
|
66
67
|
/**
|
67
68
|
* The frame that bounds the box contents of the picker.
|
@@ -210,7 +210,8 @@
|
|
210
210
|
color: #ffffff;
|
211
211
|
}
|
212
212
|
.picker__day--disabled,
|
213
|
-
.picker__day--disabled:hover
|
213
|
+
.picker__day--disabled:hover,
|
214
|
+
.picker--focused .picker__day--disabled {
|
214
215
|
background: #f5f5f5;
|
215
216
|
border-color: #f5f5f5;
|
216
217
|
color: #dddddd;
|
@@ -221,56 +222,78 @@
|
|
221
222
|
background: #bbbbbb;
|
222
223
|
}
|
223
224
|
/**
|
224
|
-
* The footer containing the "today" and "
|
225
|
+
* The footer containing the "today", "clear", and "close" buttons.
|
225
226
|
*/
|
226
227
|
.picker__footer {
|
227
228
|
text-align: center;
|
228
229
|
}
|
229
230
|
.picker__button--today,
|
230
|
-
.picker__button--clear
|
231
|
+
.picker__button--clear,
|
232
|
+
.picker__button--close {
|
231
233
|
border: 1px solid #ffffff;
|
232
234
|
background: #ffffff;
|
233
235
|
font-size: .8em;
|
234
236
|
padding: .66em 0;
|
235
237
|
font-weight: bold;
|
236
|
-
width:
|
238
|
+
width: 33%;
|
237
239
|
display: inline-block;
|
238
240
|
vertical-align: bottom;
|
239
241
|
}
|
240
242
|
.picker__button--today:hover,
|
241
|
-
.picker__button--clear:hover
|
243
|
+
.picker__button--clear:hover,
|
244
|
+
.picker__button--close:hover {
|
242
245
|
cursor: pointer;
|
243
246
|
color: #000000;
|
244
247
|
background: #b1dcfb;
|
245
248
|
border-bottom-color: #b1dcfb;
|
246
249
|
}
|
247
250
|
.picker__button--today:focus,
|
248
|
-
.picker__button--clear:focus
|
251
|
+
.picker__button--clear:focus,
|
252
|
+
.picker__button--close:focus {
|
249
253
|
background: #b1dcfb;
|
250
254
|
border-color: #0089ec;
|
251
255
|
outline: none;
|
252
256
|
}
|
253
257
|
.picker__button--today:before,
|
254
|
-
.picker__button--clear:before
|
258
|
+
.picker__button--clear:before,
|
259
|
+
.picker__button--close:before {
|
255
260
|
position: relative;
|
256
261
|
display: inline-block;
|
257
262
|
height: 0;
|
258
263
|
}
|
259
|
-
.picker__button--today:before
|
264
|
+
.picker__button--today:before,
|
265
|
+
.picker__button--clear:before {
|
260
266
|
content: " ";
|
261
267
|
margin-right: .45em;
|
268
|
+
}
|
269
|
+
.picker__button--today:before {
|
262
270
|
top: -0.05em;
|
263
271
|
width: 0;
|
264
272
|
border-top: 0.66em solid #0059bc;
|
265
273
|
border-left: .66em solid transparent;
|
266
274
|
}
|
267
275
|
.picker__button--clear:before {
|
276
|
+
top: -0.25em;
|
277
|
+
width: .66em;
|
278
|
+
border-top: 3px solid #ee2200;
|
279
|
+
}
|
280
|
+
.picker__button--close:before {
|
268
281
|
content: "\D7";
|
269
|
-
margin-right: .35em;
|
270
282
|
top: -0.1em;
|
271
|
-
color: #ee2200;
|
272
283
|
vertical-align: top;
|
273
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;
|
274
297
|
}
|
275
298
|
|
276
299
|
/* ==========================================================================
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pickadate-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Fraser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.2.
|
141
|
+
rubygems_version: 2.2.2
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Add pickadate.js to Rails 3.1+ via the asset pipeline. See http://amsul.ca/pickadate.js/
|