浏览代码

编辑修改代码

niujiuru 1 月之前
父节点
当前提交
9ef9dc7e5e

+ 2 - 1
web-ui.service/web/login.html

@@ -6,6 +6,7 @@
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <title>河南云飞科技RTU设备管理</title>
 <link rel="stylesheet" href="static/css/login.css">
+<link rel="stylesheet" href="static/css/button.css">
 </head>
 
 <body>
@@ -26,7 +27,7 @@
             type="password"
             placeholder="密码"
             required>
-        <button type="submit">
+        <button type="submit" class="btn btn-blue">
             登录
         </button>
     </form>

+ 2 - 2
web-ui.service/web/static/css/app.css

@@ -101,7 +101,7 @@ body{
     align-items:center;
     gap:10px;
     padding:14px 16px;
-    border-radius:10px;
+    border-radius:4px;
     cursor:pointer;
     color:#94a3b8;
     font-size:15px;
@@ -131,7 +131,7 @@ body{
 .card{
     background:#0f172a;
     border:1px solid #1f2937;
-    border-radius:10px;
+    border-radius:4px;
     padding:20px;
     margin-bottom:15px;
     box-shadow:0 0 20px rgba(0,0,0,0.25);

+ 10 - 4
web-ui.service/web/static/css/button.css

@@ -4,13 +4,13 @@
     color: #e5e7eb;
     font-size: 14px;
     padding: 6px 12px;
-    border-radius: 6px;
+    border-radius: 4px;
     cursor: pointer;
     user-select: none;
     display: inline-flex;
     align-items: center;
     gap: 6px;
-    transition: all 0.18s ease;
+    transition: background 0.15s ease, border-color 0.15s ease;
 }
 
 .btn:hover {
@@ -19,14 +19,13 @@
 }
 
 .btn:active {
-    transform: translateY(1px);
     background: #1f2937;
     border-color: #1f2937;
 }
 
 .btn:focus {
     outline: none;
-    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
+    border-color: #3b82f6;
 }
 
 .btn:disabled {
@@ -65,3 +64,10 @@
     background: #b91c1c;
     border-color: #b91c1c;
 }
+
+.login-box .btn {
+    width: 100%;
+    height: 45px;
+    margin-top: 10px;
+    justify-content: center;
+}

+ 10 - 36
web-ui.service/web/static/css/login.css

@@ -9,16 +9,17 @@ body {
     display: flex;
     justify-content: center;
     align-items: center;
-    background: #0f172a;
+    background: #0b1220;
     font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
+    color: #e2e8f0;
 }
 
 .login-box {
     width: 420px;
-    background: #1e293b;
-    border-radius: 12px;
+    background: #0f172a;
+    border: 1px solid #1f2937;
+    border-radius: 4px;
     padding: 40px;
-    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
 }
 
 .logo {
@@ -28,7 +29,7 @@ body {
 }
 
 h1 {
-    color: white;
+    color: #e2e8f0;
     text-align: center;
     font-size: 26px;
     margin-bottom: 10px;
@@ -45,13 +46,13 @@ input {
     height: 45px;
     margin-bottom: 15px;
     border: 1px solid #475569;
-    border-radius: 8px;
+    border-radius: 4px;
     padding-left: 15px;
-    background: #334155;
-    color: white;
+    background: #1e293b;
+    color: #e2e8f0;
     font-size: 15px;
     outline: none;
-    transition: border-color 0.18s, box-shadow 0.18s;
+    transition: border-color 0.18s;
 }
 
 input::placeholder {
@@ -60,33 +61,6 @@ input::placeholder {
 
 input:focus {
     border-color: #3b82f6;
-    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
-}
-
-button {
-    width: 100%;
-    height: 45px;
-    border: none;
-    border-radius: 8px;
-    cursor: pointer;
-    font-size: 16px;
-    background: #2563eb;
-    color: white;
-    transition: background 0.18s, transform 0.1s;
-}
-
-button:hover {
-    background: #1d4ed8;
-}
-
-button:active {
-    transform: translateY(1px);
-    background: #1e40af;
-}
-
-button:focus {
-    outline: none;
-    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
 }
 
 #msg {

+ 4 - 4
web-ui.service/web/static/css/page2.css

@@ -13,7 +13,7 @@
     padding: 12px 16px;
     background: #0f172a;
     border: 1px solid #334155;
-    border-radius: 8px;
+    border-radius: 4px;
     flex-shrink: 0;
 }
 
@@ -104,7 +104,7 @@
 .log-level-select {
     background: #0f172a;
     border: 1px solid rgba(148, 163, 184, 0.25);
-    border-radius: 6px;
+    border-radius: 4px;
     color: #e5e7eb;
     font-size: 14px;
     padding: 6px 8px;
@@ -128,7 +128,7 @@
 .card {
     background: #0f172a;
     border: 1px solid #1f2937;
-    border-radius: 8px;
+    border-radius: 4px;
     padding: 15px;
 }
 
@@ -150,7 +150,7 @@
 .output {
     background: #020617;
     border: 1px solid #1f2937;
-    border-radius: 6px;
+    border-radius: 4px;
     padding: 10px;
     font-size: 12px;
     font-family: ui-monospace, monospace;