add Lato font (#30737)
This commit is contained in:
parent
68d6a758d6
commit
7cac13c5f1
7
README
7
README
|
@ -141,7 +141,12 @@ copyright notices:
|
|||
#
|
||||
# https://www.fontsquirrel.com/license/roboto-slab
|
||||
|
||||
~~~~
|
||||
* Lato font
|
||||
# Copyright (c) 2014, Typoland
|
||||
#
|
||||
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
#
|
||||
# http://www.latofonts.com/
|
||||
|
||||
Some theme variant files have their own specific licenses; refer to
|
||||
static/$theme/README for details.
|
||||
|
|
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.
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.
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.
|
@ -0,0 +1,26 @@
|
|||
$lato-font-path: '../fonts/Lato' !default;
|
||||
|
||||
@mixin lato-font($type, $weight, $style: normal) {
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
src: url('#{$lato-font-path}/Lato-#{$type}.woff2') format('woff2'),
|
||||
url('#{$lato-font-path}/Lato-#{$type}.woff') format('woff');
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin lato-font-pair($type, $weight) {
|
||||
@include lato-font($type, $weight);
|
||||
@include lato-font(#{$type}Italic, $weight, italic);
|
||||
}
|
||||
|
||||
@include lato-font-pair('Hairline', 100);
|
||||
@include lato-font-pair('Thin', 200);
|
||||
@include lato-font-pair('Light', 300);
|
||||
@include lato-font-pair('Regular', 400);
|
||||
@include lato-font-pair('Medium', 500);
|
||||
@include lato-font-pair('Semibold', 600);
|
||||
@include lato-font-pair('Bold', 700);
|
||||
@include lato-font-pair('Heavy', 800);
|
||||
@include lato-font-pair('Black', 900);
|
Loading…
Reference in New Issue