2015-10-10 21:06:16 +03:00
|
|
|
@import "../variables";
|
|
|
|
|
2015-10-11 20:07:09 +03:00
|
|
|
$datepicker-primary: $color-primary;
|
|
|
|
$datepicker-primary-contrast: $color-primary-contrast;
|
|
|
|
$datepicker-primary-dark: $color-primary-dark;
|
|
|
|
$datepicker-primary-color: unquote("rgb(#{$datepicker-primary})") !default;
|
|
|
|
$datepicker-primary-hover-color: unquote("rgba(#{$datepicker-primary}, 0.20)") !default;
|
|
|
|
$datepicker-primary-contrast-color: unquote("rgb(#{$datepicker-primary-contrast})") !default;
|
|
|
|
$datepicker-primary-dark-color: unquote("rgb(#{$datepicker-primary-dark})") !default;
|
|
|
|
$datepicker-dialog-width: 30 * $unit;
|
|
|
|
$datepicker-inactive-opacity: .6;
|
2015-10-10 21:06:16 +03:00
|
|
|
|
2015-10-11 20:07:09 +03:00
|
|
|
.input > [role="input"] {
|
|
|
|
cursor: pointer;
|
2015-10-10 21:06:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
2015-10-11 20:07:09 +03:00
|
|
|
padding-bottom: $unit;
|
|
|
|
color: $datepicker-primary-contrast-color;
|
2015-10-10 21:06:16 +03:00
|
|
|
text-align: center;
|
2015-10-11 20:07:09 +03:00
|
|
|
background-color: $datepicker-primary-color;
|
2015-10-10 21:06:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.weekday {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 1.4 * $unit;
|
|
|
|
line-height: 2 * $unit;
|
2015-10-11 20:07:09 +03:00
|
|
|
background-color: $datepicker-primary-dark-color;
|
2015-10-10 21:06:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.month {
|
|
|
|
display: block;
|
|
|
|
padding: $unit;
|
|
|
|
font-size: 1.8 * $unit;
|
|
|
|
text-transform: uppercase;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.day {
|
|
|
|
display: block;
|
|
|
|
font-size: 5 * $unit;
|
|
|
|
line-height: 4 * $unit;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.year {
|
2015-10-11 20:07:09 +03:00
|
|
|
display: inline-block;
|
|
|
|
margin-top: $unit;
|
2015-10-10 21:06:16 +03:00
|
|
|
font-size: 1.8 * $unit;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wrapper {
|
2015-10-11 20:07:09 +03:00
|
|
|
padding: $unit .5 * $unit 0;
|
2015-10-10 21:06:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.display-years {
|
|
|
|
.day, .month {
|
2015-10-11 20:07:09 +03:00
|
|
|
opacity: $datepicker-inactive-opacity;
|
2015-10-10 21:06:16 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.display-months {
|
|
|
|
.year {
|
2015-10-11 20:07:09 +03:00
|
|
|
opacity: $datepicker-inactive-opacity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog > [role="content"] {
|
|
|
|
width: $datepicker-dialog-width;
|
|
|
|
|
|
|
|
> [role="body"] {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> [role="navigation"] > .button {
|
|
|
|
color: $datepicker-primary-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $datepicker-primary-hover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus:not(:active) {
|
|
|
|
background: $datepicker-primary-hover-color;
|
|
|
|
}
|
2015-10-10 21:06:16 +03:00
|
|
|
}
|
|
|
|
}
|