stylance-rs/stylance/tests/style.module.scss

92 lines
1.3 KiB
SCSS

@charset "utf-8";
// Line comment
/* block comment
.class {
{ // Invalid syntax inside the comment to ensure this isn't parsed.
}
*/
div.style1.style2[value="thing"] {
color: red; // line comment after declaration
background-color: black;
}
.style-with-dashes {
color: red;
}
@media (max-width: 600px) {
.style3 {
background-color: #87ceeb;
}
}
@font-face {
font-family: "Trickster";
src:
local("Trickster"),
url("trickster-COLRv1.otf") format("opentype") tech(color-COLRv1),
url("trickster-outline.otf") format("opentype"),
url("trickster-outline.woff") format("woff");
}
.style4 {
.nested-style {
color: red;
}
@media (max-width: 600px) {
// scss style nested media query with declarations inside
color: blue;
}
}
:global(.global-class) {
color: red;
}
$some-scss-variable: 10px; // Scss variable declarations in top scope.
.style5 // comment in between selector
.style6
/* comment in between selector */
.style7 {
$some-scss-variable: 10px; // Scss variable declarations inside style rules block.
color: red;
}
.style1 {
// Repeated style
color: blue;
}
// scss placeholder class should parse
%scss-class {
color: red;
}
@layer test-layer {
.style8 {
color: red;
}
}
@layer test-layer2;
@layer;
@container (min-width: #{$screen-md}) {
h2 {
font-size: 1.5em;
}
.style9 {
font-size: 1.5em;
}
}
//eof