Support CSS

This commit is contained in:
bursa-pastoris 2023-10-20 15:43:42 +02:00
parent 93728f6778
commit 1e00e1d04b
2 changed files with 13 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import urllib.request
import json
from datetime import datetime as dt
from os.path import exists as path_exists
from shutil import copy as copyfile
from constants import *
@ -79,6 +80,8 @@ def append_message(message):
def generate_pages():
copyfile('./style.css', CHAT_PATH)
with open(MESSAGES,'r') as f:
messages = f.read()
# Make messages a single, valid JSON object

10
style.css Normal file
View File

@ -0,0 +1,10 @@
.message {
border: 1px solid;
margin-bottom: 1.5em;
padding: 0px 1ex;
}
.metadata {
font-weight: bold;
border-bottom: 1px solid;
}