mirror of https://gitlab.com/bashrc2/epicyon
Clickable area on calendar cells
parent
09a5b930c7
commit
0bd12bab4c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue