css reducion
This commit is contained in:
parent
5f156ab6a0
commit
b8cf13b7d5
20 changed files with 1603 additions and 1677 deletions
|
|
@ -1,73 +1,162 @@
|
|||
: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;
|
||||
--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;
|
||||
|
||||
--sidebar-w: 17.5rem;
|
||||
--sidebar-w-collapsed: 3.5rem;
|
||||
--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;
|
||||
--transition: 0.15s ease;
|
||||
}
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
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;
|
||||
font-family: var(--font);
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
color: var(--on-surface);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
input, select, textarea, button {
|
||||
font-family: inherit;
|
||||
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) 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);
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
transition: background var(--transition);
|
||||
height: 2.5rem;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: var(--surface-low);
|
||||
}
|
||||
|
||||
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%;
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
|
||||
input:focus, select:focus, textarea:focus {
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
input::placeholder, select::placeholder, textarea::placeholder {
|
||||
color: var(--on-surface-dim);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
.htmx-request {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
display: none !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue