Commit b390420 1 parent 399d2e9 commit b390420 Copy full SHA for b390420
File tree 3 files changed +8
-7
lines changed
source/_patterns/00-base/icons
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 4
4
@each $icon-name , $icon-glyph in $icon-glyphs {
5
5
[data-icon = " #{$icon-name } " ],
6
6
[data-icon-before = " #{$icon-name } " ] {
7
- & ::before {
8
- --icon-glyph : " #{$icon-glyph } " ;
9
- }
7
+ --icon-glyph-before : " #{$icon-glyph } " ;
10
8
}
11
- [data-icon-after = " #{$icon-name } " ]::after {
12
- --icon-glyph : " #{$icon-glyph } " ;
9
+ [data-icon-after = " #{$icon-name } " ] {
10
+ --icon-glyph-after : " #{$icon-glyph } " ;
13
11
}
14
12
}
Original file line number Diff line number Diff line change 8
8
) {
9
9
// We're setting this on the parent tag, so that it could get overwritten via data-icon=*
10
10
@if $glyph != " " {
11
- --icon-glyph : " #{$glyph } " ;
11
+ --icon-glyph - #{ $position } : " #{$glyph } " ;
12
12
}
13
13
14
14
& ::#{$position } {
30
30
);
31
31
}
32
32
33
+ content : var (--icon-glyph - #{$position } );
34
+
33
35
@if $partial {
34
- content : var (--icon-glyph );
35
36
display : inline-block ;
36
37
/* ** icon - partial ***/
37
38
// * use !important to prevent issues with browser extensions that change fonts
Original file line number Diff line number Diff line change 11
11
[data-icon-before ] {
12
12
& ::before {
13
13
@extend %icon ;
14
+ content : var (--icon-glyph-before );
14
15
margin-inline-end : var (--icon-margin-after , #{$icon-content-space } );
15
16
font-size : var (
16
17
--icon-font-size-before ,
22
23
[data-icon-after ] {
23
24
& ::after {
24
25
@extend %icon ;
26
+ content : var (--icon-glyph-after );
25
27
margin-inline-start : var (--icon-margin-before , #{$icon-content-space } );
26
28
font-size : var (
27
29
--icon-font-size-after ,
You can’t perform that action at this time.
0 commit comments