add arimo font family (#86020)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Paul Marillonnet 2024-01-23 12:00:42 +01:00
parent d22e60370d
commit ba776a5e18
10 changed files with 27 additions and 0 deletions

7
README
View File

@ -451,6 +451,13 @@ copyright notices:
#
# https://www.fontsquirrel.com/license/nunito-sans
* Arimo
# Copyright (c) 2013 Steve Matteson.
#
# This Font Software is licensed under the Apache License Version 2.0.
#
# https://www.fontsquirrel.com/license/arimo
~~~~
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.

View File

@ -0,0 +1,20 @@
$arimo-font-path: '/static/fonts/Arimo' !default;
@mixin arimo-font($type, $weight, $style: normal) {
@font-face {
font-family: 'Arimo';
src: url('#{$arimo-font-path}/Arimo-#{$type}.woff2') format('woff2');
font-weight: $weight;
font-style: $style;
}
}
@mixin arimo-font-pair($type, $weight) {
@include arimo-font($type, $weight);
@include arimo-font(#{$type}Italic, $weight, italic);
}
@include arimo-font-pair('Regular', 400);
@include arimo-font-pair('Medium', 500);
@include arimo-font-pair('SemiBold', 600);
@include arimo-font-pair('Bold', 700);