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

20 lines
455 B
Plaintext
Raw Normal View History

2018-09-01 22:35:20 +02:00
<% example do %>
$icons: ("eye": "\f112", "start": "\f12e", "stop": "\f12f");
2018-09-01 22:35:20 +02:00
@each $name, $glyph in $icons {
.icon-#{$name}:before {
display: inline-block;
font-family: "Icon Font";
content: $glyph;
}
2018-09-01 22:35:20 +02:00
}
===
$icons: ("eye": "\f112", "start": "\f12e", "stop": "\f12f")
2018-09-01 22:35:20 +02:00
@each $name, $glyph in $icons
.icon-#{$name}:before
display: inline-block
font-family: "Icon Font"
content: $glyph
2018-09-01 22:35:20 +02:00
<% end %>