98 lines
2.5 KiB
SCSS
98 lines
2.5 KiB
SCSS
@import "variables";
|
|
|
|
.vn-calendar {
|
|
display: block;
|
|
|
|
& > div {
|
|
& > .header {
|
|
display: flex;
|
|
margin-bottom: 8px;
|
|
align-items: center;
|
|
height: 38px;
|
|
|
|
& > .title {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 3px 0;
|
|
}
|
|
& > .vn-button {
|
|
color: inherit;
|
|
}
|
|
}
|
|
& > .weekdays {
|
|
display: flex;
|
|
color: $color-font-secondary;
|
|
margin-bottom: 8px;
|
|
padding: 8px 0;
|
|
font-weight: bold;
|
|
font-size: .8rem;
|
|
text-align: center;
|
|
|
|
& > section {
|
|
width: 14.28%;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
& > .days {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
|
|
& > .day {
|
|
width: 14.28%;
|
|
height: 40px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
&.weekend {
|
|
color: $color-font-secondary;
|
|
}
|
|
&.previous,
|
|
&.next {
|
|
opacity: .5;
|
|
}
|
|
&.event .day-number {
|
|
background-color: $color-main;
|
|
color: $color-font-dark;
|
|
}
|
|
& > .day-number {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 50%;
|
|
font-size: .9rem;
|
|
width: 30px;
|
|
height: 30px;
|
|
cursor: pointer;
|
|
outline: 0;
|
|
transition: background-color 300ms ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: lighten($color-font-secondary, 20%);
|
|
opacity: .8
|
|
}
|
|
}
|
|
}
|
|
&.hide-contiguous > .day {
|
|
&.previous,
|
|
&.next {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&.disabled,
|
|
&.readonly {
|
|
& > div {
|
|
& > .weekdays > section {
|
|
cursor: initial;
|
|
}
|
|
& > .days > .day > .day-number {
|
|
cursor: initial;
|
|
}
|
|
}
|
|
}
|
|
}
|