mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
20 lines
478 B
Plaintext
20 lines
478 B
Plaintext
{% codeExample 'each-map' %}
|
|
$icons: ("eye": "\f112", "start": "\f12e", "stop": "\f12f");
|
|
|
|
@each $name, $glyph in $icons {
|
|
.icon-#{$name}:before {
|
|
display: inline-block;
|
|
font-family: "Icon Font";
|
|
content: $glyph;
|
|
}
|
|
}
|
|
===
|
|
$icons: ("eye": "\f112", "start": "\f12e", "stop": "\f12f")
|
|
|
|
@each $name, $glyph in $icons
|
|
.icon-#{$name}:before
|
|
display: inline-block
|
|
font-family: "Icon Font"
|
|
content: $glyph
|
|
{% endcodeExample %}
|