Skip to content

Commit f9fa056

Browse files
committed
last font change im ever making
1 parent c9ceddd commit f9fa056

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

nightwatch/rics/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from fastapi import FastAPI, WebSocket
1212
from fastapi.responses import JSONResponse
13+
from fastapi.middleware.cors import CORSMiddleware
1314
from starlette.websockets import WebSocketDisconnect, WebSocketState
1415

1516
from nightwatch import __version__
@@ -19,9 +20,8 @@
1920
config = fetch_config("rics")
2021

2122
# Initialization
22-
app = FastAPI(
23-
openapi_url = None
24-
)
23+
app = FastAPI(openapi_url = None)
24+
app.add_middleware(CORSMiddleware, allow_origins = ["*"], allow_methods = ["*"])
2525

2626
# Scaffold the application
2727
app.state.clients = {}

nightwatch/web/css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
font-family: "Fira Code";
66
src: url("/fonts/fira.woff2") format("woff2");
77
}
8+
@font-face {
9+
font-family: "Fira Mono";
10+
src: url("/fonts/fira_mono.woff2") format("woff2");
11+
}
812

913
/* Baselining */
1014
* {
@@ -147,6 +151,7 @@ div.input-box {
147151
}
148152
#actual-input {
149153
width: 100%;
154+
font-family: "Fira Mono";
150155
}
151156

152157
/* Handle sidebar */

nightwatch/web/fonts/fira_mono.woff2

63.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)