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

148 lines
3.8 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;
2020-04-02 12:20:57 +00:00
margin-bottom: 8px;
2019-10-23 15:38:35 +00:00
align-items: center;
2020-04-02 12:52:02 +00:00
height: 38px;
2019-10-23 15:38:35 +00:00
& > .title {
flex: 1;
text-align: center;
2020-04-02 12:20:57 +00:00
padding: 3px 0;
2019-10-23 15:38:35 +00:00
}
& > .vn-button {
color: inherit;
}
2019-01-21 10:45:53 +00:00
}
& #days-header {
flex-direction: row;
display: flex
}
& #days-header > .week-numbers {
width: 10%
}
& #days-header > .weekdays {
2019-10-23 15:38:35 +00:00
display: flex;
color: $color-font-secondary;
2020-04-02 12:20:57 +00:00
margin-bottom: 8px;
padding: 8px 0;
2019-10-23 15:38:35 +00:00
font-weight: bold;
2020-04-02 14:29:13 +00:00
font-size: .8rem;
2019-10-23 15:38:35 +00:00
text-align: center;
width: 90%;
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
}
& #days-header.hide-weeks {
& > .weekdays {
width: 100%
}
}
& > #days-container {
flex-direction: row;
display: flex
}
& > #days-container > .weeks {
display: flex;
flex-direction: column;
color: $color-font-secondary;
font-weight: bold;
font-size: .8rem;
width: 10%;
& > .day {
height: 40px;
display: flex;
justify-content: center;
align-items: center;
}
}
& #days-container.hide-weeks {
& > .days {
width: 100%
}
}
#days-container > .days {
2019-10-23 15:38:35 +00:00
display: flex;
flex-direction: row;
2019-10-23 15:38:35 +00:00
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 90%;
2019-10-23 15:38:35 +00:00
& > .day {
width: 14.28%;
2020-04-02 15:06:07 +00:00
height: 40px;
2019-10-23 15:38:35 +00:00
display: flex;
justify-content: center;
align-items: center;
&.today {
2021-11-18 13:00:45 +00:00
color: $color-font;
& > .day-number {
border: 2px solid $color-font-link;
&:hover {
2021-11-18 13:00:45 +00:00
background-color: $color-marginal;
opacity: .8
}
}
}
2019-10-23 15:38:35 +00:00
&.weekend {
color: $color-font-secondary;
}
&.previous,
&.next {
opacity: .5;
}
&.event .day-number {
background-color: $color-main;
2020-09-24 09:15:35 +00:00
color: $color-font-bg;
2019-10-23 15:38:35 +00:00
}
& > .day-number {
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
2020-04-02 14:29:13 +00:00
font-size: .9rem;
2020-04-02 15:06:07 +00:00
width: 30px;
height: 30px;
2019-10-23 15:38:35 +00:00
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
}
}