Skip to content

Commit

Permalink
theme: use mojangles font
Browse files Browse the repository at this point in the history
  • Loading branch information
AnInternetTroll committed Jan 2, 2025
1 parent 16a1d15 commit 42acd4f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
22 changes: 12 additions & 10 deletions themes/minecraft/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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,
Expand Down
Binary file not shown.
12 changes: 12 additions & 0 deletions themes/minecraft/layouts/partials/head/css.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@
{{- end }}
{{- end }}
{{ end }}
{{ $f := slice "fonts/Minecraft-Seven_v2.woff2" }}
{{ range $f }}
{{- with resources.Get . }}
<link
rel="preload"
href="{{ .RelPermalink }}"
integrity="{{ .Data.Integrity }}"
as="font"
type="{{ .MediaType }}"
crossorigin="anonymous" />
{{ end }}
{{ end }}

0 comments on commit 42acd4f

Please sign in to comment.