react-toolbox/components/date_picker/theme.scss

157 lines
3.0 KiB
SCSS
Raw Normal View History

2016-06-04 23:06:59 +03:00
@import "../colors";
@import "../globals";
@import "../mixins";
@import "./config";
2016-08-04 21:48:52 +03:00
.input:not(.disabled) > .inputElement {
2016-05-21 21:52:48 +03:00
cursor: pointer;
}
.header {
padding: 1.6 * $unit 2 * $unit;
color: $datepicker-primary-contrast-color;
cursor: pointer;
background-color: $datepicker-primary-color;
}
.year {
display: inline-block;
font-size: $datepicker-year-font-size;
transition: opacity, font-size $animation-duration $animation-curve-default;
}
.date {
display: block;
font-weight: $font-weight-semi-bold;
text-transform: capitalize;
transition: opacity $animation-duration $animation-curve-default;
}
.calendarWrapper {
padding: $unit .5 * $unit 0;
}
.yearsDisplay {
.date {
opacity: $datepicker-inactive-opacity;
}
.year {
font-size: $font-size-normal;
}
}
.monthsDisplay {
.year {
opacity: $datepicker-inactive-opacity;
}
}
.dialog {
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;
}
}
}
.calendar {
position: relative;
height: $calendar-total-height;
2015-12-19 15:27:43 +03:00
overflow: hidden;
2015-10-21 02:47:09 +03:00
font-size: $font-size-small;
line-height: $calendar-row-height;
text-align: center;
background: $calendar-primary-contrast-color;
.prev, .next {
position: absolute;
top: 0;
z-index: $z-index-high;
2015-11-28 15:47:56 +03:00
height: 3.6 * $unit;
cursor: pointer;
opacity: .7;
}
.prev {
left: 0;
}
.next {
right: 0;
}
}
.title {
2015-11-25 00:58:50 +03:00
display: inline-block;
font-weight: 500;
2015-12-19 15:27:43 +03:00
line-height: $calendar-row-height;
}
.years {
height: 100%;
overflow-y: auto;
2015-10-21 02:47:09 +03:00
font-size: $font-size-big;
> li {
line-height: 2.4;
cursor: pointer;
&.active {
2015-10-21 02:47:09 +03:00
font-size: $calendar-year-font-size;
font-weight: $font-weight-semi-bold;
color: $calendar-primary-color;
}
}
}
.week {
display: flex;
height: $calendar-row-height;
2015-11-16 11:56:05 +03:00
flex-wrap: wrap;
2015-10-21 02:47:09 +03:00
font-size: $calendar-day-font-size;
line-height: $calendar-row-height;
opacity: .5;
> span {
flex: 0 0 (100% / 7);
}
}
.days {
display: flex;
flex-wrap: wrap;
2015-11-16 11:56:05 +03:00
font-size: $calendar-day-font-size;
}
2015-10-23 02:26:12 +03:00
.day {
flex: 0 0 (100% / 7);
padding: $calendar-day-padding-topbottom $calendar-day-padding-leftright;
> span {
display: inline-block;
width: $calendar-row-height;
height: $calendar-row-height;
line-height: $calendar-row-height;
border-radius: 50%;
}
2015-11-16 11:56:05 +03:00
&:hover:not(.active):not(.disabled) > span {
color: $calendar-primary-contrast-color;
background: $calendar-primary-hover-color;
}
&.active > span {
color: $calendar-primary-contrast-color;
background: $calendar-primary-color;
}
2015-11-16 11:56:05 +03:00
&:hover:not(.disabled) > span {
cursor: pointer;
}
&.disabled {
opacity: $calendar-day-disable-opacity;
}
}
.month {
background-color: $calendar-primary-contrast-color;
}