Skip to content

Commit

Permalink
Fix fa-content function and $fa-var variables
Browse files Browse the repository at this point in the history
Fix to `_functions.scss` is trivial

As per `_variables.scss`, a “find and replace in selection by regexp”
functionality may be used.

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

Note: regexp replacement syntax may change according to the editor.

Our goal is to turn `$fa-var-0: \30;` into `$fa-var-0: "30";`
  • Loading branch information
tagliala committed Sep 27, 2022
1 parent 3bdcfe0 commit 5846641
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 5846641

Please sign in to comment.