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

128 lines
2.2 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
}
}
2019-06-27 09:48:33 +00:00
vn-calendar[disabled] .day .day-number {
cursor: not-allowed
}
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
}
2019-01-21 10:45:53 +00:00
.weekdays {
color: $color-font-secondary;
margin-bottom: 0.5em;
padding: 0.5em 0;
font-weight: bold;
font-size: 0.8em;
}
2018-11-12 10:31:58 +00:00
.weekdays section {
cursor: pointer
}
2018-11-12 10:31:58 +00:00
.weekdays section, .day {
position: relative;
text-align: center;
box-sizing: border-box;
width: 14.28%;
outline: 0;
}
2018-11-12 10:31:58 +00:00
.days {
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
}
2019-01-21 10:45:53 +00:00
.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
}
}
2019-01-21 10:45:53 +00:00
.day::after {
content: "";
display: block;
padding-top: 100%;
}
2019-01-21 10:45:53 +00:00
.day.primary .day-number {
background-color: $color-main;
color: $color-font-bg;
}
2019-01-21 10:45:53 +00:00
.events {
margin-top: 0.5em;
font-size: 0.6em
}
2019-01-21 10:45:53 +00:00
.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
}
}
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;
}
2019-01-21 10:45:53 +00:00
.day.gray {
.day-number {
color: $color-font-secondary
2019-01-21 10:45:53 +00:00
}
}
2019-01-21 10:45:53 +00:00
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
}
}