minor styling changes to datepicker elements

This commit is contained in:
Danny 2018-05-16 17:37:10 +02:00
parent 44ae5d38f2
commit 16d9fdcf6c
3 changed files with 13 additions and 1 deletions

View File

@ -70,6 +70,12 @@ class DatePicker extends Component {
@bind
setDateRange(startDate, endDate, period) {
// don't update state if start > end. user may be busy picking dates.
// todo: show error
if(startDate > endDate) {
return;
}
const timezoneOffset = (new Date()).getTimezoneOffset() * 60;
let before, after;

View File

@ -8,6 +8,7 @@ class Pikadayer extends Component {
new Pikaday({
field: this.base,
onSelect: this.props.onSelect,
position: 'bottom right',
})
}
render(props) {

View File

@ -85,8 +85,13 @@ body {
border: 0;
width: 68px;
outline: 0;
font-weight: bold;
font-weight: 500;
cursor: pointer;
&:hover,
&:focus {
color: #533feb;
}
}
nav li.visitors { color: #533feb; }