128 lines
2.2 KiB
SCSS
128 lines
2.2 KiB
SCSS
@import "variables";
|
|
|
|
vn-calendar.small {
|
|
.events {
|
|
display: none
|
|
}
|
|
}
|
|
|
|
vn-calendar[disabled] .day .day-number {
|
|
cursor: not-allowed
|
|
}
|
|
|
|
vn-calendar {
|
|
display: block;
|
|
|
|
.header vn-one {
|
|
text-align: center;
|
|
padding: 0.2em 0;
|
|
height: 1.5em
|
|
}
|
|
|
|
|
|
.weekdays {
|
|
color: $color-font-secondary;
|
|
margin-bottom: 0.5em;
|
|
padding: 0.5em 0;
|
|
font-weight: bold;
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.weekdays section {
|
|
cursor: pointer
|
|
}
|
|
|
|
.weekdays section, .day {
|
|
position: relative;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
width: 14.28%;
|
|
outline: 0;
|
|
}
|
|
|
|
.days {
|
|
justify-content: flex-start;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
|
|
.day {
|
|
.content {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
left: 0;
|
|
top: 0
|
|
}
|
|
|
|
.day-number {
|
|
transition: background-color 0.3s;
|
|
text-align:center;
|
|
float:inline-end;
|
|
margin: 0 auto;
|
|
border-radius: 50%;
|
|
font-size: 0.85em;
|
|
width:2.2em;
|
|
height: 1.2em;
|
|
padding: 0.5em 0;
|
|
cursor: pointer;
|
|
outline: 0
|
|
}
|
|
|
|
.day-number:hover {
|
|
background-color: lighten($color-font-secondary, 20%);
|
|
opacity: 0.8
|
|
}
|
|
}
|
|
|
|
.day::after {
|
|
content: "";
|
|
display: block;
|
|
padding-top: 100%;
|
|
}
|
|
|
|
.day.primary .day-number {
|
|
background-color: $color-main;
|
|
color: $color-font-bg;
|
|
}
|
|
|
|
.events {
|
|
margin-top: 0.5em;
|
|
font-size: 0.6em
|
|
}
|
|
|
|
|
|
.events {
|
|
color: $color-font-secondary;
|
|
|
|
.event {
|
|
margin-bottom: .1em;
|
|
}
|
|
}
|
|
|
|
.chip {
|
|
background-color: $color-main;
|
|
color: $color-font-bg;
|
|
display: inline-block;
|
|
border-radius: .3em;
|
|
padding: 0.3em .8em;
|
|
max-width: 5em;
|
|
}
|
|
|
|
.day.gray {
|
|
.day-number {
|
|
color: $color-font-secondary
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.day.sunday {
|
|
.day-number {
|
|
color: $color-alert;
|
|
font-weight: bold
|
|
}
|
|
}
|
|
}
|