From b3648d9f5dc2dc155936ff0f235df45d07e44a55 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 18 Nov 2020 21:56:19 +0000 Subject: [PATCH] Separators with different background colors --- epicyon-profile.css | 18 ++++++++++++++++++ webapp_utils.py | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 1842f2287..1091dbe3b 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -185,6 +185,24 @@ body, html { display: block; } +.postSeparatorImageLeft img { + background-color: var(--column-left-color); + padding-top: var(--post-separator-margin-top); + padding-bottom: var(--post-separator-margin-bottom); + width: var(--post-separator-width); + height: var(--post-separator-height); + display: block; +} + +.postSeparatorImageRight img { + background-color: var(--column-left-color); + padding-top: var(--post-separator-margin-top); + padding-bottom: var(--post-separator-margin-bottom); + width: var(--post-separator-width); + height: var(--post-separator-height); + display: block; +} + .headericons { display: inline-block; float: right; diff --git a/webapp_utils.py b/webapp_utils.py index 35a4ee163..6a18f06c4 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -728,13 +728,15 @@ def htmlPostSeparator(baseDir: str, column: str) -> str: iconsPath = getIconsWebPath(baseDir) theme = getConfigParam(baseDir, 'theme') filename = 'separator.png' + separatorClass = "postSeparatorImage" if column: + separatorClass = "postSeparatorImage" + column.title() filename = 'separator_' + column + '.png' separatorImageFilename = baseDir + '/theme/' + theme + '/icons/' + filename separatorStr = '' if os.path.isfile(separatorImageFilename): separatorStr = \ - '
' + \ + '
' + \ '' + \ '
\n' return separatorStr