You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_patterns/00-base/icons/_icons.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,14 +28,16 @@ Use the following SCSS mixin for setting an icon:
28
28
```scss
29
29
// schema
30
30
@mixinicon(
31
-
$glyph: "",
32
-
$size: $icon-size,
33
-
$style: $icon-style,
34
-
$position: "before"
31
+
$glyph: "",
32
+
$size: $icon-size,
33
+
$style: $icon-style,
34
+
$position: "before"
35
35
);
36
36
37
37
// example
38
-
@includeicon(glyph(account), 20, "outline");
38
+
span.with-an-icon {
39
+
@includeicon(glyph(account), 20, "outline");
40
+
}
39
41
```
40
42
41
43
As both `$icon-size` and `$icon-style` are available to get configured with default values, and `$position` is only a variant (explained in the next paragraph) only the first one is really mandatory.
@@ -76,11 +78,11 @@ If you'd like to include the icon after the content/text, use the HTML attribute
0 commit comments