V1.0.1: Aldenfell campaign seed, content library, party overview

- Seed now resets the database and seeds the Aldenfell campaign from the
  campaign book: admin DM user, default weapons, locations, bestiary,
  pre-built encounters, and DM/shared notes
- Default weapon/spell/monster library, character profile fields,
  locations and dice mode (new migration)
- Party overview page, pagination, info tips, build preview calc
- Remove stale demo-login hint; notes preserve line breaks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 10:24:48 +02:00
co-authored by Claude Opus 5.5
parent 9b29dc8253
commit 94067f1268
34 changed files with 3158 additions and 391 deletions
+152 -2
View File
@@ -367,6 +367,29 @@ textarea:focus {
box-shadow: 0 0 0 3px var(--accent-soft);
}
select {
background: var(--bg-inset);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.6rem 0.75rem;
color: var(--text);
}
select option {
background: var(--bg-inset);
color: var(--text);
}
/* Native checkboxes/radios otherwise render as unstyled white boxes in most
browsers, breaking the dark theme — this keeps them small and on-brand
without a full custom-control rebuild. */
input[type='checkbox'],
input[type='radio'] {
accent-color: var(--accent);
width: 16px;
height: 16px;
cursor: pointer;
}
.checkbox-row {
display: flex;
align-items: center;
@@ -436,8 +459,16 @@ textarea:focus {
}
.hp-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--danger) 0%, var(--success) 100%);
transition: width 0.3s ease;
background: var(--success-strong);
transition: width 0.3s ease, background-color 0.3s ease;
}
/* Color reflects the actual HP percentage instead of a fixed gradient, so a
combat tracker reads "healthy / bloodied / critical" at a glance. */
.hp-bar-fill.hp-bloodied {
background: var(--accent-strong);
}
.hp-bar-fill.hp-critical {
background: var(--danger-strong);
}
.divider {
@@ -572,6 +603,125 @@ textarea:focus {
margin-top: 2rem;
}
/* ---------------------------------------------------------------------- */
/* Info tooltips */
/* ---------------------------------------------------------------------- */
.info-tip {
position: relative;
display: inline-flex;
margin-left: 0.3rem;
}
.info-tip-trigger {
background: transparent;
border: none;
color: var(--text-dim);
cursor: help;
font-size: 0.85em;
padding: 0;
line-height: 1;
}
.info-tip-trigger:hover,
.info-tip-trigger:focus {
color: var(--accent-strong);
outline: none;
}
.info-tip-bubble {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
width: max-content;
max-width: 260px;
background: var(--bg-inset);
border: 1px solid var(--accent);
border-radius: 6px;
padding: 0.6rem 0.75rem;
font-size: 0.8rem;
font-family: var(--font-body);
text-transform: none;
letter-spacing: normal;
color: var(--text);
box-shadow: var(--shadow-deep);
z-index: 100;
pointer-events: none;
}
/* ---------------------------------------------------------------------- */
/* Tables + pagination */
/* ---------------------------------------------------------------------- */
.table-wrap {
overflow-x: auto;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
}
table.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
table.data-table th,
table.data-table td {
padding: 0.55rem 0.75rem;
text-align: left;
white-space: nowrap;
}
table.data-table thead th {
background: var(--bg-inset);
color: var(--text-muted);
font-family: var(--font-display);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.06em;
border-bottom: 1px solid var(--border);
}
table.data-table tbody tr {
border-bottom: 1px solid var(--border-soft);
}
table.data-table tbody tr:last-child {
border-bottom: none;
}
table.data-table tbody tr:hover {
background: var(--bg-card-hover);
}
.pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 0.75rem 0;
}
.pagination-status {
color: var(--text-muted);
font-size: 0.85rem;
}
/* ---------------------------------------------------------------------- */
/* Character builder live stats preview */
/* ---------------------------------------------------------------------- */
.build-layout {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (min-width: 900px) {
.build-layout {
grid-template-columns: 1fr 320px;
align-items: start;
}
.build-preview {
position: sticky;
top: 80px;
}
}
.preview-highlight {
color: var(--accent-strong);
font-weight: 700;
}
@media (max-width: 640px) {
.page {
padding: 1rem 0.85rem 5rem;