Files
FilaMan-System-ESP32/data/style.css
T
Manuel Weiser 526b25ba1e Refactor upgrade, scale, and WiFi pages for improved UI and functionality
- Updated page titles and structure for clarity.
- Enhanced sidebar navigation and status indicators.
- Improved form styling and user feedback during updates.
- Added WebSocket handling for real-time status updates.
- Streamlined version fetching logic across pages.
2026-02-21 10:49:59 +01:00

296 lines
5.7 KiB
CSS

:root {
--bg: #0c1612;
--bg-elevated: #13261d;
--bg-soft: #183225;
--text: #e9f3ec;
--text-muted: #b5c7bd;
--accent: #4ee3a2;
--accent-2: #6cc6ff;
--accent-3: #f7c86a;
--border: rgba(255, 255, 255, 0.08);
--error-text: #fca5a5;
--success-text: #86efac;
--radius-md: 14px;
--radius-sm: 8px;
--radius-pill: 999px;
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: "Georgia", serif;
--sidebar-width: 260px;
--sidebar-collapsed: 82px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-sans);
background-color: var(--bg);
background-image:
radial-gradient(circle at 0% 0%, rgba(78, 227, 162, 0.05) 0%, transparent 50%),
radial-gradient(circle at 100% 100%, rgba(108, 198, 255, 0.05) 0%, transparent 50%),
linear-gradient(140deg, #0c1612 0%, #12251b 45%, #0b1410 100%);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
/* Layout Structure */
.fm-page {
display: grid;
grid-template-columns: var(--sidebar-width) 1fr;
min-height: 100vh;
}
.fm-sidebar {
background: var(--bg-elevated);
border-right: 1px solid var(--border);
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 2rem;
position: sticky;
top: 0;
height: 100vh;
z-index: 100;
}
.fm-main {
padding: 2.5rem;
max-width: 1200px;
width: 100%;
margin: 0 auto;
}
/* Sidebar Components */
.sidebar-brand {
display: flex;
align-items: center;
gap: 1rem;
}
.sidebar-logo {
width: 40px;
height: auto;
}
.brand-text h1 {
font-family: var(--font-serif);
font-size: 1.5rem;
color: var(--accent);
margin: 0;
}
.brand-text .version {
font-size: 0.7rem;
color: var(--text-muted);
font-family: var(--font-sans);
font-weight: normal;
}
.fm-nav {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.fm-nav a {
color: var(--text-muted);
text-decoration: none;
padding: 0.75rem 1rem;
border-radius: var(--radius-sm);
transition: all 0.2s;
font-weight: 500;
}
.fm-nav a:hover, .fm-nav a.active {
background: var(--bg-soft);
color: var(--accent);
}
.sidebar-status {
margin-top: auto;
display: flex;
flex-direction: column;
gap: 0.75rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.status-item {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.85rem;
color: var(--text-muted);
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #444;
}
.status-dot.online { background: var(--success-text); box-shadow: 0 0 10px var(--success-text); }
.status-dot.offline { background: var(--error-text); }
/* UI Components */
h1, h2, h3 {
font-family: var(--font-serif);
margin-bottom: 1.5rem;
}
h1 { font-size: 2.5rem; color: var(--accent); }
h2 { font-size: 1.75rem; }
p {
margin-bottom: 1rem;
color: var(--text-muted);
}
.fm-card {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.fm-card-hover:hover {
border-color: var(--accent);
transform: translateY(-2px);
transition: all 0.3s ease;
}
.fm-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-pill);
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
border: none;
font-family: var(--font-sans);
text-decoration: none;
gap: 0.5rem;
}
.fm-btn-primary {
background: var(--accent);
color: #0c1612;
box-shadow: 0 0 20px rgba(78, 227, 162, 0.2);
}
.fm-btn-primary:hover {
transform: scale(1.02);
box-shadow: 0 0 30px rgba(78, 227, 162, 0.4);
}
.fm-btn-outline {
background: transparent;
border: 1px solid var(--border);
color: var(--text);
}
.fm-btn-outline:hover {
background: var(--bg-soft);
border-color: var(--accent);
}
.fm-btn-danger {
background: rgba(252, 165, 165, 0.1);
border: 1px solid var(--error-text);
color: var(--error-text);
}
.fm-btn-danger:hover {
background: var(--error-text);
color: #0c1612;
}
/* Forms */
.fm-form-group {
margin-bottom: 1.25rem;
}
.fm-label {
display: block;
font-size: 0.8rem;
color: var(--text-muted);
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.fm-input, .fm-select {
width: 100%;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 0.75rem 1rem;
color: var(--text);
font-family: inherit;
transition: border-color 0.2s;
}
.fm-input:focus, .fm-select:focus {
outline: none;
border-color: var(--accent);
}
/* Features Grid */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
/* Animations */
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.6; }
100% { opacity: 1; }
}
.writing {
animation: pulse 1s infinite;
}
/* Specific component adaptations */
.tray {
background: var(--bg-soft);
border-radius: var(--radius-sm);
padding: 1rem;
margin-top: 1rem;
}
.status-pill {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: var(--radius-pill);
font-size: 0.75rem;
background: var(--bg-soft);
border: 1px solid var(--border);
}
/* Responsive */
@media (max-width: 900px) {
.fm-page {
grid-template-columns: 1fr;
}
.fm-sidebar {
height: auto;
position: relative;
padding: 1rem;
}
.fm-main {
padding: 1.5rem;
}
}