sass-site/source/code-snippets/_example-each-list.html.erb
Natalie Weizenbaum efc113ec86 [WIP] Reference
2018-09-27 16:05:00 -07:00

20 lines
287 B
Plaintext

<% example do %>
$sizes: 40px, 50px, 80px;
@each $size in $sizes {
.icon-#{$size} {
font-size: $size;
height: $size;
width: $size;
}
}
===
$sizes: 40px, 50px, 80px
@each $size in $sizes
.icon-#{$size}
font-size: $size
height: $size
width: $size
<% end %>