From e232aa714b69707f4eda00a98d6e51783c59e66e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Nov 2020 21:50:38 +0000 Subject: [PATCH] Separate styling for lines on the newswire --- epicyon-profile.css | 12 ++++++++++++ theme.py | 2 ++ webinterface.py | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 3686ce84..3b0e5937 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -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); diff --git a/theme.py b/theme.py index eae5c485..c61b8fd3 100644 --- a/theme.py +++ b/theme.py @@ -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", diff --git a/webinterface.py b/webinterface.py index e634f595..796436a2 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5849,7 +5849,7 @@ def htmlNewswire(newswire: {}, nickname: str, moderator: bool, dateStrLink = dateStr.replace('T', ' ') dateStrLink = dateStrLink.replace('Z', '') moderatedItem = item[5] - htmlStr += '
\n' + htmlStr += '
\n' if moderatedItem and 'vote:' + nickname in item[2]: totalVotesStr = '' totalVotes = 0