fonts: add Public Sans (#77707)
gitea/publik-base-theme/pipeline/head This commit looks good
Details
gitea/publik-base-theme/pipeline/head This commit looks good
Details
parent
811179f79c
commit
a7a639c680
7
README
7
README
|
@ -430,6 +430,13 @@ copyright notices:
|
|||
#
|
||||
# https://www.fontsquirrel.com/license/butler
|
||||
|
||||
* Public Sans
|
||||
# Copyright (c) 2015 Impallari Type (www.impallari.com), with Reserved Font Name “Public Sans”
|
||||
#
|
||||
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
#
|
||||
# https://www.fontsquirrel.com/license/public-sans
|
||||
|
||||
~~~~
|
||||
|
||||
Some theme variant files have their own specific licenses; refer to
|
||||
|
|
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,25 @@
|
|||
$publicsans-font-path: '/static/fonts/PublicSans' !default;
|
||||
|
||||
@mixin publicsans-font($type, $weight, $style: normal) {
|
||||
@font-face {
|
||||
font-family: 'Public Sans';
|
||||
src: url('#{$publicsans-font-path}/PublicSans-#{$type}.woff2') format('woff2');
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin publicsans-font-pair($type, $weight) {
|
||||
@include publicsans-font($type, $weight);
|
||||
@include publicsans-font(#{$type}Italic, $weight, italic);
|
||||
}
|
||||
|
||||
@include publicsans-font-pair('Thin', 100);
|
||||
@include publicsans-font-pair('ExtraLight', 200);
|
||||
@include publicsans-font-pair('Light', 300);
|
||||
@include publicsans-font-pair('Regular', 400);
|
||||
@include publicsans-font-pair('Medium', 500);
|
||||
@include publicsans-font-pair('SemiBold', 600);
|
||||
@include publicsans-font-pair('Bold', 700);
|
||||
@include publicsans-font-pair('ExtraBold', 800);
|
||||
@include publicsans-font-pair('Black', 900);
|
Loading…
Reference in New Issue