-
Notifications
You must be signed in to change notification settings - Fork 1
Fixed scss files to show icons correctly #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| @use 'variables' as *; | ||
|
|
||
| // fixed-width icons | ||
| // ------------------------- | ||
|
|
||
| .#{$fa-css-prefix}-fw { | ||
| text-align: center; | ||
| width: $fa-fw-width; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,3 @@ | ||
| @use 'variables' as *; | ||
| @use 'mixins' as *; | ||
|
|
||
| // screen-reader utilities | ||
| // ------------------------- | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| @use 'functions' as *; | ||
|
|
||
| // variables | ||
| // -------------------------- | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,9 +3,8 @@ | |||||
| * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||||||
| * Copyright 2024 Fonticons, Inc. | ||||||
| */ | ||||||
| @use 'functions' as *; | ||||||
| @use 'variables' as *; | ||||||
| @use "sass:string"; | ||||||
| @import 'functions'; | ||||||
| @import 'variables'; | ||||||
|
|
||||||
| :root, :host { | ||||||
| --#{$fa-css-prefix}-style-family-brands: 'Font Awesome 6 Brands'; | ||||||
|
|
@@ -27,5 +26,5 @@ | |||||
| } | ||||||
|
|
||||||
| @each $name, $icon in $fa-brand-icons { | ||||||
| .#{$fa-css-prefix}-#{$name} { #{$fa-icon-property}: string.unquote("#{ $icon }"); } | ||||||
| } | ||||||
| .#{$fa-css-prefix}-#{$name} { #{$fa-icon-property}: unquote("\"#{ $icon }\""); } | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The use of
Suggested change
|
||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,20 +6,20 @@ | |
| // Dimensions | ||
| $max-content-width: {{ site.max_width }}; | ||
|
|
||
| @use "variables" as *; | ||
| @use "themes" as *; | ||
| @use "layout" with ( | ||
| $max-content-width: $max-content-width | ||
| ); | ||
| @use "base"; | ||
| @use "distill"; | ||
| @use "cv"; | ||
| @use "tabs"; | ||
| @use "typograms"; | ||
| @use "font-awesome/fontawesome"; | ||
| @use "font-awesome/brands"; | ||
| @use "font-awesome/solid"; | ||
| @use "font-awesome/regular"; | ||
| @use "tabler-icons/tabler-icons"; | ||
| @use "tabler-icons/tabler-icons-filled"; | ||
| @use "tabler-icons/tabler-icons-outline"; | ||
| @import | ||
| "variables", | ||
| "themes", | ||
| "layout", | ||
| "base", | ||
| "distill", | ||
| "cv", | ||
| "tabs", | ||
| "typograms", | ||
| "font-awesome/fontawesome", | ||
| "font-awesome/brands", | ||
| "font-awesome/solid", | ||
| "font-awesome/regular", | ||
| "tabler-icons/tabler-icons.scss", | ||
| "tabler-icons/tabler-icons-filled.scss", | ||
| "tabler-icons/tabler-icons-outline.scss" | ||
| ; | ||
|
Comment on lines
+9
to
+25
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While migrating from |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of
unquote()here will produce an invalid value for the CSS custom properties. For thecontentproperty to correctly render the icon, the custom property's value must be a string literal containing the unicode escape sequence. The current implementation generates an unquoted value, which will break icon rendering.