Updated to standard color
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-09-24 11:15:35 +02:00
parent d18d7670ec
commit d2dbf417f4
3 changed files with 6 additions and 4 deletions

View File

@ -55,7 +55,7 @@
} }
&.event .day-number { &.event .day-number {
background-color: $color-main; background-color: $color-main;
color: $color-font-dark; color: $color-font-bg;
} }
& > .day-number { & > .day-number {
display: flex; display: flex;

View File

@ -105,7 +105,7 @@ class Controller extends Section {
addEvent(holiday.dated, { addEvent(holiday.dated, {
name: holidayName, name: holidayName,
border: '2px solid #FF4444' className: 'festive'
}); });
}); });
} }
@ -135,10 +135,12 @@ class Controller extends Section {
let dayNumber = element.firstElementChild; let dayNumber = element.firstElementChild;
dayNumber.title = event.name; dayNumber.title = event.name;
dayNumber.style.backgroundColor = event.color; dayNumber.style.backgroundColor = event.color;
dayNumber.style.color = 'rgba(0, 0, 0, 0.7)';
if (event.border) if (event.border)
dayNumber.style.border = event.border; dayNumber.style.border = event.border;
if (event.className)
dayNumber.classList.add(event.className);
} }
pick(absenceType) { pick(absenceType) {

View File

@ -44,7 +44,7 @@ vn-worker-calendar {
.festive { .festive {
background-color:white; background-color:white;
border: 2px solid #FF4444; border: 2px solid $color-alert;
width: 24px; width: 24px;
min-width: 24px; min-width: 24px;
height: 24px height: 24px