CSS files now start with comments, none inserted in code.

This commit is contained in:
L. Karkkainen 2023-02-05 15:58:09 +00:00
parent f4792a2bc6
commit 5c65118d12
2 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,7 @@ class CSS(ABCMeta):
def __new__(cls, name, bases, attrs):
Page = super().__new__(cls, name, bases, attrs)
# Use a locally defined STYLE or the one from styles directory
s = _extract_style(attrs.get("STYLE"), name)
Page.STYLE = f"\n/* {name} */\n{s.strip()}\n" if s else ""
Page.STYLE = _extract_style(attrs.get("STYLE_FILE"), name)
# Combine with all ancestor styles
Page.CSS = "".join(
Class.STYLE

View File

@ -1,3 +1,4 @@
/** BasePage **/
html {
font: 16px sans-serif;