fonts: add PT Sans (#35659)
This commit is contained in:
parent
8e17256830
commit
17aac4f6cd
8
README
8
README
|
@ -210,6 +210,14 @@ copyright notices:
|
|||
#
|
||||
# This license is available with a FAQ at: http://scripts.sil.org/OFL
|
||||
|
||||
* PT Sans
|
||||
# Copyright © 2009 ParaType Ltd.
|
||||
# with Reserved Names "PT Sans" and "ParaType".
|
||||
#
|
||||
# Paratype PT Sans Free Font License v1.00.
|
||||
#
|
||||
# https://www.fontsquirrel.com/license/pt-sans
|
||||
|
||||
~~~~
|
||||
|
||||
Some theme variant files have their own specific licenses; refer to
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
@import url(https://fonts.googleapis.com/css?family=PT%20Sans:400,700);
|
||||
|
||||
div#page {
|
||||
margin: 0 60px;
|
||||
background: #F1F1F1;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@import '../includes/font-ptsans';
|
||||
|
||||
$primary-color: #C25D1B;
|
||||
|
||||
$width: 1140px;
|
||||
|
|
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,19 @@
|
|||
@mixin ptsans-font($type, $weight) {
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
src: url('/static/fonts/PTSans/PTSans-#{$type}.woff2') format('woff2'),
|
||||
url('/static/fonts/PTSans/PTSans-#{$type}.woff') format('woff');
|
||||
font-weight: $weight;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
src: url('/static/fonts/PTSans/PTSans-#{$type}Italic.woff2') format('woff2'),
|
||||
url('/static/fonts/PTSans/PTSans-#{$type}Italic.woff') format('woff');
|
||||
font-weight: $weight;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
@include ptsans-font('Regular', 400);
|
||||
@include ptsans-font('Bold', 700);
|
Loading…
Reference in New Issue