cake-order-tracker/server/static/base.css
2026-06-15 20:30:15 +02:00

148 lines
2.4 KiB
CSS

:root {
--surface: #fff8f0;
--surface-low: #faf3e7;
--surface-highest: #ede3d4;
--surface-white: #ffffff;
--primary: #8c4d50;
--primary-container: #fcacaf;
--on-primary: #ffffff;
--on-surface: #363227;
--on-surface-dim: #645f52;
--outline: #b9b1a3;
--outline-dim: #d4cdbe;
--error: #ba1a1a;
--error-container: #ffdad6;
--success-bg: #dcfce7;
--success-text: #166534;
--warning-bg: #fef08a;
--warning-text: #854d0e;
--danger-bg: #fee2e2;
--danger-text: #991b1b;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
--topnav-h: 3.5rem;
--radius-sm: 0.25rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-full: 9999px;
--font: "Inter", system-ui, -apple-system, sans-serif;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
overflow: hidden;
}
body {
font-family: var(--font);
font-size: 1rem;
line-height: 1.5;
color: var(--on-surface);
background: var(--surface);
}
h1 {
font-size: 1.25rem;
font-weight: 700;
letter-spacing: -0.01em;
}
h2 {
font-size: 1rem;
font-weight: 600;
display: flex;
align-items: center;
gap: var(--space-sm);
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
text-align: left;
padding: var(--space-sm);
font-size: 0.875rem;
white-space: nowrap;
}
th {
text-transform: uppercase;
letter-spacing: 0.04em;
font-weight: 600;
color: var(--on-surface-dim);
font-size: 0.75rem;
}
td {
color: var(--on-surface);
border-bottom: 1px solid var(--outline-dim);
}
input,
select,
textarea {
font: inherit;
font-size: 0.875rem;
height: 2rem;
padding: 0 var(--space-sm);
border: 1px solid var(--outline-dim);
border-radius: var(--radius-sm);
background: var(--surface-white);
color: var(--on-surface);
outline: none;
width: 100%;
}
input:focus,
select:focus,
textarea:focus {
border-color: var(--primary);
}
textarea {
height: auto;
padding: var(--space-sm);
resize: vertical;
}
select {
appearance: auto;
}
button {
font: inherit;
cursor: pointer;
}
a {
color: inherit;
text-decoration: none;
}
ul,
ol {
list-style: none;
}
.hidden {
display: none !important;
}