2024-01-11 20:37:57 +08:00
|
|
|
@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;
|
|
|
|
}
|
|
|
|
|
2024-01-25 06:32:39 +08:00
|
|
|
$some-scss-variable: 10px; // Scss variable declarations in top scope.
|
|
|
|
|
2024-01-11 20:37:57 +08:00
|
|
|
.style5 // comment in between selector
|
|
|
|
|
|
|
|
.style6
|
|
|
|
|
|
|
|
/* comment in between selector */
|
|
|
|
.style7 {
|
2024-01-25 06:32:39 +08:00
|
|
|
$some-scss-variable: 10px; // Scss variable declarations inside style rules block.
|
2024-01-11 20:37:57 +08:00
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
.style1 {
|
|
|
|
// Repeated style
|
|
|
|
color: blue;
|
2024-01-25 06:39:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// scss placeholder class should parse
|
|
|
|
%scss-class {
|
|
|
|
color: red;
|
2024-01-26 04:21:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@layer test-layer {
|
|
|
|
.style8 {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@layer test-layer2;
|
|
|
|
|
|
|
|
@layer;
|
|
|
|
|
2024-05-22 03:32:51 +08:00
|
|
|
@container (min-width: #{$screen-md}) {
|
2024-05-19 23:54:19 +08:00
|
|
|
h2 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.style9 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-26 04:21:32 +08:00
|
|
|
//eof
|