fix css output

print
Manuel Serret 3 days ago
parent e6b325761f
commit 7910be8af1

@ -44,7 +44,6 @@ function block(context, node, allow_inline = false) {
/** @type {Visitors<AST.SvelteNode>} */
const css_visitors = {
Atrule(node, context) {
// TODO seems to produce too many new lines sometimes. Also new lines above style tag?
context.write(`@${node.name}`);
if (node.prelude) context.write(` ${node.prelude}`);
@ -67,7 +66,6 @@ const css_visitors = {
for (const child of node.children) {
if (started) {
context.margin();
context.newline();
}

@ -19,7 +19,6 @@
from {
opacity: 0;
}
to {
opacity: 1;
}
@ -27,7 +26,6 @@
@font-face {
font-family: "MyFont";
src: url("/fonts/MyFont.woff2") format("woff2");
}
@ -53,7 +51,6 @@
.card::before {
content: "";
display: block;
}

Loading…
Cancel
Save