From 0bd12bab4cea5485b8030c782f9b7cb8df0cb8b8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 11 Oct 2019 21:12:24 +0100 Subject: [PATCH] Clickable area on calendar cells --- epicyon-calendar.css | 10 ++++++++-- webinterface.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/epicyon-calendar.css b/epicyon-calendar.css index 8ade7d5d..5e57e6d9 100644 --- a/epicyon-calendar.css +++ b/epicyon-calendar.css @@ -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; } diff --git a/webinterface.py b/webinterface.py index 7303d3e6..d375464f 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2972,7 +2972,7 @@ def htmlCalendar(translate: {}, \ if eventDots=='...': break url=actor+'/calendar?year='+str(year)+'?month='+str(monthNumber)+'?day='+str(dayOfMonth) - dayLink=' '+str(dayOfMonth)+' ' + dayLink=''+str(dayOfMonth)+'' # there are events for this day if not isToday: calendarStr+=' '+dayLink+'\n'