]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Includes a google webfont for use in your theme.\r | |
3 | * @param {string} $font-name The name of the font. If the font name contains spaces\r | |
4 | * use "+" instead of space.\r | |
5 | * @param {string} [$font-weights=400] Comma-separated list of font weights to include.\r | |
6 | *\r | |
7 | * Example usage:\r | |
8 | *\r | |
9 | * @include google-webfont(\r | |
10 | * $font-name: Exo,\r | |
11 | * $font-weights: 200 300 400\r | |
12 | * );\r | |
13 | *\r | |
14 | * Outputs:\r | |
15 | *\r | |
16 | * @import url(//fonts.googleapis.com/css?family=Exo:200,300,400);\r | |
17 | *\r | |
18 | * @member Global_CSS\r | |
19 | */\r | |
20 | @mixin google-webfont(\r | |
21 | $font-name,\r | |
22 | $font-weights: 400\r | |
23 | ) {\r | |
24 | @import url('//fonts.googleapis.com/css?family=#{$font-name}:#{$font-weights}');\r | |
25 | }\r |