Adding the new rewrite
This commit is contained in:
1 parent
4aca9f08d1
commit
9b48b01d1d
62 files changed
+4510
-1406
No files matched your search
@@ -0,0 +1,57 @@
|
||||
/* Base layout, header/nav */
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; font-family: -apple-system, Segoe UI, Arial, sans-serif; background: #f5f7fa; color: #222; }
|
||||
.site-header {
|
||||
display: flex; align-items: center; gap: 24px;
|
||||
padding: 10px 20px; background: #2c3e50; color: #ecf0f1;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,.1);
|
||||
}
|
||||
.site-header .brand a { color: #ecf0f1; text-decoration: none; font-weight: 600; font-size: 18px; }
|
||||
.main-nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
|
||||
.main-nav a { color: #bdc3c7; text-decoration: none; padding: 6px 10px; border-radius: 4px; }
|
||||
.main-nav a:hover { background: #34495e; color: #fff; }
|
||||
.main-nav a.active { background: #3498db; color: #fff; }
|
||||
.user-menu { display: flex; align-items: center; gap: 10px; }
|
||||
.user-menu .username { font-size: 13px; opacity: 0.85; }
|
||||
.btn-logout { background: #e74c3c; color: #fff; border: 0; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
|
||||
.btn-logout:hover { background: #c0392b; }
|
||||
.site-main { padding: 20px; }
|
||||
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
|
||||
.page-header h1 { margin: 0; font-size: 22px; }
|
||||
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.filters select, .filters input { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; }
|
||||
|
||||
/* Tables */
|
||||
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
|
||||
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
|
||||
.data-table th { background: #f0f2f5; font-weight: 600; }
|
||||
.data-table tr:hover { background: #fafbfc; }
|
||||
.sev.CRITICAL { color: #fff; background: #c0392b; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
|
||||
.sev.WARNING { color: #fff; background: #e67e22; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
|
||||
.sev.INFO { color: #fff; background: #2980b9; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
|
||||
|
||||
/* Settings */
|
||||
.settings-section { background: #fff; border-radius: 6px; padding: 16px 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
|
||||
.settings-section h2 { margin-top: 0; font-size: 18px; }
|
||||
.settings-section form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
|
||||
.settings-section label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
|
||||
.settings-section label[type=checkbox] input, .settings-section input[type=checkbox] + * { display: inline; }
|
||||
.settings-section input, .settings-section select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; }
|
||||
.settings-section button { align-self: flex-start; }
|
||||
.muted { color: #777; font-size: 13px; }
|
||||
|
||||
/* Fleet overview */
|
||||
.fleet-overview { margin-bottom: 16px; }
|
||||
.fleet-card { background: #fff; border-radius: 6px; padding: 16px 20px; display: flex; gap: 24px; flex-wrap: wrap; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
|
||||
.fleet-stat { display: flex; flex-direction: column; gap: 4px; }
|
||||
.fleet-stat-label { color: #7f8c8d; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
|
||||
.fleet-stat-value { font-size: 22px; font-weight: 600; }
|
||||
.fleet-stat-value.online { color: #27ae60; }
|
||||
.fleet-stat-value.onbatt { color: #e67e22; }
|
||||
.fleet-stat-value.offline { color: #c0392b; }
|
||||
|
||||
/* Card state dot */
|
||||
.state-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #95a5a6; margin-right: 6px; vertical-align: middle; }
|
||||
.state-dot.online { background: #27ae60; }
|
||||
.state-dot.offline { background: #c0392b; }
|
||||
.state-dot.onbatt { background: #e67e22; }
|
||||
@@ -0,0 +1,11 @@
|
||||
.auth-body { background: #2c3e50; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
|
||||
.auth-card { background: #fff; border-radius: 8px; padding: 32px; width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
|
||||
.auth-card.wide { width: 440px; }
|
||||
.auth-card h1 { margin: 0 0 20px; text-align: center; font-size: 22px; }
|
||||
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
|
||||
.form-field label { font-size: 13px; color: #555; }
|
||||
.form-field input { padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
|
||||
.btn-primary { background: #3498db; color: #fff; border: 0; padding: 10px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; }
|
||||
.btn-primary:hover { background: #2980b9; }
|
||||
.btn-block { width: 100%; }
|
||||
.login-error { margin-top: 12px; padding: 8px 12px; background: #fee; color: #c0392b; border-radius: 4px; font-size: 13px; }
|
||||
Reference in new issue
Block a user