Icons column style

merge-requests/6/head
Bob Mottram 2020-02-23 11:47:07 +00:00
parent d284580df8
commit 20909631c5
2 changed files with 8 additions and 1 deletions

View File

@ -123,6 +123,7 @@ a:link {
font-size: 38px;
position: relative;
}
.calendar__day__time {
color: var(--time-color);
float: left;
@ -131,6 +132,12 @@ a:link {
padding: 20px;
}
.calendar__day__icons {
width: 15%;
position: relative;
padding: 20px;
}
tr { border: none; }
td {
border-left: solid 2px var(--lines-color);

View File

@ -3689,7 +3689,7 @@ def htmlCalendarDay(translate: {}, \
deleteButtonStr=''
if postId:
deleteButtonStr='<td><a href="'+actor+'/calendardelete?id='+postId+'"><img class="calendardayicon" loading="lazy" alt="'+translate['Delete this event']+' |" title="'+translate['Delete this event']+' |" src="/'+iconsDir+'/delete.png" /></a></td>'
deleteButtonStr='<td class="calendar__day__icons"><a href="'+actor+'/calendardelete?id='+postId+'"><img class="calendardayicon" loading="lazy" alt="'+translate['Delete this event']+' |" title="'+translate['Delete this event']+' |" src="/'+iconsDir+'/delete.png" /></a></td>'
if eventTime and eventDescription and eventPlace:
calendarStr+='<tr><td class="calendar__day__time"><b>'+eventTime+'</b></td><td class="calendar__day__event"><span class="place">'+eventPlace+'</span><br>'+eventDescription+'</td>'+deleteButtonStr+'</tr>\n'