Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(css/minifier): layer #6221

Merged
merged 2 commits into from Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,68 @@
@layer default, theme, components;
@layer foo.bar;
@layer foo.bar, baz;

@layer framework {
@layer layout {
@layer base {
}
}
}
@layer a{
@layer b {
div {color: yellow; margin: 0px;}
}
}

@layer framework {
@layer base {
p { margin-block: 0.75em; }
}

@layer theme {
p { color: #222; }
}
}

@layer framework.theme {
/* These styles will be added to the theme layer inside the framework layer */
blockquote { color: rebeccapurple; }
}

@layer {
@layer foo {
color: red;
}
@layer foo {
color: red;
}
}

@layer {
@layer foo { color: red; }
}
@layer {
@layer foo { color: red; }
}

@layer framework {
h1, h2 { color: maroon; background: white;}

@media (prefers-color-scheme: dark) {
h1, h2 { color: red; background: black; }
}
}

@layer foo {
.foo {
color: red;
}
}
@layer foo {
.foo {
background: #fff;
}
.baz {
color: #fff;
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.