sass-site/source/_includes/code_snippets/example-each-list.liquid

20 lines
341 B
Plaintext
Raw Normal View History

{% codeExample 'each-list' %}
2023-05-30 23:23:34 +02:00
$sizes: 40px, 50px, 80px;
2023-05-30 23:23:34 +02:00
@each $size in $sizes {
.icon-#{$size} {
font-size: $size;
height: $size;
width: $size;
}
}
2023-05-30 23:23:34 +02:00
===
$sizes: 40px, 50px, 80px
2023-05-30 23:23:34 +02:00
@each $size in $sizes
.icon-#{$size}
font-size: $size
height: $size
width: $size
{% endcodeExample %}