Skip to content

Commit

Permalink
feat(bluemap/chat): better font
Browse files Browse the repository at this point in the history
  • Loading branch information
Chicken committed Mar 19, 2024
1 parent a92df8a commit 57aca4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void run() {
try {
copyResource("bluemap-chat.js");
copyResource("bluemap-chat.css");
copyResource("minecraft.otf");
api.getWebApp().registerScript("assets/bluemap-chat.js");
api.getWebApp().registerStyle("assets/bluemap-chat.css");
} catch (IOException ex) {
Expand Down
10 changes: 7 additions & 3 deletions BlueMap/Chat/src/main/resources/bluemap-chat.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
@font-face {
font-family: "minecraft";
src: url("/assets/minecraft.otf") format("opentype");
}

#chat-root {
position: absolute;
Expand All @@ -9,9 +12,10 @@
margin: 0;
padding: 0;
background-color: rgba(0,0,0, 0.25);
font-family: "VT323", sans-serif;
font-family: "minecraft", sans-serif;
color: white;
font-size: 24px;
font-size: 18px;
line-height: 1.25;
box-sizing: border-box;
}

Expand Down
Binary file added BlueMap/Chat/src/main/resources/minecraft.otf
Binary file not shown.

0 comments on commit 57aca4f

Please sign in to comment.