Column widths

merge-requests/8/head
Bob Mottram 2020-10-01 10:40:56 +01:00
parent fe74f013bd
commit d788fe62de
2 changed files with 8 additions and 9 deletions

View File

@ -61,9 +61,9 @@
--quote-font-weight: normal; --quote-font-weight: normal;
--quote-font-size: 120%; --quote-font-size: 120%;
--line-spacing: 130%; --line-spacing: 130%;
--column-left-width: 10%; --column-left-width: 10vw;
--column-center-width: 80%; --column-center-width: 80vw;
--column-right-width: 10%; --column-right-width: 10vw;
} }
@font-face { @font-face {
@ -934,13 +934,12 @@ aside .toggle-inside li {
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
max-width: var(--column-center-width); max-width: var(--column-center-width);
min-width: 950px; min-width: 950px;
margin-left: var(--column-left-width);
font-size: var(--font-size); font-size: var(--font-size);
line-height: var(--line-spacing); line-height: var(--line-spacing);
} }
.timeline { .timeline {
border: 0; border: 0;
width: 120%; width: 100vw;
} }
.column-left { .column-left {
float: left; float: left;
@ -1417,7 +1416,7 @@ aside .toggle-inside li {
} }
.timeline { .timeline {
border: 0; border: 0;
width: 100%; width: 100vw;
} }
.column-left { .column-left {
float: left; float: left;

View File

@ -5362,7 +5362,7 @@ def htmlTimeline(defaultTimeline: str,
tlStr += ' <col span="1" class="column-center">\n' tlStr += ' <col span="1" class="column-center">\n'
tlStr += ' <col span="1" class="column-right">\n' tlStr += ' <col span="1" class="column-right">\n'
tlStr += ' </colgroup>\n' tlStr += ' </colgroup>\n'
tlStr += ' <tr>\n' tlStr += ' <tbody><tr>\n'
# left column # left column
tlStr += ' <td class="column-left"></td>\n' tlStr += ' <td class="column-left"></td>\n'
# center column containing posts # center column containing posts
@ -5668,8 +5668,8 @@ def htmlTimeline(defaultTimeline: str,
# end of column-center # end of column-center
tlStr += ' </td>\n' tlStr += ' </td>\n'
tlStr += ' <td class="column-right"></td>\n' tlStr += ' <td class="column-right"></td>\n'
tlStr += ' </table>\n' tlStr += ' </tbody>\n'
tlStr += '</div>' tlStr += '</table>\n'
# benchmark 9 # benchmark 9
timeDiff = int((time.time() - timelineStartTime) * 1000) timeDiff = int((time.time() - timelineStartTime) * 1000)