darkwatch/client/src/pages/CampaignList.module.css
Aaron Wood ff9203f754 Medieval visual theme with 4 switchable color schemes
- Cinzel + Alegreya fonts for old-tome D&D book feel
- Dark parchment (default), light parchment, white, and abyss themes
- CSS custom properties system for all colors, borders, shadows
- Generated PNG textures for parchment grain, speckle, and wood grain
- Ornamental gold gradient separators and decorative header lines
- Deep dramatic shadows and gold-tinted borders on all panels
- ThemeToggle component with localStorage persistence
- Embossed gold buttons with gradient and inner shadow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 17:06:50 -04:00

122 lines
2.4 KiB
CSS

.container {
max-width: 600px;
margin: 0 auto;
}
.campaignGrid {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.campaignCard {
display: flex;
align-items: center;
justify-content: space-between;
background-color: var(--bg-surface);
background-image: var(--texture-surface), var(--texture-speckle);
background-size:
256px 256px,
128px 128px;
background-repeat: repeat, repeat;
border: 1px solid rgba(var(--gold-rgb), 0.2);
border-radius: 4px;
padding: 1rem 1.25rem;
cursor: pointer;
transition:
border-color 0.15s,
box-shadow 0.15s;
box-shadow:
0 4px 12px rgba(var(--shadow-rgb), 0.5),
0 1px 4px rgba(var(--shadow-rgb), 0.3),
inset 0 1px 0 rgba(var(--gold-rgb), 0.06);
}
.campaignCard:hover {
border-color: rgba(var(--gold-rgb), 0.5);
box-shadow:
0 6px 16px rgba(var(--shadow-rgb), 0.6),
0 2px 6px rgba(var(--shadow-rgb), 0.4),
inset 0 1px 0 rgba(var(--gold-rgb), 0.1);
}
.campaignName {
font-family: "Cinzel", Georgia, serif;
font-size: 1.1rem;
font-weight: 600;
color: var(--text-primary);
}
.campaignDate {
font-size: 0.8rem;
color: var(--text-secondary);
}
.deleteBtn {
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
font-size: 1.2rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
}
.deleteBtn:hover {
color: var(--danger);
background: rgba(var(--danger-rgb), 0.1);
}
.createForm {
display: flex;
gap: 0.5rem;
}
.createInput {
flex: 1;
padding: 0.6rem 1rem;
background: var(--bg-inset);
border: 1px solid rgba(var(--gold-rgb), 0.2);
border-radius: 4px;
color: var(--text-primary);
font-size: 1rem;
font-family: "Alegreya", Georgia, serif;
}
.createInput:focus {
outline: none;
border-color: var(--gold);
}
.createBtn {
padding: 0.6rem 1.25rem;
background: var(--btn-gold-bg);
color: var(--btn-active-text);
border: none;
border-radius: 4px;
font-family: "Cinzel", Georgia, serif;
font-weight: 600;
cursor: pointer;
font-size: 1rem;
box-shadow:
0 2px 4px rgba(var(--shadow-rgb), 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
text-shadow: 0 1px 1px rgba(var(--shadow-rgb), 0.2);
}
.createBtn:hover {
background: linear-gradient(
180deg,
var(--gold-bright),
var(--gold-hover) 40%,
var(--gold)
);
}
.empty {
text-align: center;
color: var(--text-tertiary);
padding: 3rem 0;
font-style: italic;
}