mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-26 19:37:47 +02:00
feat(ui): add Twemoji Country Flags font to make sure flags always render (#2363)
This commit is contained in:
BIN
internal/site/src/assets/TwemojiCountryFlags.woff2
Normal file
BIN
internal/site/src/assets/TwemojiCountryFlags.woff2
Normal file
Binary file not shown.
@@ -64,7 +64,7 @@
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--font-sans: Inter, InterVariable, sans-serif;
|
||||
--font-sans: TwemojiCountryFlags, Inter, InterVariable, sans-serif;
|
||||
|
||||
--breakpoint-xs: 26.6rem;
|
||||
--breakpoint-450: 28rem;
|
||||
@@ -118,11 +118,25 @@
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
|
||||
/* Fonts */
|
||||
|
||||
/* Twemoji Country Flags font from country-flag-emoji-polyfill,
|
||||
* derived from Twemoji Mozilla. Twemoji graphics are licensed CC BY 4.0:
|
||||
* https://creativecommons.org/licenses/by/4.0/
|
||||
*/
|
||||
@font-face {
|
||||
font-family: TwemojiCountryFlags;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("./assets/TwemojiCountryFlags.woff2") format("woff2");
|
||||
/* Regional indicator symbols make up ISO 3166-1 flag emoji. */
|
||||
unicode-range: U+1F1E6-1F1FF;
|
||||
}
|
||||
|
||||
@supports (font-variation-settings: normal) {
|
||||
:root {
|
||||
font-family: Inter, InterVariable, sans-serif;
|
||||
font-family: TwemojiCountryFlags, Inter, InterVariable, sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user