diff --git a/themes/minecraft/assets/css/main.css b/themes/minecraft/assets/css/main.css index 366cca7..ca90413 100644 --- a/themes/minecraft/assets/css/main.css +++ b/themes/minecraft/assets/css/main.css @@ -1,3 +1,8 @@ +@font-face { + font-family: "Mojangles MCBE"; + src: url("/fonts/Minecraft-Seven_v2.woff2") format("woff2"); +} + html[data-color-scheme="dark"] { --ds-color-brand3-border-subtle: #6a431f; --ds-color-accent-text-subtle: #aadb74; @@ -78,16 +83,13 @@ footer { gap: var(--ds-spacing-4); } -.mcbe-content { - & h1, - & h2, - & h3, - & h4, - & h5, - & h6 { - margin-top: var(--ds-spacing-4); - margin-bottom: var(--ds-spacing-4); - } +.ds-heading { + font-family: "Mojangles MCBE", serif; +} + +.mcbe-content .ds-heading { + margin-top: var(--ds-spacing-4); + margin-bottom: var(--ds-spacing-4); } /* This is really only targeting the heading on the homepage of the rules repo, diff --git a/themes/minecraft/assets/fonts/Minecraft-Seven_v2.woff2 b/themes/minecraft/assets/fonts/Minecraft-Seven_v2.woff2 new file mode 100644 index 0000000..95c4390 Binary files /dev/null and b/themes/minecraft/assets/fonts/Minecraft-Seven_v2.woff2 differ diff --git a/themes/minecraft/layouts/partials/head/css.html b/themes/minecraft/layouts/partials/head/css.html index 0148920..adc66cc 100644 --- a/themes/minecraft/layouts/partials/head/css.html +++ b/themes/minecraft/layouts/partials/head/css.html @@ -10,3 +10,15 @@ {{- end }} {{- end }} {{ end }} +{{ $f := slice "fonts/Minecraft-Seven_v2.woff2" }} +{{ range $f }} + {{- with resources.Get . }} + + {{ end }} +{{ end }}