|
7 | 7 | $partial: false
|
8 | 8 | ) {
|
9 | 9 | &::#{$position} {
|
10 |
| - --icon-font-family: "#{"icons-" + $size + "-" + $style}", "missing-icons" !important; |
| 10 | + --icon-font-family: "#{"icons-" + $size + "-" + $style}", |
| 11 | + "missing-icons" !important; |
11 | 12 | --icon-font-size: #{to-rem($pxValue: $size)};
|
12 | 13 |
|
13 | 14 | @if $position == "before" {
|
14 |
| - --icon-margin-right: #{$icon-content-space}; |
| 15 | + margin-inline-end: var(--icon-margin-after, #{$icon-content-space}); |
15 | 16 | }
|
16 | 17 | @if $position == "after" {
|
17 |
| - --icon-margin-left: #{$icon-content-space}; |
| 18 | + margin-inline-start: var( |
| 19 | + --icon-margin-before, |
| 20 | + #{$icon-content-space} |
| 21 | + ); |
18 | 22 | }
|
19 | 23 |
|
20 | 24 | @if $glyph != "" {
|
|
40 | 44 |
|
41 | 45 | display: inline-block;
|
42 | 46 |
|
43 |
| - margin-right: var(--icon-margin-right); |
44 |
| - margin-left: var(--icon-margin-left); |
45 |
| - |
46 | 47 | // * Better Font Rendering ===========
|
47 | 48 | -webkit-font-smoothing: antialiased;
|
48 | 49 | -moz-osx-font-smoothing: grayscale;
|
|
72 | 73 |
|
73 | 74 | @if $position == "before" {
|
74 | 75 | &::before {
|
75 |
| - --icon-margin-right: 0; |
| 76 | + --icon-margin-after: 0; |
76 | 77 | }
|
77 | 78 | } @else {
|
78 | 79 | &::after {
|
79 |
| - --icon-margin-left: 0; |
| 80 | + --icon-margin-before: 0; |
80 | 81 | }
|
81 | 82 | }
|
82 | 83 | }
|
|
89 | 90 | // Icon meta data mixin
|
90 | 91 | @mixin iconMeta($size: $icon-size, $style: $icon-style, $position: "before") {
|
91 | 92 | &::#{$position} {
|
92 |
| - --icon-font-family: "#{"icons-" + $size + "-" + $style}", "missing-icons" !important; |
| 93 | + --icon-font-family: "#{"icons-" + $size + "-" + $style}", |
| 94 | + "missing-icons" !important; |
93 | 95 | --icon-font-size: #{to-rem($pxValue: $size)};
|
94 | 96 | }
|
95 | 97 | }
|
0 commit comments