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 3bdcfe0 commit a58cf89
Show file tree
Hide file tree
Showing 2 changed files with 2,448 additions and 2,448 deletions.
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 a58cf89

Please sign in to comment.