Allow the dashboard edit-item date picker to select the month and year via dropdown, and clean up the styles on mobile

This commit is contained in:
Kevin MacMartin 2018-01-16 00:38:08 -05:00
parent 0b3a322bf3
commit 7fcdf75a61
2 changed files with 19 additions and 1 deletions

View file

@ -406,7 +406,9 @@ function editItemInit() {
$(this).pickadate({
format: "yyyy-mm-dd",
formatSubmit: "yyyy-mm-dd",
clear: false
clear: false,
selectYears: true,
selectMonths: true
});
});

View file

@ -350,6 +350,22 @@ body {
.picker__holder {
overflow-y: hidden;
.picker__button--today {
white-space: nowrap;
}
.picker__select--year, .picker__select--month, .picker__month, .picker__day, .picker__weekday, .picker__footer {
@media (max-width: $screen-xs-max) {
font-size: 16px;
}
}
.picker__select--year, .picker__select--month {
width: auto;
height: 1.5em;
padding: 0px;
}
}
label {