Skip to content

Commit

Permalink
Fix fa-content function and variables
Browse files Browse the repository at this point in the history
As per variables, a “find and replace in selection by regexp”
functionality can be used.

1. Select lines containing variables
2. Find `: \\(.+);` and replace with `: "$1";`

Note: syntax may change according to the used editor
  • Loading branch information
tagliala committed Sep 27, 2022
1 parent f6c2f28 commit 020c621
Show file tree
Hide file tree
Showing 3 changed files with 4,762 additions and 4,690 deletions.
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
app/javascript/stylesheets/_functions.scss
app/javascript/stylesheets/_variables.scss
2 changes: 1 addition & 1 deletion app/javascript/stylesheets/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// fa-content: convenience function used to set content property
@function fa-content($fa-var) {
@return unquote("\"#{ $fa-var }\"");
@return unquote("\"") + unquote(str-insert($fa-var, "\\", 1)) + unquote("\"");
}

// fa-divide: Originally obtained from the Bootstrap https://github.com/twbs/bootstrap
Expand Down
Loading

0 comments on commit 020c621

Please sign in to comment.