Skip to content

Commit 998ea92

Browse files
cijujonathantneal
authored andcommitted
Wrap font expression with #{} (#95)
see: #93 Wrap expression around `/` with `#{}`, to retain `/` as is. http://sass-lang.com/documentation/file.SASS_REFERENCE.html#division-and-slash
1 parent d33f62f commit 998ea92

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/sanitize.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ svg
205205
box-sizing: if(variable-exists(root-box-sizing), $root-box-sizing, border-box)
206206
color: if(variable-exists(root-color), $root-color, #000000)
207207
cursor: if(variable-exists(root-cursor), $root-cursor, default)
208-
font: if(variable-exists(root-font-size), $root-font-size, 100%)/#{if(variable-exists(root-line-height), $root-line-height, 1.5)} if(variable-exists(root-font-family), $root-font-family, sans-serif)
208+
font: #{if(variable-exists(root-font-size), $root-font-size, 100%)}/#{if(variable-exists(root-line-height), $root-line-height, 1.5)} if(variable-exists(root-font-family), $root-font-family, sans-serif)
209209

210210
// specify the text decoration of anchors
211211

lib/sanitize.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ svg {
246246
box-sizing: if(variable-exists(root-box-sizing), $root-box-sizing, border-box);
247247
color: if(variable-exists(root-color), $root-color, #000000);
248248
cursor: if(variable-exists(root-cursor), $root-cursor, default);
249-
font: if(variable-exists(root-font-size), $root-font-size, 100%)/#{if(variable-exists(root-line-height), $root-line-height, 1.5)} if(variable-exists(root-font-family), $root-font-family, sans-serif);
249+
font: #{if(variable-exists(root-font-size), $root-font-size, 100%)}/#{if(variable-exists(root-line-height), $root-line-height, 1.5)} if(variable-exists(root-font-family), $root-font-family, sans-serif);
250250
}
251251

252252
// specify the text decoration of anchors

0 commit comments

Comments
 (0)