Convert columns to table

main
Bob Mottram 2020-10-01 10:07:04 +01:00
parent 48b78789a6
commit fe74f013bd
2 changed files with 17 additions and 7 deletions

View File

@ -939,6 +939,7 @@ aside .toggle-inside li {
line-height: var(--line-spacing); line-height: var(--line-spacing);
} }
.timeline { .timeline {
border: 0;
width: 120%; width: 120%;
} }
.column-left { .column-left {
@ -1415,6 +1416,7 @@ aside .toggle-inside li {
line-height: var(--line-spacing); line-height: var(--line-spacing);
} }
.timeline { .timeline {
border: 0;
width: 100%; width: 100%;
} }
.column-left { .column-left {

View File

@ -5355,10 +5355,18 @@ def htmlTimeline(defaultTimeline: str,
tlStr += '<div class="timeline-banner">' tlStr += '<div class="timeline-banner">'
tlStr += '</div>\n</a>\n' tlStr += '</div>\n</a>\n'
tlStr += '<div class="timeline">\n' # start the timeline
tlStr += ' <div class="column-left">\n' tlStr += '<table class="timeline">\n'
tlStr += ' </div>\n' tlStr += ' <colgroup>\n'
tlStr += ' <div class="column-center">\n' tlStr += ' <col span="1" class="column-left">\n'
tlStr += ' <col span="1" class="column-center">\n'
tlStr += ' <col span="1" class="column-right">\n'
tlStr += ' </colgroup>\n'
tlStr += ' <tr>\n'
# left column
tlStr += ' <td class="column-left"></td>\n'
# center column containing posts
tlStr += ' <td class="column-center">\n'
# start of the button header with inbox, outbox, etc # start of the button header with inbox, outbox, etc
tlStr += ' <div class="container">\n' tlStr += ' <div class="container">\n'
@ -5658,9 +5666,9 @@ def htmlTimeline(defaultTimeline: str,
tlStr += '</div>\n' tlStr += '</div>\n'
# end of column-center # end of column-center
tlStr += ' </div>\n' tlStr += ' </td>\n'
tlStr += ' <div class="column-right">\n' tlStr += ' <td class="column-right"></td>\n'
tlStr += ' </div>\n' tlStr += ' </table>\n'
tlStr += '</div>' tlStr += '</div>'
# benchmark 9 # benchmark 9