Left and right timeline columns

merge-requests/8/head
Bob Mottram 2020-09-30 19:06:34 +01:00
parent 262b6c891e
commit ae8242ea05
2 changed files with 26 additions and 0 deletions

View File

@ -61,6 +61,8 @@
--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: 0%;
--column-right-width: 0%;
} }
@font-face { @font-face {
@ -923,6 +925,14 @@ aside .toggle-inside li {
} }
@media screen and (min-width: 400px) { @media screen and (min-width: 400px) {
.column-left {
float: left;
width: var(--column-left-width);
}
.column-right {
float: right;
width: var(--column-right-width);
}
.likesCount { .likesCount {
font-size: var(--font-size-likes); font-size: var(--font-size-likes);
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
@ -1372,6 +1382,14 @@ aside .toggle-inside li {
} }
@media screen and (max-width: 1000px) { @media screen and (max-width: 1000px) {
.column-left {
float: left;
width: var(--column-left-width);
}
.column-right {
float: right;
width: var(--column-right-width);
}
.likesCount { .likesCount {
font-size: var(--font-size-likes-mobile); font-size: var(--font-size-likes-mobile);
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;

View File

@ -5328,6 +5328,10 @@ def htmlTimeline(defaultTimeline: str,
tlStr += '</div>\n</a>\n' tlStr += '</div>\n</a>\n'
tlStr += '<div class="container">\n' tlStr += '<div class="container">\n'
tlStr += '<div class="row">\n'
tlStr += ' <div class="column-left">\n'
tlStr += ' </div>\n'
# first button # first button
if defaultTimeline == 'tlmedia': if defaultTimeline == 'tlmedia':
tlStr += \ tlStr += \
@ -5620,6 +5624,10 @@ def htmlTimeline(defaultTimeline: str,
if boxName == 'tlmedia': if boxName == 'tlmedia':
tlStr += '</div>\n' tlStr += '</div>\n'
tlStr += ' <div class="column-right">\n'
tlStr += ' </div>\n'
tlStr += '</div>'
# benchmark 9 # benchmark 9
timeDiff = int((time.time() - timelineStartTime) * 1000) timeDiff = int((time.time() - timelineStartTime) * 1000)
if timeDiff > 100: if timeDiff > 100: