Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Sitewide Fixes & Improvements. #266

Merged
merged 12 commits into from
Jan 22, 2025
Prev Previous commit
Next Next commit
Embed polyfill locally since it's CC-0
  • Loading branch information
IMB11 committed Jan 17, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f82e4e3cb71ec96c60b32ca4bf343cc0c91429f6
Binary file added .vitepress/theme/CountryFlagsPolyfill.woff2
Binary file not shown.
4 changes: 0 additions & 4 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -3,8 +3,6 @@ import { Theme, useData, useRoute } from "vitepress";
import DefaultTheme from "vitepress/theme";
import { h, nextTick, onMounted, watch } from "vue";

import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill";

import AuthorsComponent from "./components/AuthorsComponent.vue";
import ColorSwatch from "./components/ColorSwatch.vue";
import DownloadEntry from "./components/DownloadEntry.vue";
@@ -55,7 +53,5 @@ export default {
() => route.path,
() => nextTick(() => initZoom())
);

polyfillCountryFlagEmojis("Flag Emoji Polyfill");
},
} satisfies Theme;
9 changes: 9 additions & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
@@ -3,6 +3,15 @@
https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
*/

/* Emoji Flag Unicode Polyfill */
@font-face {
font-family: "Flag Emoji Polyfill";
unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
src: url("./CountryFlagsPolyfill.woff2") format('woff2');
font-display: swap;
}

/* Define custom color variables, fabricmc.net brand colors, and other shared properties. */
:root {
--vp-c-blue-1: #1662c5;
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@
},
"dependencies": {
"@vueuse/core": "^12.4.0",
"country-flag-emoji-polyfill": "^0.1.8",
"markdown-it-mathjax3": "^4.3.2",
"markdown-it-vuepress-code-snippet-enhanced": "github:IMB11/md-it-enhanced-snippets#dfb9fa2",
"medium-zoom": "^1.1.0",