salix/front/core/components/calendar/style.scss

98 lines
2.5 KiB
SCSS
Raw Normal View History

2019-02-06 10:24:29 +00:00
@import "variables";
2018-11-12 10:31:58 +00:00
.vn-calendar {
2019-02-01 16:11:14 +00:00
display: block;
2018-11-12 10:31:58 +00:00
2019-10-23 15:38:35 +00:00
& > div {
& > .header {
display: flex;
margin-bottom: 0.5em;
align-items: center;
height: 2.4em;
& > .title {
flex: 1;
text-align: center;
padding: 0.2em 0;
}
& > .vn-button {
color: inherit;
}
2019-01-21 10:45:53 +00:00
}
2019-10-23 15:38:35 +00:00
& > .weekdays {
display: flex;
color: $color-font-secondary;
margin-bottom: 0.5em;
padding: 0.5em 0;
2019-10-23 15:38:35 +00:00
font-weight: bold;
font-size: 0.8em;
text-align: center;
2019-01-21 10:45:53 +00:00
2019-10-23 15:38:35 +00:00
& > section {
width: 14.28%;
cursor: pointer;
}
2019-01-21 10:45:53 +00:00
}
2019-10-23 15:38:35 +00:00
& > .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: 14px;
width: 2.2em;
height: 2.2em;
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;
}
}
2019-01-21 10:45:53 +00:00
}
}
2019-10-23 15:38:35 +00:00
&.disabled,
&.readonly {
& > div {
& > .weekdays > section {
cursor: initial;
}
& > .days > .day > .day-number {
cursor: initial;
}
2019-01-21 10:45:53 +00:00
}
2018-11-12 10:31:58 +00:00
}
}