Border and text colors

master
Bob Mottram 2019-08-13 11:59:38 +01:00
parent 9b08d803d7
commit d79a94af4d
3 changed files with 8 additions and 3 deletions

View File

@ -2358,6 +2358,7 @@ class PubServer(BaseHTTPRequestHandler):
if not (self.path.endswith('/outbox') or \
self.path.endswith('/inbox') or \
self.path.endswith('/shares') or \
self.path.endswith('/moderationaction') or \
self.path.endswith('/caps/new') or \
self.path=='/sharedInbox'):
print('Attempt to POST to invalid path '+self.path)

View File

@ -368,8 +368,12 @@ a:link {
border-radius: 0%;
}
.replyingto {
color: var(--main-fg-color);
}
.darker {
border-color: #ccc;
border: 2px solid var(--border-color);
background-color: var(--main-bg-color-darker);
}

View File

@ -843,9 +843,9 @@ def individualPostAsHtml(baseDir: str, \
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
if replyNickname and replyDomain:
titleStr+=' <i>replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
titleStr+=' <i class="replyingto">replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
else:
titleStr+=' <i>replying to</i> '+postJsonObject['object']['inReplyTo']
titleStr+=' <i class="replyingto">replying to</i> '+postJsonObject['object']['inReplyTo']
attachmentStr=''
if postJsonObject['object']['attachment']:
if isinstance(postJsonObject['object']['attachment'], list):