You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/print/samples/style/input.svelte

55 lines
906 B

<style>
.foo {
color: red;
}
.foo.bar {
color: blue;
}
@media (max-width: 600px) {
.box {
display: none;
}
}
@keyframes fade {
from { opacity: 0; }
50% { opacity: 0.5; }
to { opacity: 1; }
}
@font-face {
font-family: "MyFont";
src: url("/fonts/MyFont.woff2") format("woff2");
}
.container .item { color: red; }
nav > ul.menu { display: flex; }
h2 + p.note { margin-top: 0; }
li:nth-child(2n + 1) { color: red; }
.button:hover { opacity: 0.5; }
.card::before {
content: "";
display: block;
}
.container > .item { color: red; }
h1 + p { margin-top: 0; }
.container .item, nav > ul.menu {
color: red;
}
#id-selector { color: red; }
[data-attribute] { color: red; }
[data-attribute="value"] { color: red; }
.card {
background: white;
&:hover {
background: gray;
}
}
</style>