sass-site/source/code-snippets/_example-each-list.html.erb

20 lines
317 B
Plaintext
Raw Normal View History

2018-09-01 22:35:20 +02:00
<% example do %>
$sizes: 40px, 50px, 80px;
2018-09-01 22:35:20 +02:00
@each $size in $sizes {
.icon-#{$size} {
font-size: $size;
height: $size;
width: $size;
}
2018-09-01 22:35:20 +02:00
}
===
$sizes: 40px, 50px, 80px
2018-09-01 22:35:20 +02:00
@each $size in $sizes
.icon-#{$size}
font-size: $size
height: $size
width: $size
2018-09-01 22:35:20 +02:00
<% end %>