CSS files now start with comments, none inserted in code.
This commit is contained in:
parent
f4792a2bc6
commit
5c65118d12
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
/** BasePage **/
|
||||
html {
|
||||
font: 16px sans-serif;
|
||||
|
|
Loading…
Reference in New Issue
Block a user