mirror of https://gitlab.com/bashrc2/epicyon
Calendar item styles for public or private
parent
9c63658aa7
commit
71dff77f20
|
@ -138,6 +138,14 @@ a:focus {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calItem {
|
||||||
|
background-color: var(--event-background-private);
|
||||||
|
}
|
||||||
|
|
||||||
|
.calItemPublic {
|
||||||
|
background-color: var(--event-background);
|
||||||
|
}
|
||||||
|
|
||||||
.calendar__day__event {
|
.calendar__day__event {
|
||||||
color: var(--event-color);
|
color: var(--event-color);
|
||||||
background-color: var(--event-background-private);
|
background-color: var(--event-background-private);
|
||||||
|
|
|
@ -193,34 +193,41 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
|
||||||
'icons/delete.png" /></a></td>\n'
|
'icons/delete.png" /></a></td>\n'
|
||||||
|
|
||||||
eventClass = 'calendar__day__event'
|
eventClass = 'calendar__day__event'
|
||||||
|
calItemClass = 'calItem'
|
||||||
if eventIsPublic:
|
if eventIsPublic:
|
||||||
eventClass = 'calendar__day__event__public'
|
eventClass = 'calendar__day__event__public'
|
||||||
|
calItemClass = 'calItemPublic'
|
||||||
if eventTime and eventDescription and eventPlace:
|
if eventTime and eventDescription and eventPlace:
|
||||||
calendarStr += \
|
calendarStr += \
|
||||||
'<tr><td class="calendar__day__time"><b>' + eventTime + \
|
'<tr class="' + calItemClass + '">' + \
|
||||||
|
'<td class="calendar__day__time"><b>' + eventTime + \
|
||||||
'</b></td><td class="' + eventClass + '">' + \
|
'</b></td><td class="' + eventClass + '">' + \
|
||||||
'<span class="place">' + \
|
'<span class="place">' + \
|
||||||
eventPlace + '</span><br>' + eventDescription + \
|
eventPlace + '</span><br>' + eventDescription + \
|
||||||
'</td>' + deleteButtonStr + '</tr>\n'
|
'</td>' + deleteButtonStr + '</tr>\n'
|
||||||
elif eventTime and eventDescription and not eventPlace:
|
elif eventTime and eventDescription and not eventPlace:
|
||||||
calendarStr += \
|
calendarStr += \
|
||||||
'<tr><td class="calendar__day__time"><b>' + eventTime + \
|
'<tr class="' + calItemClass + '">' + \
|
||||||
|
'<td class="calendar__day__time"><b>' + eventTime + \
|
||||||
'</b></td><td class="' + eventClass + '">' + \
|
'</b></td><td class="' + eventClass + '">' + \
|
||||||
eventDescription + '</td>' + deleteButtonStr + '</tr>\n'
|
eventDescription + '</td>' + deleteButtonStr + '</tr>\n'
|
||||||
elif not eventTime and eventDescription and not eventPlace:
|
elif not eventTime and eventDescription and not eventPlace:
|
||||||
calendarStr += \
|
calendarStr += \
|
||||||
'<tr><td class="calendar__day__time">' + \
|
'<tr class="' + calItemClass + '">' + \
|
||||||
|
'<td class="calendar__day__time">' + \
|
||||||
'</td><td class="' + eventClass + '">' + \
|
'</td><td class="' + eventClass + '">' + \
|
||||||
eventDescription + '</td>' + deleteButtonStr + '</tr>\n'
|
eventDescription + '</td>' + deleteButtonStr + '</tr>\n'
|
||||||
elif not eventTime and eventDescription and eventPlace:
|
elif not eventTime and eventDescription and eventPlace:
|
||||||
calendarStr += \
|
calendarStr += \
|
||||||
'<tr><td class="calendar__day__time"></td>' + \
|
'<tr class="' + calItemClass + '">' + \
|
||||||
|
'<td class="calendar__day__time"></td>' + \
|
||||||
'<td class="' + eventClass + '"><span class="place">' + \
|
'<td class="' + eventClass + '"><span class="place">' + \
|
||||||
eventPlace + '</span><br>' + eventDescription + \
|
eventPlace + '</span><br>' + eventDescription + \
|
||||||
'</td>' + deleteButtonStr + '</tr>\n'
|
'</td>' + deleteButtonStr + '</tr>\n'
|
||||||
elif eventTime and not eventDescription and eventPlace:
|
elif eventTime and not eventDescription and eventPlace:
|
||||||
calendarStr += \
|
calendarStr += \
|
||||||
'<tr><td class="calendar__day__time"><b>' + eventTime + \
|
'<tr class="' + calItemClass + '">' + \
|
||||||
|
'<td class="calendar__day__time"><b>' + eventTime + \
|
||||||
'</b></td><td class="' + eventClass + '">' + \
|
'</b></td><td class="' + eventClass + '">' + \
|
||||||
'<span class="place">' + \
|
'<span class="place">' + \
|
||||||
eventPlace + '</span></td>' + \
|
eventPlace + '</span></td>' + \
|
||||||
|
|
Loading…
Reference in New Issue