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

104 lines
2.1 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.small {
.events {
display: none
}
}
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
.header vn-one {
2019-01-21 10:45:53 +00:00
text-align: center;
padding: 0.2em 0;
height: 1.5em
2018-11-12 10:31:58 +00:00
}
.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
2019-01-21 10:45:53 +00:00
}
.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
2019-01-21 10:45:53 +00:00
}
.day-number:hover {
background-color: lighten($color-font-secondary, 20%);
opacity: 0.8
2019-01-21 10:45:53 +00:00
}
}
.day::after {
content: "";
display: block;
padding-top: 100%;
}
.day.primary .day-number {
background-color: $color-main;
2019-09-25 18:06:42 +00:00
color: $color-font-dark;
}
.events {
margin-top: 0.5em;
font-size: 0.6em
}
.events {
color: $color-font-secondary;
2019-01-21 10:45:53 +00:00
.event {
margin-bottom: .1em;
2019-01-21 10:45:53 +00:00
}
}
.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
2019-01-21 10:45:53 +00:00
}
}
.day.sunday {
.day-number {
color: $color-alert;
font-weight: bold
2019-01-21 10:45:53 +00:00
}
2018-11-12 10:31:58 +00:00
}
}