Clickable area on calendar cells

main2
Bob Mottram 2019-10-11 21:12:24 +01:00
parent 09a5b930c7
commit 0bd12bab4c
2 changed files with 9 additions and 3 deletions

View File

@ -43,11 +43,17 @@ main {
a:visited{
color: var(--day-number);
text-decoration: none;
z-index: 1;
padding: 2rem;
margin: -2rem;
}
a:link {
color: var(--day-number);
text-decoration: none;
z-index: 1;
padding: 2rem;
margin: -2rem;
}
.calendar__day__header,
@ -119,7 +125,7 @@ tr:nth-child(even) > .calendar__day__cell:nth-child(even) {
position: absolute;
bottom: 0;
width: 100%;
height: 5rem;
height: 1rem;
text-transform: uppercase;
}
@ -146,7 +152,7 @@ tr:nth-child(even) > .calendar__day__cell:nth-child(even) {
position: absolute;
bottom: 0;
width: 100%;
height: 5rem;
height: 1rem;
text-transform: uppercase;
}

View File

@ -2972,7 +2972,7 @@ def htmlCalendar(translate: {}, \
if eventDots=='...':
break
url=actor+'/calendar?year='+str(year)+'?month='+str(monthNumber)+'?day='+str(dayOfMonth)
dayLink='<a href="'+url+'"> '+str(dayOfMonth)+' </a>'
dayLink='<a href="'+url+'">'+str(dayOfMonth)+'</a>'
# there are events for this day
if not isToday:
calendarStr+=' <td class="calendar__day__cell" data-event="'+eventDots+'">'+dayLink+'</td>\n'