From: Giorgio Ravera Date: Tue, 6 Jan 2026 21:02:58 +0000 (+0100) Subject: created css/variables.css X-Git-Tag: v0.0.1~37 X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=537329136e80bb3004487120996d957e9bde5e95;p=network-manager.git created css/variables.css --- diff --git a/backend/main.py b/backend/main.py index 2644991..e93072a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -82,3 +82,8 @@ async def session_middleware(request: Request, call_next): @app.get("/") def home(request: Request): return FileResponse(os.path.join(FRONTEND_DIR, "hosts.html")) + +# Main CSS +@app.get("/css/variables.css") +def home(request: Request): + return FileResponse(os.path.join(FRONTEND_DIR, "css/variables.css")) diff --git a/frontend/css/hosts.css b/frontend/css/hosts.css index b36e0df..136c5c4 100644 --- a/frontend/css/hosts.css +++ b/frontend/css/hosts.css @@ -1,20 +1,3 @@ -/* ================================ - Global color variables (pfSense style) - ================================ */ -:root { - --accent: #4da3ff; - --accent-hover: #1f8bff; - - --bg-dark: #111; - --bg-light: #f9f9f9; - --bg-frame: #e8e8e8; - - --text-light: #e6e6e6; - --text-dark: #222; - - --border-light: #ccc; -} - /* ================================ Global layout ================================ */ diff --git a/frontend/css/variables.css b/frontend/css/variables.css new file mode 100644 index 0000000..dd538f1 --- /dev/null +++ b/frontend/css/variables.css @@ -0,0 +1,16 @@ +/* ================================ + Global color variables (pfSense style) + ================================ */ +:root { + --accent: #4da3ff; + --accent-hover: #1f8bff; + + --bg-dark: #111; + --bg-light: #f9f9f9; + --bg-frame: #e8e8e8; + + --text-light: #e6e6e6; + --text-dark: #222; + + --border-light: #ccc; +} diff --git a/frontend/hosts.html b/frontend/hosts.html index 3a19e12..b5ea28a 100644 --- a/frontend/hosts.html +++ b/frontend/hosts.html @@ -3,6 +3,7 @@ Network Manager + diff --git a/frontend/login.html b/frontend/login.html index 9e725e3..9caaa78 100644 --- a/frontend/login.html +++ b/frontend/login.html @@ -3,6 +3,7 @@ Network Manager - Login +