web-apps/apps/common/main/resources/less/calendar.less

129 lines
2.6 KiB
Plaintext
Raw Normal View History

2021-02-16 07:21:22 +00:00
@calendar-bg-color: @header-background-color-ie;
@calendar-bg-color: @header-background-color;
2019-10-21 14:04:16 +00:00
.calendar-window {
border-radius: 0;
box-shadow: none;
}
2019-10-28 14:18:35 +00:00
.calendar-box {
width: 198px;
height: 220px;
border: 1px solid @calendar-bg-color;
2019-10-31 10:40:22 +00:00
.top-row {
padding: 0 5px;
}
2019-10-21 14:04:16 +00:00
.btn {
background-color: transparent;
border: none;
2019-10-31 10:40:22 +00:00
height: 20px;
width: 20px;
margin-top: 4px;
display: flex;
justify-content: center;
align-items: center;
2019-10-21 14:04:16 +00:00
.icon {
2019-10-31 10:40:22 +00:00
width: 16px;
height: 16px;
2019-10-21 14:04:16 +00:00
display: block;
position: relative;
2019-10-31 10:40:22 +00:00
&.arrow-prev {
background-position: -55px -96px;
}
&.arrow-next {
background-position: -52px -112px;
}
}
&:hover {
background-color: rgba(255,255,255,0.2);
cursor: pointer;
2019-10-21 14:04:16 +00:00
}
}
.calendar-header {
height: 50px;
background-color: @calendar-bg-color;
color: #FFFFFF;
.top-row {
display: flex;
justify-content: space-between;
}
.bottom-row {
display: flex;
2019-10-28 14:18:35 +00:00
justify-content: space-around;
padding: 0;
2019-10-21 14:04:16 +00:00
}
.title {
2019-10-31 10:40:22 +00:00
width: 100%;
margin: 4px 6px 3px 6px;
text-align: center;
2019-10-21 14:04:16 +00:00
font-size: 13px;
label {
2019-10-30 08:17:15 +00:00
padding: 2px 10px 0;
display: block;
2019-10-21 14:04:16 +00:00
font-weight: bold;
&:not(:last-of-type) {
margin-right: 6px;
}
}
2019-10-30 08:17:15 +00:00
.button {
height: 100%;
width: 100%;
&:hover {
background-color: rgba(255,255,255,0.2);
2019-10-29 10:33:24 +00:00
cursor: pointer;
2019-10-30 08:17:15 +00:00
label {
cursor: pointer;
}
2019-10-29 10:33:24 +00:00
}
}
2019-10-21 14:04:16 +00:00
2019-10-28 14:18:35 +00:00
}
}
.calendar-content {
.item {
margin: 0;
padding: 0;
height: auto;
width: auto;
box-shadow: none;
border: 1px solid #fff;
.name-month, .name-year {
height: 40px;
width: 47px;
background-color: #F1F1F1;
display: flex;
justify-content: center;
align-items: center;
font-size: 13px;
}
.number-day {
height: 26px;
width: 26px;
background-color: #F1F1F1;
display: flex;
justify-content: center;
align-items: center;
}
&.selected {
.number-day, .name-month, .name-year {
color: #fff;
background-color: #7D858C;
}
}
.weekend {
color: #D25252;
}
.no-current-month, .no-cur-year, .no-current-decade {
color: #A5A5A5;
}
&:not(.disabled):not(.selected) {
.number-day, .name-month, .name-year {
&:hover {
background-color: #D9D9D9;
}
}
}
2019-10-21 14:04:16 +00:00
}
}
}