From b63d4859f1b6c31e515f511fac79043197fa40c0 Mon Sep 17 00:00:00 2001 From: blankie Date: Sat, 6 Jun 2026 01:41:41 +0000 Subject: [PATCH] strip forum CSS, defer all styling to site template --- tinyweb_forum/handlers.py | 86 +-------------------------------------- 1 file changed, 1 insertion(+), 85 deletions(-) diff --git a/tinyweb_forum/handlers.py b/tinyweb_forum/handlers.py index 4572390..f6a4f5b 100644 --- a/tinyweb_forum/handlers.py +++ b/tinyweb_forum/handlers.py @@ -19,85 +19,6 @@ def esc(s): from tinyweb_forum.bloom import BloomFilter -FORUM_CSS_DEFAULT = """ -""" - -FORUM_CSS_KODAMA2 = """ -""" - - class ForumHandlers: def __init__(self, fdb, sync, identity, reticulum, site_name="me"): self.fdb = fdb @@ -138,16 +59,11 @@ class ForumHandlers: return "" return f' [block]' - def _forum_css(self): - theme = self.fdb.get_setting("forum_theme", "default") - css = FORUM_CSS_KODAMA2 if theme == "kodama2" else FORUM_CSS_DEFAULT - return css - def _respond(self, body_html, status=200): return { "status": status, "content_type": "text/html; charset=utf-8", - "body": self._forum_css() + body_html, + "body": body_html, "headers": {}, }