We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2050e3 commit 18e1ba0Copy full SHA for 18e1ba0
dict2css/__init__.py
@@ -45,7 +45,7 @@
45
import cssutils as css_parser # type: ignore
46
47
# this package
48
-from dict2css.helpers import em, px, rem
+from dict2css.helpers import em, px, rem # noqa: F401
49
from dict2css.serializer import CSSSerializer
50
51
__author__: str = "Dominic Davis-Foster"
@@ -286,6 +286,10 @@ def parse_style(style: css_parser.css.CSSStyleDeclaration) -> MutableMapping[str
286
for child in rule.cssRules:
287
styles_dict[f"@media {rule.media.mediaText}"][child.selectorText] = parse_style(child.style)
288
289
+ elif isinstance(rule, (css_parser.css.CSSComment)):
290
+ # Ignore these classes
291
+ pass
292
+
293
else:
294
raise NotImplementedError(rule)
295
0 commit comments