react-toolbox/components/date_picker/calendar/style.scss

99 lines
1.8 KiB
SCSS

@import "../../base";
@import "./config";
.root {
position: relative;
height: $calendar-total-height;
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;
width: $calendar-row-height;
height: $calendar-row-height;
font-size: $calendar-arrows-font-size;
line-height: $calendar-row-height;
color: $calendar-arrows-color;
text-align: center;
cursor: pointer;
opacity: .7;
}
.prev {
left: 0;
}
.next {
right: 0;
}
}
.title {
font-weight: 500;
}
.years {
height: 100%;
overflow: scroll;
font-size: $font-size-big;
> li {
line-height: 2.4;
cursor: pointer;
&.active {
font-size: $calendar-year-font-size;
color: $calendar-primary-color;
}
}
}
.week {
display: flex;
height: $calendar-row-height;
font-size: $calendar-day-font-size;
line-height: $calendar-row-height;
opacity: .5;
flex-wrap: wrap;
> span {
flex: 0 0 (100% / 7);
}
}
.days {
display: flex;
font-size: $calendar-day-font-size;
flex-wrap: wrap;
}
.day {
flex: 0 0 (100% / 7);
padding: $calendar-day-padding;
> span {
display: inline-block;
width: $calendar-row-height;
height: $calendar-row-height;
line-height: $calendar-row-height;
cursor: pointer;
border-radius: 50%;
}
&:hover:not(.active) > span {
color: $calendar-primary-contrast-color;
background: $calendar-primary-hover-color;
}
&.active > span {
color: $calendar-primary-contrast-color;
background: $calendar-primary-color;
}
}
.month {
background-color: $calendar-primary-contrast-color;
}
.ripple {
opacity: .5;
transition-duration: $calendar-arrows-ripple-duration;
}