-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
121 additions
and
27 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Upgrade Guide | ||
|
||
## Upgrading from 1.x to 2.x | ||
|
||
The syntax for Sass Web Fonts has changed. | ||
|
||
What would previously have been written: | ||
|
||
```scss | ||
@include web-fonts("Open Sans"); | ||
``` | ||
|
||
Should now be written: | ||
|
||
```scss | ||
@import url(web-fonts-url("Open Sans")); | ||
``` | ||
|
||
This change was made to allow Sass Web Fonts to be used with [libsass](https://github.com/sass/libsass). | ||
|
||
If you have a large project with lots of calls to `web-fonts()` that you don't want to replace by hand, you can include `web-fonts/compat.scss` from the Sass Web Fonts repository and replace any occurrence of `@import "web-fonts"` with `@import "web-fonts/compat"` to continue using the old syntax. However, it is recommended that you switch to using the new syntax at some point, because `web-fonts/compat` will be removed in a future release of the library. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "sass-web-fonts", | ||
"main": "_web-fonts.scss", | ||
"version": "1.1.1", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/penman/Sass-Web-Fonts", | ||
"authors": [ | ||
"Ross Penman <[email protected]>" | ||
|
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,2 @@ | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans"); | ||
@import url("//fonts.googleapis.com/css?family=Ubuntu"); |
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,3 @@ | ||
@import "web-fonts/compat"; | ||
@include web-fonts("Open Sans"); | ||
@include web-fonts("Ubuntu"); |
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 @@ | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans|Ubuntu%3A400%2Citalic"); |
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,2 @@ | ||
@import "web-fonts/compat"; | ||
@include web-fonts("Open Sans", ("Ubuntu": ("400", "italic"))); |
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 @@ | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans%3A500%2C600italic"); |
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,2 @@ | ||
@import "web-fonts/compat"; | ||
@include web-fonts(("Open Sans": ("500", "600 italic"))); |
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,4 @@ | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans"); | ||
@import url("http://fonts.googleapis.com/css?family=Open%20Sans"); | ||
@import url("https://fonts.googleapis.com/css?family=Open%20Sans"); | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans"); |
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,12 @@ | ||
@import "web-fonts/compat"; | ||
|
||
@include web-fonts("Open Sans"); | ||
|
||
$web-fonts-protocol: "http"; | ||
@include web-fonts("Open Sans"); | ||
|
||
$web-fonts-protocol: "https"; | ||
@include web-fonts("Open Sans"); | ||
|
||
$web-fonts-protocol: ""; | ||
@include web-fonts("Open Sans"); |
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 @@ | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans"); |
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,2 @@ | ||
@import "web-fonts/compat"; | ||
@include web-fonts("Open Sans"); |
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 @@ | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans%3Abold"); |
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,2 @@ | ||
@import "web-fonts/compat"; | ||
@include web-fonts(("Open Sans": "bold")); |
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 @@ | ||
@import url("//fonts.googleapis.com/css?family=Open%20Sans&subset=latin%2Clatin-ext"); |
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,3 @@ | ||
@import "web-fonts/compat"; | ||
$web-fonts-params: (subset: "latin,latin-ext"); | ||
@include web-fonts("Open Sans"); |
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,3 +1,5 @@ | ||
@import "web-fonts"; | ||
@include web-fonts("Open Sans"); | ||
@include web-fonts("Ubuntu"); | ||
$url: web-fonts-url("Open Sans"); | ||
@import url($url); | ||
$url: web-fonts-url("Ubuntu"); | ||
@import url($url); |
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,3 @@ | ||
@import "web-fonts"; | ||
@include web-fonts("Open Sans", ("Ubuntu": ("400", "italic"))); | ||
$url: web-fonts-url("Open Sans", ("Ubuntu": ("400", "italic"))); | ||
@import url($url); |
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,3 @@ | ||
@import "web-fonts"; | ||
@include web-fonts(("Open Sans": ("500", "600 italic"))); | ||
$url: web-fonts-url(("Open Sans": ("500", "600 italic"))); | ||
@import url($url); |
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,12 +1,16 @@ | ||
@import "web-fonts"; | ||
|
||
@include web-fonts("Open Sans"); | ||
$url: web-fonts-url("Open Sans"); | ||
@import url($url); | ||
|
||
$web-fonts-protocol: "http"; | ||
@include web-fonts("Open Sans"); | ||
$url: web-fonts-url("Open Sans"); | ||
@import url($url); | ||
|
||
$web-fonts-protocol: "https"; | ||
@include web-fonts("Open Sans"); | ||
$url: web-fonts-url("Open Sans"); | ||
@import url($url); | ||
|
||
$web-fonts-protocol: ""; | ||
@include web-fonts("Open Sans"); | ||
$url: web-fonts-url("Open Sans"); | ||
@import url($url); |
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,4 @@ | ||
@import "web-fonts"; | ||
@include web-fonts("Open Sans"); | ||
|
||
$url: web-fonts-url("Open Sans"); | ||
@import url($url); |
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,3 @@ | ||
@import "web-fonts"; | ||
@include web-fonts(("Open Sans": "bold")); | ||
$url: web-fonts-url(("Open Sans": "bold")); | ||
@import url($url); |
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,3 +1,4 @@ | ||
@import "web-fonts"; | ||
$web-fonts-params: (subset: "latin,latin-ext"); | ||
@include web-fonts("Open Sans"); | ||
$url: web-fonts-url("Open Sans"); | ||
@import url($url); |
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,5 @@ | ||
@import "web-fonts"; | ||
|
||
@mixin web-fonts($fonts...) { | ||
@import url(web-fonts-url($fonts...)); | ||
} |