flatpickr_rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flatpickr_rails.gemspec +1 -1
- data/lib/flatpickr_rails/version.rb +1 -1
- data/vendor/assets/javascripts/flatpickr/core.js +1034 -1
- data/vendor/assets/javascripts/flatpickr/index.js +0 -2
- data/vendor/assets/stylesheets/flatpickr.confetti.css +246 -1
- data/vendor/assets/stylesheets/flatpickr.css +242 -1
- data/vendor/assets/stylesheets/flatpickr.dark.css +243 -1
- data/vendor/assets/stylesheets/flatpickr.material_blue.css +246 -1
- data/vendor/assets/stylesheets/flatpickr.material_green.css +246 -1
- data/vendor/assets/stylesheets/flatpickr.material_orange.css +246 -1
- data/vendor/assets/stylesheets/flatpickr.material_red.css +246 -1
- metadata +2 -23
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ar.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.bg.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.bn.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.de.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.es.js +0 -17
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fa.js +0 -15
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fi.js +0 -17
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.fr.js +0 -19
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.he.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.hi.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ja.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ko.js +0 -15
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.nl.js +0 -21
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.no.js +0 -15
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pa.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pl.js +0 -15
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.pt.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.ru.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.sq.js +0 -11
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.tr.js +0 -13
- data/vendor/assets/javascripts/flatpickr/locales/flatpickr.l10n.zh.js +0 -11
@@ -1 +1,246 @@
|
|
1
|
-
.flatpickr-input
|
1
|
+
.flatpickr-input {
|
2
|
+
cursor: pointer;
|
3
|
+
z-index: 1;
|
4
|
+
}
|
5
|
+
.flatpickr-wrapper {
|
6
|
+
position: absolute;
|
7
|
+
display: block;
|
8
|
+
}
|
9
|
+
.flatpickr-wrapper.inline,
|
10
|
+
.flatpickr-wrapper.static {
|
11
|
+
display: block;
|
12
|
+
position: relative;
|
13
|
+
}
|
14
|
+
.flatpickr-wrapper.inline .flatpickr-calendar {
|
15
|
+
position: relative;
|
16
|
+
}
|
17
|
+
.flatpickr-wrapper.static .flatpickr-calendar {
|
18
|
+
position: absolute;
|
19
|
+
}
|
20
|
+
.flatpickr-wrapper input {
|
21
|
+
cursor: pointer;
|
22
|
+
z-index: 1;
|
23
|
+
}
|
24
|
+
.flatpickr-wrapper.open .flatpickr-calendar,
|
25
|
+
.flatpickr-wrapper.inline .flatpickr-calendar {
|
26
|
+
z-index: 99999;
|
27
|
+
display: block;
|
28
|
+
}
|
29
|
+
.flatpickr-calendar {
|
30
|
+
background: #fff;
|
31
|
+
font-size: 90%;
|
32
|
+
border-radius: 3px;
|
33
|
+
position: absolute;
|
34
|
+
top: 100%;
|
35
|
+
left: 0;
|
36
|
+
margin-top: 3px;
|
37
|
+
display: none;
|
38
|
+
width: 256px;
|
39
|
+
}
|
40
|
+
.flatpickr-calendar.hasWeeks {
|
41
|
+
width: 288px;
|
42
|
+
}
|
43
|
+
.flatpickr-calendar.hasWeeks .flatpickr-weekdays span {
|
44
|
+
width: 12.5%;
|
45
|
+
}
|
46
|
+
.flatpickr-calendar:before,
|
47
|
+
.flatpickr-calendar:after {
|
48
|
+
position: absolute;
|
49
|
+
display: block;
|
50
|
+
pointer-events: none;
|
51
|
+
border: solid transparent;
|
52
|
+
content: '';
|
53
|
+
height: 0;
|
54
|
+
width: 0;
|
55
|
+
bottom: 100%;
|
56
|
+
left: 22px;
|
57
|
+
}
|
58
|
+
.flatpickr-calendar:before {
|
59
|
+
border-width: 5px;
|
60
|
+
margin: 0 -5px;
|
61
|
+
border-bottom-color: rgba(72,72,72,0.1);
|
62
|
+
}
|
63
|
+
.flatpickr-calendar:after {
|
64
|
+
border-width: 4px;
|
65
|
+
margin: 0 -4px;
|
66
|
+
border-bottom-color: #1bbc9b;
|
67
|
+
}
|
68
|
+
.flatpickr-month {
|
69
|
+
border-radius: 3px 3px 0 0;
|
70
|
+
background: #1bbc9b;
|
71
|
+
color: #fff;
|
72
|
+
padding: 4px 5px 2px 5px;
|
73
|
+
text-align: center;
|
74
|
+
position: relative;
|
75
|
+
}
|
76
|
+
.flatpickr-prev-month,
|
77
|
+
.flatpickr-next-month {
|
78
|
+
text-decoration: none;
|
79
|
+
cursor: pointer;
|
80
|
+
position: absolute;
|
81
|
+
top: 0.5rem;
|
82
|
+
}
|
83
|
+
.flatpickr-prev-month i,
|
84
|
+
.flatpickr-next-month i {
|
85
|
+
position: relative;
|
86
|
+
}
|
87
|
+
.flatpickr-prev-month:hover,
|
88
|
+
.flatpickr-next-month:hover {
|
89
|
+
color: #bbb;
|
90
|
+
}
|
91
|
+
.flatpickr-prev-month {
|
92
|
+
float: left;
|
93
|
+
left: 0.5rem;
|
94
|
+
}
|
95
|
+
.flatpickr-next-month {
|
96
|
+
float: right;
|
97
|
+
right: 0.5rem;
|
98
|
+
}
|
99
|
+
.flatpickr-current-month {
|
100
|
+
font-size: 135%;
|
101
|
+
font-weight: 300;
|
102
|
+
color: rgba(255,255,255,0.7);
|
103
|
+
display: inline-block;
|
104
|
+
}
|
105
|
+
.flatpickr-current-month .cur_month {
|
106
|
+
font-weight: 700;
|
107
|
+
color: #fff;
|
108
|
+
}
|
109
|
+
.flatpickr-current-month .cur_year {
|
110
|
+
background: transparent;
|
111
|
+
box-sizing: content-box;
|
112
|
+
color: inherit;
|
113
|
+
cursor: default;
|
114
|
+
padding: 0 0 0 2px;
|
115
|
+
margin: 0;
|
116
|
+
width: 3.1em;
|
117
|
+
display: inline;
|
118
|
+
font-size: inherit;
|
119
|
+
line-height: inherit;
|
120
|
+
height: initial;
|
121
|
+
border: 0;
|
122
|
+
}
|
123
|
+
.flatpickr-current-month .cur_year:hover {
|
124
|
+
background: rgba(0,0,0,0.05);
|
125
|
+
}
|
126
|
+
.flatpickr-weekdays {
|
127
|
+
font-size: 90%;
|
128
|
+
background: #1bbc9b;
|
129
|
+
padding: 2px 0 4px 0;
|
130
|
+
text-align: center;
|
131
|
+
}
|
132
|
+
.flatpickr-weekdays span {
|
133
|
+
opacity: 0.54;
|
134
|
+
text-align: center;
|
135
|
+
display: inline-block;
|
136
|
+
width: 14.28%;
|
137
|
+
font-weight: bold;
|
138
|
+
}
|
139
|
+
.flatpickr-weeks {
|
140
|
+
width: 32px;
|
141
|
+
float: left;
|
142
|
+
}
|
143
|
+
.flatpickr-days {
|
144
|
+
padding-top: 1px;
|
145
|
+
border: 1px solid rgba(72,72,72,0.1);
|
146
|
+
border-top: 0;
|
147
|
+
border-radius: 0 0 3px 3px;
|
148
|
+
}
|
149
|
+
.flatpickr-day {
|
150
|
+
background: none;
|
151
|
+
border: 1px solid transparent;
|
152
|
+
border-radius: 150px;
|
153
|
+
box-sizing: border-box;
|
154
|
+
color: #484848;
|
155
|
+
cursor: pointer;
|
156
|
+
display: inline-block;
|
157
|
+
width: 34px;
|
158
|
+
height: 34px;
|
159
|
+
line-height: 33px;
|
160
|
+
margin: 0 1px 1px 1px;
|
161
|
+
text-align: center;
|
162
|
+
}
|
163
|
+
.flatpickr-day:hover {
|
164
|
+
background: #e2e2e2;
|
165
|
+
border-color: #e2e2e2;
|
166
|
+
}
|
167
|
+
.flatpickr-day.today {
|
168
|
+
border-color: #bbb;
|
169
|
+
}
|
170
|
+
.flatpickr-day.today:hover {
|
171
|
+
border-color: #bbb;
|
172
|
+
background: #bbb;
|
173
|
+
color: #fff;
|
174
|
+
}
|
175
|
+
.flatpickr-day.selected,
|
176
|
+
.flatpickr-day.selected:hover {
|
177
|
+
background: #1bbc9b;
|
178
|
+
color: #fff;
|
179
|
+
border-color: #1bbc9b;
|
180
|
+
}
|
181
|
+
.flatpickr-day.disabled,
|
182
|
+
.flatpickr-day.disabled:hover {
|
183
|
+
color: rgba(72,72,72,0.3);
|
184
|
+
background: transparent;
|
185
|
+
border-color: transparent;
|
186
|
+
cursor: default;
|
187
|
+
}
|
188
|
+
.flatpickr-time {
|
189
|
+
overflow: auto;
|
190
|
+
text-align: center;
|
191
|
+
border: 1px solid rgba(72,72,72,0.1);
|
192
|
+
border-top: 0;
|
193
|
+
}
|
194
|
+
.flatpickr-time input[type='number'] {
|
195
|
+
background: transparent;
|
196
|
+
-webkit-appearance: none;
|
197
|
+
-moz-appearance: textfield;
|
198
|
+
box-shadow: none;
|
199
|
+
border: 0;
|
200
|
+
border-radius: 0;
|
201
|
+
display: inline-block;
|
202
|
+
width: 33%;
|
203
|
+
min-width: 33%;
|
204
|
+
text-align: center;
|
205
|
+
margin: 0;
|
206
|
+
padding: 0;
|
207
|
+
height: 38px;
|
208
|
+
line-height: 38px;
|
209
|
+
cursor: pointer;
|
210
|
+
font-weight: bold;
|
211
|
+
color: #484848;
|
212
|
+
}
|
213
|
+
.flatpickr-time input[type='number'].flatpickr-minute {
|
214
|
+
width: 26%;
|
215
|
+
font-weight: 300;
|
216
|
+
}
|
217
|
+
.flatpickr-time input[type='number'].flatpickr-second {
|
218
|
+
font-weight: 300;
|
219
|
+
}
|
220
|
+
.flatpickr-time input[type='number']:focus {
|
221
|
+
outline: 0;
|
222
|
+
border: 0;
|
223
|
+
}
|
224
|
+
.flatpickr-time input[type='number']:hover {
|
225
|
+
background: #ececec;
|
226
|
+
}
|
227
|
+
.flatpickr-time.has-seconds input[type='number'] {
|
228
|
+
width: 25%;
|
229
|
+
min-width: 25%;
|
230
|
+
}
|
231
|
+
.flatpickr-time-separator,
|
232
|
+
.flatpickr-am-pm {
|
233
|
+
height: 38px;
|
234
|
+
display: inline-block;
|
235
|
+
line-height: 38px;
|
236
|
+
color: #484848;
|
237
|
+
}
|
238
|
+
.flatpickr-am-pm {
|
239
|
+
width: 21%;
|
240
|
+
padding: 0 2%;
|
241
|
+
cursor: pointer;
|
242
|
+
text-align: left;
|
243
|
+
}
|
244
|
+
.flatpickr-am-pm:hover {
|
245
|
+
background: #ececec;
|
246
|
+
}
|
@@ -1 +1,246 @@
|
|
1
|
-
.flatpickr-input
|
1
|
+
.flatpickr-input {
|
2
|
+
cursor: pointer;
|
3
|
+
z-index: 1;
|
4
|
+
}
|
5
|
+
.flatpickr-wrapper {
|
6
|
+
position: absolute;
|
7
|
+
display: block;
|
8
|
+
}
|
9
|
+
.flatpickr-wrapper.inline,
|
10
|
+
.flatpickr-wrapper.static {
|
11
|
+
display: block;
|
12
|
+
position: relative;
|
13
|
+
}
|
14
|
+
.flatpickr-wrapper.inline .flatpickr-calendar {
|
15
|
+
position: relative;
|
16
|
+
}
|
17
|
+
.flatpickr-wrapper.static .flatpickr-calendar {
|
18
|
+
position: absolute;
|
19
|
+
}
|
20
|
+
.flatpickr-wrapper input {
|
21
|
+
cursor: pointer;
|
22
|
+
z-index: 1;
|
23
|
+
}
|
24
|
+
.flatpickr-wrapper.open .flatpickr-calendar,
|
25
|
+
.flatpickr-wrapper.inline .flatpickr-calendar {
|
26
|
+
z-index: 99999;
|
27
|
+
display: block;
|
28
|
+
}
|
29
|
+
.flatpickr-calendar {
|
30
|
+
background: #fff;
|
31
|
+
font-size: 90%;
|
32
|
+
border-radius: 3px;
|
33
|
+
position: absolute;
|
34
|
+
top: 100%;
|
35
|
+
left: 0;
|
36
|
+
margin-top: 3px;
|
37
|
+
display: none;
|
38
|
+
width: 256px;
|
39
|
+
}
|
40
|
+
.flatpickr-calendar.hasWeeks {
|
41
|
+
width: 288px;
|
42
|
+
}
|
43
|
+
.flatpickr-calendar.hasWeeks .flatpickr-weekdays span {
|
44
|
+
width: 12.5%;
|
45
|
+
}
|
46
|
+
.flatpickr-calendar:before,
|
47
|
+
.flatpickr-calendar:after {
|
48
|
+
position: absolute;
|
49
|
+
display: block;
|
50
|
+
pointer-events: none;
|
51
|
+
border: solid transparent;
|
52
|
+
content: '';
|
53
|
+
height: 0;
|
54
|
+
width: 0;
|
55
|
+
bottom: 100%;
|
56
|
+
left: 22px;
|
57
|
+
}
|
58
|
+
.flatpickr-calendar:before {
|
59
|
+
border-width: 5px;
|
60
|
+
margin: 0 -5px;
|
61
|
+
border-bottom-color: rgba(255,138,101,0.2);
|
62
|
+
}
|
63
|
+
.flatpickr-calendar:after {
|
64
|
+
border-width: 4px;
|
65
|
+
margin: 0 -4px;
|
66
|
+
border-bottom-color: #ff8a65;
|
67
|
+
}
|
68
|
+
.flatpickr-month {
|
69
|
+
border-radius: 3px 3px 0 0;
|
70
|
+
background: #ff8a65;
|
71
|
+
color: #fff;
|
72
|
+
padding: 4px 5px 2px 5px;
|
73
|
+
text-align: center;
|
74
|
+
position: relative;
|
75
|
+
}
|
76
|
+
.flatpickr-prev-month,
|
77
|
+
.flatpickr-next-month {
|
78
|
+
text-decoration: none;
|
79
|
+
cursor: pointer;
|
80
|
+
position: absolute;
|
81
|
+
top: 0.5rem;
|
82
|
+
}
|
83
|
+
.flatpickr-prev-month i,
|
84
|
+
.flatpickr-next-month i {
|
85
|
+
position: relative;
|
86
|
+
}
|
87
|
+
.flatpickr-prev-month:hover,
|
88
|
+
.flatpickr-next-month:hover {
|
89
|
+
color: #bbb;
|
90
|
+
}
|
91
|
+
.flatpickr-prev-month {
|
92
|
+
float: left;
|
93
|
+
left: 0.5rem;
|
94
|
+
}
|
95
|
+
.flatpickr-next-month {
|
96
|
+
float: right;
|
97
|
+
right: 0.5rem;
|
98
|
+
}
|
99
|
+
.flatpickr-current-month {
|
100
|
+
font-size: 135%;
|
101
|
+
font-weight: 300;
|
102
|
+
color: rgba(255,255,255,0.7);
|
103
|
+
display: inline-block;
|
104
|
+
}
|
105
|
+
.flatpickr-current-month .cur_month {
|
106
|
+
font-weight: 700;
|
107
|
+
color: #fff;
|
108
|
+
}
|
109
|
+
.flatpickr-current-month .cur_year {
|
110
|
+
background: transparent;
|
111
|
+
box-sizing: content-box;
|
112
|
+
color: inherit;
|
113
|
+
cursor: default;
|
114
|
+
padding: 0 0 0 2px;
|
115
|
+
margin: 0;
|
116
|
+
width: 3.1em;
|
117
|
+
display: inline;
|
118
|
+
font-size: inherit;
|
119
|
+
line-height: inherit;
|
120
|
+
height: initial;
|
121
|
+
border: 0;
|
122
|
+
}
|
123
|
+
.flatpickr-current-month .cur_year:hover {
|
124
|
+
background: rgba(0,0,0,0.05);
|
125
|
+
}
|
126
|
+
.flatpickr-weekdays {
|
127
|
+
font-size: 90%;
|
128
|
+
background: #ff8a65;
|
129
|
+
padding: 2px 0 4px 0;
|
130
|
+
text-align: center;
|
131
|
+
}
|
132
|
+
.flatpickr-weekdays span {
|
133
|
+
opacity: 0.54;
|
134
|
+
text-align: center;
|
135
|
+
display: inline-block;
|
136
|
+
width: 14.28%;
|
137
|
+
font-weight: bold;
|
138
|
+
}
|
139
|
+
.flatpickr-weeks {
|
140
|
+
width: 32px;
|
141
|
+
float: left;
|
142
|
+
}
|
143
|
+
.flatpickr-days {
|
144
|
+
padding-top: 1px;
|
145
|
+
border: 1px solid rgba(255,138,101,0.2);
|
146
|
+
border-top: 0;
|
147
|
+
border-radius: 0 0 3px 3px;
|
148
|
+
}
|
149
|
+
.flatpickr-day {
|
150
|
+
background: none;
|
151
|
+
border: 1px solid transparent;
|
152
|
+
border-radius: 150px;
|
153
|
+
box-sizing: border-box;
|
154
|
+
color: #484848;
|
155
|
+
cursor: pointer;
|
156
|
+
display: inline-block;
|
157
|
+
width: 34px;
|
158
|
+
height: 34px;
|
159
|
+
line-height: 33px;
|
160
|
+
margin: 0 1px 1px 1px;
|
161
|
+
text-align: center;
|
162
|
+
}
|
163
|
+
.flatpickr-day:hover {
|
164
|
+
background: #e2e2e2;
|
165
|
+
border-color: #e2e2e2;
|
166
|
+
}
|
167
|
+
.flatpickr-day.today {
|
168
|
+
border-color: #bbb;
|
169
|
+
}
|
170
|
+
.flatpickr-day.today:hover {
|
171
|
+
border-color: #bbb;
|
172
|
+
background: #bbb;
|
173
|
+
color: #fff;
|
174
|
+
}
|
175
|
+
.flatpickr-day.selected,
|
176
|
+
.flatpickr-day.selected:hover {
|
177
|
+
background: #ff8a65;
|
178
|
+
color: #fff;
|
179
|
+
border-color: #ff8a65;
|
180
|
+
}
|
181
|
+
.flatpickr-day.disabled,
|
182
|
+
.flatpickr-day.disabled:hover {
|
183
|
+
color: rgba(72,72,72,0.3);
|
184
|
+
background: transparent;
|
185
|
+
border-color: transparent;
|
186
|
+
cursor: default;
|
187
|
+
}
|
188
|
+
.flatpickr-time {
|
189
|
+
overflow: auto;
|
190
|
+
text-align: center;
|
191
|
+
border: 1px solid rgba(255,138,101,0.2);
|
192
|
+
border-top: 0;
|
193
|
+
}
|
194
|
+
.flatpickr-time input[type='number'] {
|
195
|
+
background: transparent;
|
196
|
+
-webkit-appearance: none;
|
197
|
+
-moz-appearance: textfield;
|
198
|
+
box-shadow: none;
|
199
|
+
border: 0;
|
200
|
+
border-radius: 0;
|
201
|
+
display: inline-block;
|
202
|
+
width: 33%;
|
203
|
+
min-width: 33%;
|
204
|
+
text-align: center;
|
205
|
+
margin: 0;
|
206
|
+
padding: 0;
|
207
|
+
height: 38px;
|
208
|
+
line-height: 38px;
|
209
|
+
cursor: pointer;
|
210
|
+
font-weight: bold;
|
211
|
+
color: #484848;
|
212
|
+
}
|
213
|
+
.flatpickr-time input[type='number'].flatpickr-minute {
|
214
|
+
width: 26%;
|
215
|
+
font-weight: 300;
|
216
|
+
}
|
217
|
+
.flatpickr-time input[type='number'].flatpickr-second {
|
218
|
+
font-weight: 300;
|
219
|
+
}
|
220
|
+
.flatpickr-time input[type='number']:focus {
|
221
|
+
outline: 0;
|
222
|
+
border: 0;
|
223
|
+
}
|
224
|
+
.flatpickr-time input[type='number']:hover {
|
225
|
+
background: #ececec;
|
226
|
+
}
|
227
|
+
.flatpickr-time.has-seconds input[type='number'] {
|
228
|
+
width: 25%;
|
229
|
+
min-width: 25%;
|
230
|
+
}
|
231
|
+
.flatpickr-time-separator,
|
232
|
+
.flatpickr-am-pm {
|
233
|
+
height: 38px;
|
234
|
+
display: inline-block;
|
235
|
+
line-height: 38px;
|
236
|
+
color: #484848;
|
237
|
+
}
|
238
|
+
.flatpickr-am-pm {
|
239
|
+
width: 21%;
|
240
|
+
padding: 0 2%;
|
241
|
+
cursor: pointer;
|
242
|
+
text-align: left;
|
243
|
+
}
|
244
|
+
.flatpickr-am-pm:hover {
|
245
|
+
background: #ececec;
|
246
|
+
}
|