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

143 lines
3.0 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;
2019-03-22 07:28:57 +00:00
max-width: 250px;
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
2018-11-12 10:31:58 +00:00
}
.body {
2019-01-21 10:45:53 +00:00
.days {
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
}
.weekdays {
2019-02-08 16:49:51 +00:00
border-bottom: 1px solid $color-hover-cd;
border-top: 1px solid $color-hover-cd;
2019-01-21 10:45:53 +00:00
font-weight: bold
}
2018-11-12 10:31:58 +00:00
2019-01-21 10:45:53 +00:00
.day {
2018-11-12 10:31:58 +00:00
box-sizing: border-box;
padding: 0.1em;
width: 14.2857143%;
line-height: 1.5em;
2019-03-22 07:28:57 +00:00
outline: 0;
2018-11-12 10:31:58 +00:00
span {
2019-01-21 10:45:53 +00:00
transition: background-color 0.3s;
2018-11-12 10:31:58 +00:00
text-align: center;
2019-02-01 16:11:14 +00:00
font-size: .8em;
2018-11-12 10:31:58 +00:00
border-radius: 50%;
display: block;
padding: 0.2em;
cursor: pointer
}
}
2019-01-21 10:45:53 +00:00
.day:hover span {
2018-11-12 10:31:58 +00:00
background-color: #DDD
}
2019-01-21 10:45:53 +00:00
.day.gray {
2019-02-08 16:49:51 +00:00
color: $color-font-secondary
2018-11-12 10:31:58 +00:00
}
2019-01-21 10:45:53 +00:00
.day.orange {
font-weight: bold;
2019-02-08 16:49:51 +00:00
color: $color-main;
2019-01-21 10:45:53 +00:00
}
.day.orange-circle {
2019-02-08 16:49:51 +00:00
color: $color-font;
2019-01-21 10:45:53 +00:00
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-main
2019-01-21 10:45:53 +00:00
}
}
.day.orange-circle:hover {
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-main-medium
2019-01-21 10:45:53 +00:00
}
}
.day.light-orange {
2019-02-08 16:49:51 +00:00
color: $color-main-medium
2019-01-21 10:45:53 +00:00
}
.day.green {
font-weight: bold;
2019-02-08 16:49:51 +00:00
color: $color-success;
2019-01-21 10:45:53 +00:00
}
.day.green-circle {
2019-02-08 16:49:51 +00:00
color: $color-font;
2019-01-21 10:45:53 +00:00
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-success
2019-01-21 10:45:53 +00:00
}
}
.day.green-circle:hover {
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-success-medium
2019-01-21 10:45:53 +00:00
}
}
.day.light-green {
font-weight: bold;
2019-02-08 16:49:51 +00:00
color: $color-success-medium
2019-01-21 10:45:53 +00:00
}
.day.blue {
font-weight: bold;
2019-02-08 16:49:51 +00:00
color: $color-notice;
2019-01-21 10:45:53 +00:00
}
.day.blue-circle {
2019-02-08 16:49:51 +00:00
color: $color-font;
2019-01-21 10:45:53 +00:00
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-notice
2019-01-21 10:45:53 +00:00
}
}
.day.blue-circle:hover {
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-notice-medium
2019-01-21 10:45:53 +00:00
}
}
.day.light-blue {
font-weight: bold;
2019-02-08 16:49:51 +00:00
color: $color-notice-medium
2019-01-21 10:45:53 +00:00
}
.day.red {
font-weight: bold;
2019-02-08 16:49:51 +00:00
color: $color-alert
2019-01-21 10:45:53 +00:00
}
.day.red-circle {
2019-02-08 16:49:51 +00:00
color: $color-font;
2019-01-21 10:45:53 +00:00
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-alert
2019-01-21 10:45:53 +00:00
}
}
.day.red-circle:hover {
& > span {
2019-02-08 16:49:51 +00:00
background-color: $color-alert-medium
2019-01-21 10:45:53 +00:00
}
}
.day.light-red {
font-weight: bold;
2019-02-08 16:49:51 +00:00
color: $color-alert-medium;
2019-01-21 10:45:53 +00:00
}
2018-11-12 10:31:58 +00:00
}
}