Skip to content

Commit

Permalink
Web font path resolution (#1281)
Browse files Browse the repository at this point in the history
* web-font-path string interpolation to avoid literal interpretation as expanded path in some SCSS parsers

* Limit change to condition statement only

* Revert "Limit change to condition statement only"

This reverts commit 950e109.

* Removed incorrect change of if statement
  • Loading branch information
rawnsley committed Oct 17, 2023
1 parent 3038872 commit c74d13f
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion dist/cosmo/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Typography
Expand Down
2 changes: 1 addition & 1 deletion dist/cyborg/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion dist/darkly/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Typography
Expand Down
2 changes: 1 addition & 1 deletion dist/flatly/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navs
Expand Down
2 changes: 1 addition & 1 deletion dist/journal/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=News+Cycle:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion dist/lumen/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion dist/lux/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;500;600;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion dist/materia/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion dist/minty/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion dist/morph/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

$btn-box-shadow-inset: inset 2px 3px 6px rgba($black, .2), inset -3px -2px 6px rgba($white, .2) !default;
Expand Down
2 changes: 1 addition & 1 deletion dist/sandstone/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion dist/simplex/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion dist/sketchy/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css?family=Neucha|Cabin+Sketch&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// stylelint-disable scss/dollar-variable-default
Expand Down
2 changes: 1 addition & 1 deletion dist/solar/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Buttons
Expand Down
2 changes: 1 addition & 1 deletion dist/spacelab/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion dist/superhero/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Buttons
Expand Down
2 changes: 1 addition & 1 deletion dist/united/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Indicators
Expand Down
2 changes: 1 addition & 1 deletion dist/vapor/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

$outrun: false !default;
Expand Down
2 changes: 1 addition & 1 deletion dist/yeti/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion dist/zephyr/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/5/cosmo/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Typography
Expand Down
2 changes: 1 addition & 1 deletion docs/5/cyborg/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/5/darkly/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Typography
Expand Down
2 changes: 1 addition & 1 deletion docs/5/flatly/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navs
Expand Down
2 changes: 1 addition & 1 deletion docs/5/journal/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=News+Cycle:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/5/lumen/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion docs/5/lux/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;500;600;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/5/materia/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion docs/5/minty/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/5/morph/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

$btn-box-shadow-inset: inset 2px 3px 6px rgba($black, .2), inset -3px -2px 6px rgba($white, .2) !default;
Expand Down
2 changes: 1 addition & 1 deletion docs/5/sandstone/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/5/simplex/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion docs/5/sketchy/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css?family=Neucha|Cabin+Sketch&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// stylelint-disable scss/dollar-variable-default
Expand Down
2 changes: 1 addition & 1 deletion docs/5/solar/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Buttons
Expand Down
2 changes: 1 addition & 1 deletion docs/5/spacelab/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Mixins
Expand Down
2 changes: 1 addition & 1 deletion docs/5/superhero/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Buttons
Expand Down
2 changes: 1 addition & 1 deletion docs/5/united/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Indicators
Expand Down
2 changes: 1 addition & 1 deletion docs/5/vapor/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

$outrun: false !default;
Expand Down
2 changes: 1 addition & 1 deletion docs/5/yeti/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down
2 changes: 1 addition & 1 deletion docs/5/zephyr/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$web-font-path: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
@import url("#{$web-font-path}");
}

// Navbar
Expand Down

0 comments on commit c74d13f

Please sign in to comment.