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):
|
def __new__(cls, name, bases, attrs):
|
||||||
Page = super().__new__(cls, name, bases, attrs)
|
Page = super().__new__(cls, name, bases, attrs)
|
||||||
# Use a locally defined STYLE or the one from styles directory
|
# Use a locally defined STYLE or the one from styles directory
|
||||||
s = _extract_style(attrs.get("STYLE"), name)
|
Page.STYLE = _extract_style(attrs.get("STYLE_FILE"), name)
|
||||||
Page.STYLE = f"\n/* {name} */\n{s.strip()}\n" if s else ""
|
|
||||||
# Combine with all ancestor styles
|
# Combine with all ancestor styles
|
||||||
Page.CSS = "".join(
|
Page.CSS = "".join(
|
||||||
Class.STYLE
|
Class.STYLE
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
/** BasePage **/
|
/** BasePage **/
|
||||||
html {
|
html {
|
||||||
font: 16px sans-serif;
|
font: 16px sans-serif;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user