]> git.giorgioravera.it Git - network-manager.git/commitdiff
created css/variables.css
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 6 Jan 2026 21:02:58 +0000 (22:02 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 6 Jan 2026 21:02:58 +0000 (22:02 +0100)
backend/main.py
frontend/css/hosts.css
frontend/css/variables.css [new file with mode: 0644]
frontend/hosts.html
frontend/login.html

index 26449915f99e636a189aeb277bd331a60423ae55..e93072a316762694933b66063b7c79a5894ddb63 100644 (file)
@@ -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"))
index b36e0dff29901872fd1502bb208ff4f353cfd558..136c5c4fa752c39ac278d6f1e3f9827bf004650b 100644 (file)
@@ -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 (file)
index 0000000..dd538f1
--- /dev/null
@@ -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;
+}
index 3a19e129a9d588d29d77b27744a01e5643a5ab33..b5ea28ae4f6f66bf1a81965f4c43c69d563ccd72 100644 (file)
@@ -3,6 +3,7 @@
 <head>
     <meta charset="UTF-8">
     <title>Network Manager</title>
+    <link rel="stylesheet" href="css/variables.css">
     <link rel="stylesheet" href="css/hosts.css">
 </head>
 <body>
index 9e725e3ca6ecedc0f7384d9664614dd8cfe511ae..9caaa785759bdc05d2dbac3eee7bb8d09f98bc94 100644 (file)
@@ -3,6 +3,7 @@
 <head>
     <meta charset="UTF-8">
     <title>Network Manager - Login</title>
+    <link rel="stylesheet" href="css/variables.css">
     <link rel="stylesheet" href="css/login.css">
 </head>
 <body>