general: add MuseoModerno font (#78420)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-06-13 10:13:10 +02:00
parent 6a8e22b802
commit 80c924fb54
20 changed files with 31 additions and 0 deletions

7
README
View File

@ -437,6 +437,13 @@ copyright notices:
#
# https://www.fontsquirrel.com/license/public-sans
* MuseoModerno
# Copyright (c) 2020, Omnibus-Type (www.omnibus-type.com|omnibus.type@gmail.com).
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://github.com/Omnibus-Type/MuseoModerno/blob/master/LICENSE.md
~~~~
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,24 @@
$museomoderno-font-path: '/static/fonts/MuseoModerno' !default;
@mixin museomoderno-font($type, $weight, $style: normal) {
@font-face {
font-family: 'MuseoModerno';
src: url('#{$museomoderno-font-path}/MuseoModerno-#{$type}.woff2') format('woff2');
font-weight: $weight;
font-style: $style;
}
}
@mixin museomoderno-font-pair($type, $weight) {
@include museomoderno-font($type, $weight);
@include museomoderno-font(#{$type}Italic, $weight, italic);
}
@include museomoderno-font-pair('Thin', 100);
@include museomoderno-font-pair('ExtraLight', 200);
@include museomoderno-font-pair('Light', 300);
@include museomoderno-font-pair('Regular', 400);
@include museomoderno-font-pair('Medium', 500);
@include museomoderno-font-pair('SemiBold', 600);
@include museomoderno-font-pair('Bold', 700);
@include museomoderno-font-pair('Black', 900);