@odx/icons 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ @use 'sass:map';
2
+ @use 'iconmap';
3
+
4
+ @function get-icon-glyph($iconName) {
5
+ @return map.get($map: iconmap.$glyphs, $key: $iconName);
6
+ }
7
+
8
+ @function get-font-family() {
9
+ @return "odx-icon-safety";
10
+ }
11
+
12
+ // convenience mixin defining inline css icons,
13
+ // including all style-specific font properties,
14
+ // and the ::before. Only works for single-colored icons!
15
+ // To use multicolor icons inline, manually map the glyphs
16
+ // to content in pseudo elements using the "get-icon-glyph" function
17
+
18
+ @mixin icon($iconName) {
19
+ -webkit-font-smoothing: antialiased;
20
+ -moz-osx-font-smoothing: grayscale;
21
+ display: inline-block;
22
+ font-style: normal;
23
+ font-variant: normal;
24
+ font-weight: normal;
25
+ line-height: 1;
26
+ font-family: get-font-family();
27
+ vertical-align: middle;
28
+
29
+ &::before {
30
+ content: get-icon-glyph($iconName);
31
+ }
32
+ }
package/core/mixins.scss DELETED
@@ -1,8 +0,0 @@
1
- @use 'sass:map';
2
- @use 'iconmap';
3
-
4
- @mixin odx-icon-core($iconName) {
5
- content: map.get($map: iconmap.$glyphs, $key: $iconName);
6
- font-family: 'odx-icon-core';
7
- vertical-align: middle;
8
- }
@@ -1,8 +0,0 @@
1
- @use 'sass:map';
2
- @use 'iconmap';
3
-
4
- @mixin odx-icon-medical($iconName) {
5
- content: map.get($map: iconmap.$glyphs, $key: $iconName);
6
- font-family: 'odx-icon-medical';
7
- vertical-align: middle;
8
- }
@@ -1,8 +0,0 @@
1
- @use 'sass:map';
2
- @use 'iconmap';
3
-
4
- @mixin odx-icon-safety($iconName) {
5
- content: map.get($map: iconmap.$glyphs, $key: $iconName);
6
- font-family: 'odx-icon-safety';
7
- vertical-align: middle;
8
- }