-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #726 from alphagov/new-font-loading-strategy
Use new font loading strategy
- Loading branch information
Showing
23 changed files
with
113 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
// Set the path to your images folder | ||
$govuk-global-images: "/assets/images/" !default; | ||
/// Path to the assets directory, with trailing slash. | ||
/// | ||
/// This is the directory where the images and fonts subdirectories live. You | ||
/// will need to make this directory available via your application – see the | ||
/// README for details. | ||
$govuk-assets-path: "/assets/" !default; | ||
|
||
// Path to the images folder, with trailing slash. | ||
$govuk-images-path: "#{$govuk-assets-path}images/" !default; | ||
|
||
// Path to the fonts folder, with trailing slash. | ||
$govuk-fonts-path: "#{$govuk-assets-path}fonts/" !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
@import "compatibility"; | ||
@import "exports"; | ||
@import "file-url"; | ||
@import "font-url"; | ||
@import "ie8"; | ||
@import "iff"; | ||
@import "image-url"; | ||
@import "px-to-em"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// Font URL | ||
/// | ||
/// Returns a URL for the given font filename | ||
|
||
@function govuk-font-url($filename) { | ||
@return url($govuk-fonts-path + $filename); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// Image URL | ||
/// | ||
/// Returns a URL for the given image filename | ||
|
||
@function govuk-image-url($filename) { | ||
@return url($govuk-images-path + $filename); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters