Skip to content

Commit

Permalink
renamed icon module names to reflect which should be public
Browse files Browse the repository at this point in the history
  • Loading branch information
to7m committed Aug 5, 2024
1 parent c027b68 commit 67ffe64
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
8 changes: 8 additions & 0 deletions public_html/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public_html/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion scss/text/_index.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@forward "_sizes";
@forward "sizes";
@forward "fonts/icon";
10 changes: 5 additions & 5 deletions scss/text/fonts/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}


$icon_chars_for_names: (
$_icon_chars_for_names: (
"arrow-right2": "\ea3c",
"arrow-shuffle": "\e901",
"bar-graph": "\e904",
Expand Down Expand Up @@ -78,18 +78,18 @@ $icon_chars_for_names: (
);


@function _get_icon_char($icon_name) {
@if not map-has-key($icon_chars_for_names, $icon_name) {
@function get_icon_char($icon_name) {
@if not map-has-key($_icon_chars_for_names, $icon_name) {
@error "$icon_name \"#{$icon_name}\" not recognised";
}

@return map.get($icon_chars_for_names, $icon_name);
@return map.get($_icon_chars_for_names, $icon_name);
}


@mixin _insert($position, $icon-name) {
&::#{$position} {
content: _get_icon_char($icon-name);
content: get_icon_char($icon-name);
font-family: 'icomoon' !important;
font-style: normal;
font-weight: normal;
Expand Down

0 comments on commit 67ffe64

Please sign in to comment.