| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
// NOTE @Venefilyn: This is here for backwards compatibility. The file should be removed at some point. |
| 3 |
// There are scenarios such as running tests for a plugin with a stable cockpit-shell/ws |
| 4 |
// Since those may be older, for now we should include the old fonts to make sure that the plugins |
| 5 |
// This allows plugins to still utilize the Red Hat fonts when testing plugins on or before Cockpit v336 |
| 6 |
|
| 7 |
@mixin printRedHatFont( |
| 8 |
$weightValue: 400, |
| 9 |
$weightName: "Regular", |
| 10 |
$familyName: "RedHatText", |
| 11 |
$style: "normal", |
| 12 |
$relative: true |
| 13 |
) { |
| 14 |
$filePath: "../../static/fonts" + "/" + $familyName + "-" + $weightName; |
| 15 |
|
| 16 |
@font-face { |
| 17 |
font-family: $familyName; |
| 18 |
src: url("#{$filePath}.woff2") format("woff2"); |
| 19 |
font-style: #{$style}; |
| 20 |
font-weight: $weightValue; |
| 21 |
font-display: fallback; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
@include printRedHatFont(700, "Bold", $familyName: "RedHatDisplay"); |
| 26 |
@include printRedHatFont(700, "BoldItalic", $style: "italic", $familyName: "RedHatDisplay"); |
| 27 |
@include printRedHatFont(900, "Black", $familyName: "RedHatDisplay"); |
| 28 |
@include printRedHatFont(900, "BlackItalic", $style: "italic", $familyName: "RedHatDisplay"); |
| 29 |
@include printRedHatFont(300, "Italic", $style: "italic", $familyName: "RedHatDisplay"); |
| 30 |
@include printRedHatFont(400, "Medium", $familyName: "RedHatDisplay"); |
| 31 |
@include printRedHatFont(400, "MediumItalic", $style: "italic", $familyName: "RedHatDisplay"); |
| 32 |
@include printRedHatFont(300, "Regular", $familyName: "RedHatDisplay"); |
| 33 |
@include printRedHatFont(700, "Bold"); |
| 34 |
@include printRedHatFont(700, "BoldItalic", $style: "italic"); |
| 35 |
@include printRedHatFont(400, "Italic", $style: "italic"); |
| 36 |
@include printRedHatFont(700, "Medium"); |
| 37 |
@include printRedHatFont(700, "MediumItalic", $style: "italic"); |
| 38 |
@include printRedHatFont(400, "Regular"); |
| 39 |
@include printRedHatFont(700, "Bold", $familyName: "RedHatMono"); |
| 40 |
@include printRedHatFont(700, "BoldItalic", $style: "italic", $familyName: "RedHatMono"); |
| 41 |
@include printRedHatFont(400, "Italic", $style: "italic", $familyName: "RedHatMono"); |
| 42 |
@include printRedHatFont(500, "Medium", $familyName: "RedHatMono"); |
| 43 |
@include printRedHatFont(500, "MediumItalic", $style: "italic", $familyName: "RedHatMono"); |
| 44 |
@include printRedHatFont(400, "Regular", $familyName: "RedHatMono"); |