Umbau auf Alpine.js
This commit is contained in:
@@ -0,0 +1,621 @@
|
||||
[x-cloak] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg: #f6f3ec;
|
||||
--surface: #ffffff;
|
||||
--surface-alt: #efeae0;
|
||||
--ink: #20281f;
|
||||
--ink-soft: #5b6355;
|
||||
--line: #dad3c4;
|
||||
--accent: #2f6f4f;
|
||||
--accent-soft: #dce9de;
|
||||
--warn: #c4622d;
|
||||
--warn-soft: #f4e3d4;
|
||||
--danger: #a63b2a;
|
||||
--danger-soft: #f3dcd4;
|
||||
--radius: 3px;
|
||||
--font-display: "Fraunces", "Iowan Old Style", serif;
|
||||
--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: var(--font-body);
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ---------- Layout ---------- */
|
||||
|
||||
.app-shell {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 232px;
|
||||
flex-shrink: 0;
|
||||
background: var(--surface);
|
||||
border-right: 1px solid var(--line);
|
||||
padding: 28px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
font-family: var(--font-display);
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.brand-sub {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.nav-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 9px 10px;
|
||||
border-radius: var(--radius);
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
color: var(--ink-soft);
|
||||
font-size: 14px;
|
||||
transition: background 0.12s ease, color 0.12s ease;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
background: var(--surface-alt);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-index {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
color: var(--ink-soft);
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
.nav-item.active .nav-index {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.sidebar-foot {
|
||||
margin-top: auto;
|
||||
font-size: 11px;
|
||||
color: var(--ink-soft);
|
||||
border-top: 1px solid var(--line);
|
||||
padding-top: 14px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
padding: 36px 44px 60px;
|
||||
max-width: 1180px;
|
||||
}
|
||||
|
||||
.view-header {
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.view-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 6px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.view-desc {
|
||||
color: var(--ink-soft);
|
||||
margin: 0;
|
||||
max-width: 640px;
|
||||
}
|
||||
|
||||
/* ---------- Cards / panels ---------- */
|
||||
|
||||
.panel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px 22px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 14px;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* ---------- Buttons ---------- */
|
||||
|
||||
.btn {
|
||||
border: 1px solid var(--line);
|
||||
background: var(--surface);
|
||||
color: var(--ink);
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: border-color 0.12s ease, background 0.12s ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--ink);
|
||||
border-color: var(--ink);
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
|
||||
.btn-ghost:hover {
|
||||
background: var(--surface-alt);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.btn-danger-ghost {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--danger);
|
||||
padding: 6px 8px;
|
||||
}
|
||||
|
||||
.btn-danger-ghost:hover {
|
||||
background: var(--danger-soft);
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* ---------- Forms ---------- */
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.field label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--ink-soft);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.field input,
|
||||
.field select,
|
||||
.field textarea {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 8px 10px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.field-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.form-modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(32, 40, 31, 0.35);
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: 8vh;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
.form-modal {
|
||||
background: var(--surface);
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--line);
|
||||
padding: 26px 28px 22px;
|
||||
width: 460px;
|
||||
max-width: calc(100vw - 40px);
|
||||
box-shadow: 0 18px 40px rgba(32, 40, 31, 0.18);
|
||||
}
|
||||
|
||||
.form-modal h3 {
|
||||
font-family: var(--font-display);
|
||||
margin: 0 0 18px;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
color: var(--danger);
|
||||
font-size: 12px;
|
||||
margin: -6px 0 12px;
|
||||
}
|
||||
|
||||
/* ---------- Tables ---------- */
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--ink-soft);
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.num {
|
||||
font-family: var(--font-mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.empty-row {
|
||||
color: var(--ink-soft);
|
||||
text-align: center;
|
||||
padding: 28px 10px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 3px 9px;
|
||||
border-radius: 20px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
background: var(--surface-alt);
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ---------- Timeline ---------- */
|
||||
|
||||
.timeline-scale {
|
||||
display: grid;
|
||||
grid-template-columns: 220px repeat(12, 1fr);
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding-bottom: 8px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.timeline-scale .month-label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-soft);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.timeline-row {
|
||||
display: grid;
|
||||
grid-template-columns: 220px 1fr;
|
||||
align-items: center;
|
||||
min-height: 40px;
|
||||
border-bottom: 1px solid var(--surface-alt);
|
||||
}
|
||||
|
||||
.timeline-row-label {
|
||||
padding-right: 14px;
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
.timeline-row-label .proj-name {
|
||||
color: var(--ink-soft);
|
||||
font-size: 11px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.timeline-track {
|
||||
position: relative;
|
||||
height: 24px;
|
||||
background: repeating-linear-gradient(
|
||||
to right,
|
||||
transparent,
|
||||
transparent calc(100% / 12 - 1px),
|
||||
var(--line) calc(100% / 12 - 1px),
|
||||
var(--line) calc(100% / 12)
|
||||
);
|
||||
}
|
||||
|
||||
.timeline-bar {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
height: 18px;
|
||||
border-radius: 3px;
|
||||
min-width: 6px;
|
||||
}
|
||||
|
||||
.timeline-group-title {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--accent);
|
||||
margin: 22px 0 4px;
|
||||
}
|
||||
|
||||
/* ---------- Capacity ledger (signature element) ---------- */
|
||||
|
||||
.ledger {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
.ledger-person {
|
||||
border-bottom: 1px solid var(--surface-alt);
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.ledger-person:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.ledger-person-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.ledger-person-head .name {
|
||||
font-family: var(--font-display);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ledger-person-head .capacity-note {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.ledger-months {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.ledger-month {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.ledger-month-label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 9.5px;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-soft);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ledger-bar-well {
|
||||
position: relative;
|
||||
height: 74px;
|
||||
background: var(--surface-alt);
|
||||
border-radius: 2px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.ledger-baseline {
|
||||
position: absolute;
|
||||
left: -3px;
|
||||
right: -3px;
|
||||
border-top: 1.5px dashed var(--ink-soft);
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.ledger-bar-fill {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border-radius: 2px 2px 0 0;
|
||||
transition: height 0.15s ease;
|
||||
}
|
||||
|
||||
.ledger-bar-fill.ok {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.ledger-bar-fill.warn {
|
||||
background: var(--warn);
|
||||
}
|
||||
|
||||
.ledger-bar-fill.danger {
|
||||
background: var(--danger);
|
||||
}
|
||||
|
||||
.ledger-pct {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.ledger-pct.danger {
|
||||
color: var(--danger);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.legend {
|
||||
display: flex;
|
||||
gap: 18px;
|
||||
margin-top: 18px;
|
||||
font-size: 11.5px;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.legend-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.legend-swatch {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* ---------- Range picker ---------- */
|
||||
|
||||
.range-picker {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.range-picker input {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 6px 8px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.app-shell {
|
||||
flex-direction: column;
|
||||
}
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 14px 18px;
|
||||
gap: 18px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.sidebar-foot {
|
||||
display: none;
|
||||
}
|
||||
.main {
|
||||
padding: 24px 18px 60px;
|
||||
}
|
||||
.field-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.ledger-months {
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
row-gap: 14px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user