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

View File

@ -3689,7 +3689,7 @@ def htmlCalendarDay(translate: {}, \
deleteButtonStr='' deleteButtonStr=''
if postId: 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: 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' 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'