diff options
author | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-08-01 22:28:15 +0200 |
---|---|---|
committer | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-08-01 22:28:15 +0200 |
commit | 9852b6cd074cceec0d0b549bb6c9bd7fe50c86f2 (patch) | |
tree | 22d9b851864f9370282f21d10113afd5d565e4cf /static/css | |
parent | b028da9fea70c65ccd52d1d478859739027d756a (diff) | |
download | main-9852b6cd074cceec0d0b549bb6c9bd7fe50c86f2.tar.gz main-9852b6cd074cceec0d0b549bb6c9bd7fe50c86f2.tar.bz2 main-9852b6cd074cceec0d0b549bb6c9bd7fe50c86f2.zip |
Update
Diffstat (limited to 'static/css')
-rw-r--r-- | static/css/fonts/index.php | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/static/css/fonts/index.php b/static/css/fonts/index.php new file mode 100644 index 0000000..f855ee5 --- /dev/null +++ b/static/css/fonts/index.php @@ -0,0 +1,83 @@ +<?php + +header("Content-Type: text/css"); + +/* + * @font-face { + src: url("/static/fonts/Jost-Black.ttf"); + font-family: "Jost"; + font-style: normal; + font-weight: 900; +} + */ + +function css($name, $weight, $weightId, $style) { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/static/fonts/{$name}-{$weight}.ttf")) { + return "\n@font-face {\n src: url(\"/static/fonts/{$name}-{$weight}.ttf\");\n font-family: \"{$name}\";\n font-style: {$style};\n font-weight: {$weightId};\n}\n"; + } +} + +function font(string $name) { + $txt = ""; + + // 100 - Thin + $txt .= css($name, "Thin", 100, "normal"); + $txt .= css($name, "ThinItalic", 100, "italic"); + + // 200 - Extra Light + $txt .= css($name, "ExtraLight", 200, "normal"); + $txt .= css($name, "ExtraLightItalic", 200, "italic"); + + // 300 - Light + $txt .= css($name, "Light", 300, "normal"); + $txt .= css($name, "LightItalic", 300, "italic"); + + // 400 - Regular + $txt .= css($name, "Italic", 400, "italic"); + $txt .= css($name, "Regular", 400, "normal"); + + // 500 - Medium + $txt .= css($name, "Medium", 500, "normal"); + $txt .= css($name, "MediumItalic", 500, "italic"); + + // 600 - Semi-bold + $txt .= css($name, "SemiBold", 600, "normal"); + $txt .= css($name, "SemiBoldItalic", 600, "italic"); + + // 700 - Bold + $txt .= css($name, "Bold", 700, "normal"); + $txt .= css($name, "BoldItalic", 700, "italic"); + + // 800 - Extra Bold + $txt .= css($name, "ExtraBold", 800, "normal"); + $txt .= css($name, "ExtraBoldItalic", 800, "italic"); + + // 900 - Black + $txt .= css($name, "Black", 900, "normal"); + $txt .= css($name, "BlackItalic", 900, "normal"); + + return $txt; +} + +?> + +/* Generated on <?= date('r') ?> */ +<?= font("Jost") ?> +<?= font("MavenPro") ?> +<?= font("Overpass") ?> + +:root { + --bs-font-sans-serif: "MavenPro","Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",system-ui,-apple-system !important; +} + +html, body { + font-family: "MavenPro","Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",system-ui,-apple-system !important; +} + +body.admin { + font-family: "Overpass","Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",system-ui,-apple-system !important; +} + +h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { + font-family: "Jost","Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",system-ui,-apple-system; +}
\ No newline at end of file |