refactoring html and css

This commit is contained in:
bronkuu 2026-06-15 14:43:50 +02:00
parent 8194cea85e
commit a91b196e64
16 changed files with 1299 additions and 1383 deletions

73
server/static/base.css Normal file
View file

@ -0,0 +1,73 @@
:root {
--surface: #fff8f0;
--surface-container-low: #faf3e7;
--surface-container: #f5ede0;
--surface-container-high: #ede3d4;
--surface-container-highest: #e5d9c8;
--surface-container-lowest: #ffffff;
--surface-bright: #fff8f0;
--surface-dim: #e5d9c8;
--primary: #8c4d50;
--primary-hover: #7a3f42;
--primary-container: #fcacaf;
--on-primary: #ffffff;
--on-surface: #363227;
--on-surface-variant: #645f52;
--outline: #b9b1a3;
--outline-variant: #d4cdbe;
--secondary: #b45309;
--secondary-container: #fd8a42;
--on-secondary-container: #682c00;
--error: #ba1a1a;
--error-container: #ffdad6;
--on-error-container: #93000a;
--success-bg: #dcfce7;
--success-text: #166534;
--warning-bg: #fef08a;
--warning-text: #854d0e;
--danger-bg: #fee2e2;
--danger-text: #991b1b;
--info-bg: #f1f5f9;
--info-text: #475569;
--sidebar-width: 17.5rem;
--topnav-height: 3.5rem;
--border-radius-sm: 0.25rem;
--border-radius-md: 0.5rem;
--border-radius-lg: 0.75rem;
--border-radius-full: 9999px;
--font-family: "Inter", system-ui, -apple-system, sans-serif;
--transition: 0.15s ease;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
font-family: var(--font-family);
font-size: 1rem;
line-height: 1.5;
color: var(--on-surface);
background: var(--surface);
display: flex;
}
input, select, textarea, button {
font-family: inherit;
}
.htmx-request {
opacity: 0.6;
pointer-events: none;
}
.hidden {
display: none !important;
}