diff --git a/epicyon-profile.css b/epicyon-profile.css index ebf9d99a4..614f114a9 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -67,6 +67,7 @@ --quote-font-size: 120%; --line-spacing: 130%; --line-spacing-newswire: 100%; + --newswire-moderate-color: yellow; --column-left-width: 10vw; --column-center-width: 80vw; --column-right-width: 10vw; @@ -231,6 +232,13 @@ a:focus { line-height: var(--line-spacing-newswire); } +.newswireItemModerate { + font-size: var(--font-size-newswire); + color: var(--newswire-moderate-color); + font-weight: bold; + line-height: var(--line-spacing-newswire); +} + .newswireDate { font-size: var(--font-size-newswire); color: var(--newswire-date-color); diff --git a/webinterface.py b/webinterface.py index b381ae3af..09ded6c83 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5342,8 +5342,16 @@ def htmlNewswire(newswire: str) -> str: """ htmlStr = '' for dateStr, item in newswire.items(): - htmlStr += '
' + \ - '' + item[0] + '' + if len(item) == 2: + htmlStr += '
' + \ + '' + item[0] + '' + elif len(item) > 2: + if item[2].startswith('moderate'): + htmlStr += '
' + \ + '' + item[0] + '' + else: + htmlStr += '
' + \ + '' + item[0] + '' htmlStr += '
' return htmlStr