Separate styling for lines on the newswire

main
Bob Mottram 2020-11-06 21:50:38 +00:00
parent b6cabed32c
commit e232aa714b
3 changed files with 15 additions and 1 deletions

View File

@ -92,6 +92,8 @@
--column-left-border-width: 0;
--column-right-border-width: 0;
--column-left-border-color: black;
--column-right-header-line-margin: 2%;
--column-right-header-line-width: 0;
--column-left-header-line-width: 0;
--column-left-header-line-margin: 2%;
--post-line-margin: 2%;
@ -161,6 +163,16 @@ hr.linksLine {
border: var(--column-left-header-line-width) solid var(--column-left-header-line-color);
}
hr.linksLine {
margin: var(--column-left-header-line-margin);
border: var(--column-left-header-line-width) solid var(--column-left-header-line-color);
}
hr.newswireLine {
margin: var(--column-right-header-line-margin);
border: var(--column-right-header-line-width) solid var(--column-left-header-line-color);
}
hr.postLine {
margin: var(--post-line-margin);
border: var(--post-line-width) solid var(--column-left-header-line-color);

View File

@ -1020,7 +1020,9 @@ def setThemeIndymediaModern(baseDir: str):
"url('./fonts/NimbusSanL-italic.otf') format('opentype')"
themeParams = {
"column-left-header-line-margin": "2%",
"column-right-header-line-margin": "2%",
"post-line-margin": "2%",
"column-right-header-line-width": "0";
"column-left-border-width": "1px",
"column-right-border-width": "1px",
"column-left-border-color": "#BBBBBB",

View File

@ -5849,7 +5849,7 @@ def htmlNewswire(newswire: {}, nickname: str, moderator: bool,
dateStrLink = dateStr.replace('T', ' ')
dateStrLink = dateStrLink.replace('Z', '')
moderatedItem = item[5]
htmlStr += '<hr class="linksLine">\n'
htmlStr += '<hr class="newswireLine">\n'
if moderatedItem and 'vote:' + nickname in item[2]:
totalVotesStr = ''
totalVotes = 0