Calendar colors

main2
Bob Mottram 2019-10-11 12:42:09 +01:00
parent 542950606b
commit 6caa442263
2 changed files with 6 additions and 4 deletions

View File

@ -8,6 +8,8 @@
--today-circle: red; --today-circle: red;
--event-background: orange; --event-background: orange;
--event-foreground:white; --event-foreground:white;
--title-text: #282c37;
--title-background: #222;
} }
body { body {
@ -120,13 +122,13 @@ tr:nth-child(even) > .calendar__day__cell:nth-child(even) {
.calendar__day__cell[data-today-event] { .calendar__day__cell[data-today-event] {
border-radius: 50%; border-radius: 50%;
background-color: var(--lines-color); background-color: var(--event-background);
border: 4px solid var(--event-foreground); border: 4px solid var(--today-circle);
color: var(--event-foreground); color: var(--event-foreground);
text-align: center; text-align: center;
} }
.calendar__day__cell[data-today-event]:after { .calendar__day__cell[data-today-event]:after {
content: attr(data-event); content: attr(data-today-event);
color: var(--day-number); color: var(--day-number);
display: block; display: block;
font-weight: 400; font-weight: 400;

View File

@ -2895,7 +2895,7 @@ def htmlCalendar(translate: {}, \
if currDate.month==monthNumber: if currDate.month==monthNumber:
if dayOfMonth==currDate.day: if dayOfMonth==currDate.day:
isToday=True isToday=True
if dayOfMonth==11: if dayOfMonth==4:
events[str(dayOfMonth)]=[{"test": 1},{"test2": 2},{"test3": 3},{"test4": 4}] events[str(dayOfMonth)]=[{"test": 1},{"test2": 2},{"test3": 3},{"test4": 4}]
if events.get(str(dayOfMonth)): if events.get(str(dayOfMonth)):
eventDots='' eventDots=''