586 lines
9.6 KiB
CSS
586 lines
9.6 KiB
CSS
/* D&D 5e Standard Character Sheet Styles */
|
|
:root {
|
|
--border-color: #2b2b2b;
|
|
--accent-red: #922610;
|
|
--bg-page: #eaedf0;
|
|
--bg-sheet: #ffffff;
|
|
--bg-box: #f9fbfd;
|
|
--text-main: #1e1e1e;
|
|
--text-muted: #666666;
|
|
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
--font-serif: "Libre Baskerville", "Georgia", serif;
|
|
}
|
|
|
|
body.sheet-page-wrapper {
|
|
margin: 0;
|
|
padding: 24px;
|
|
background-color: var(--bg-page);
|
|
font-family: var(--font-sans);
|
|
color: var(--text-main);
|
|
display: flex;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.character-sheet-container {
|
|
width: 100%;
|
|
max-width: 1050px;
|
|
background: var(--bg-sheet);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 20px 24px 24px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* ================= HEADER ================= */
|
|
.sheet-header {
|
|
display: grid;
|
|
grid-template-columns: 320px 1fr;
|
|
gap: 16px;
|
|
align-items: stretch;
|
|
border-bottom: 2px solid var(--border-color);
|
|
padding-bottom: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.header-name-box {
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
background: var(--bg-box);
|
|
}
|
|
|
|
.character-name {
|
|
font-family: var(--font-serif);
|
|
font-size: 26px;
|
|
color: var(--accent-red);
|
|
margin: 0 0 6px 0;
|
|
line-height: 1.1;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.header-label {
|
|
font-size: 9.5px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.header-details-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px 12px;
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 10px 14px;
|
|
background: var(--bg-box);
|
|
}
|
|
|
|
.detail-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
border-bottom: 1px solid #ccc;
|
|
padding-bottom: 3px;
|
|
}
|
|
|
|
.detail-val {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
/* ================= 3-COLUMN MAIN GRID ================= */
|
|
.sheet-main-grid {
|
|
display: grid;
|
|
grid-template-columns: 320px 340px 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.sheet-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Generic Section Box */
|
|
.section-box {
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 10px 12px;
|
|
background: #ffffff;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.box-bottom-label {
|
|
text-align: center;
|
|
font-size: 9.5px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
letter-spacing: 0.5px;
|
|
margin-top: 6px;
|
|
padding-top: 4px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
/* ================= LEFT COLUMN ================= */
|
|
.abilities-and-skills-row {
|
|
display: grid;
|
|
grid-template-columns: 88px 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* 6 Abilities */
|
|
.abilities-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.ability-box {
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 6px 4px 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: var(--bg-box);
|
|
text-align: center;
|
|
}
|
|
|
|
.ab-title {
|
|
font-size: 8.5px;
|
|
font-weight: bold;
|
|
color: var(--accent-red);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.ab-modifier {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: var(--text-main);
|
|
margin: 2px 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.ab-score-pill {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
border: 1px solid #999;
|
|
border-radius: 10px;
|
|
padding: 1px 8px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
/* Skills & Saves Stack */
|
|
.skills-and-saves-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.top-stat-pill {
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 16px;
|
|
padding: 4px 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--bg-box);
|
|
}
|
|
|
|
.pill-checkbox {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.pill-checkbox.checked {
|
|
background-color: var(--accent-red);
|
|
}
|
|
|
|
.pill-value {
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
color: var(--text-main);
|
|
border-right: 1px solid #ccc;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.pill-label {
|
|
font-size: 9px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Proficiency Lists (Saves & Skills) */
|
|
.prof-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.prof-item {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 11.5px;
|
|
margin-bottom: 3.5px;
|
|
gap: 6px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.prof-item .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border: 1.2px solid var(--border-color);
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.prof-item .dot.filled {
|
|
background-color: var(--accent-red);
|
|
border-color: var(--accent-red);
|
|
}
|
|
|
|
.prof-bonus {
|
|
font-weight: 700;
|
|
width: 22px;
|
|
text-align: right;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.prof-name {
|
|
color: #333;
|
|
}
|
|
|
|
.skill-attr {
|
|
color: #888;
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* Passive Perception */
|
|
.passive-perception-box {
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 18px;
|
|
padding: 6px 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: var(--bg-box);
|
|
}
|
|
|
|
.passive-score {
|
|
font-size: 15px;
|
|
font-weight: bold;
|
|
color: var(--text-main);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 50%;
|
|
width: 26px;
|
|
height: 26px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #ffffff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.passive-label {
|
|
font-size: 9.5px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.prof-block-content {
|
|
font-size: 11.5px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.prof-line {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* ================= MIDDLE COLUMN ================= */
|
|
.combat-top-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.combat-badge {
|
|
border: 1.5px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 8px 4px;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-box);
|
|
}
|
|
|
|
.badge-ac {
|
|
border-color: var(--accent-red);
|
|
}
|
|
|
|
.badge-value {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: var(--text-main);
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.badge-label {
|
|
font-size: 8.5px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
margin-top: 3px;
|
|
}
|
|
|
|
/* HP Boxes */
|
|
.hp-max-line {
|
|
font-size: 10.5px;
|
|
color: #666;
|
|
border-bottom: 1px solid #eee;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.hp-current-val, .temp-hp-val {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
padding: 8px 0;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.hd-and-death-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.half-box {
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.hd-total-line {
|
|
font-size: 9.5px;
|
|
color: #666;
|
|
}
|
|
|
|
.hd-current-val {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.death-save-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 9px;
|
|
font-weight: bold;
|
|
margin: 3px 0;
|
|
}
|
|
|
|
.ds-bubbles {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.ds-bubbles .bubble {
|
|
width: 9px;
|
|
height: 9px;
|
|
border: 1.2px solid var(--border-color);
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.ds-bubbles .bubble.filled {
|
|
background-color: var(--accent-red);
|
|
}
|
|
|
|
/* Attacks Table */
|
|
.attacks-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 11px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.attacks-table th {
|
|
font-size: 8.5px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid #ccc;
|
|
padding: 2px 4px;
|
|
text-align: left;
|
|
}
|
|
|
|
.attacks-table td {
|
|
padding: 5px 4px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.atk-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.atk-bonus {
|
|
font-weight: 700;
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
.attack-notes {
|
|
font-size: 10.5px;
|
|
line-height: 1.35;
|
|
color: #444;
|
|
margin-top: 6px;
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.attack-note-item {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* Equipment */
|
|
.equipment-layout {
|
|
display: grid;
|
|
grid-template-columns: 56px 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.coins-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.coin-row {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 3px;
|
|
padding: 2px 4px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
background: var(--bg-box);
|
|
}
|
|
|
|
.coin-tag {
|
|
font-weight: bold;
|
|
font-size: 8.5px;
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
.coin-val {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.items-list-container {
|
|
max-height: 180px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.items-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.item-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 3px 0;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.equipped-tag {
|
|
color: var(--accent-red);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.item-meta {
|
|
color: #777;
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* ================= RIGHT COLUMN ================= */
|
|
.roleplay-box {
|
|
min-height: 64px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.box-content {
|
|
font-size: 11.5px;
|
|
line-height: 1.4;
|
|
color: #333;
|
|
}
|
|
|
|
.box-content p {
|
|
margin: 0;
|
|
}
|
|
|
|
.empty-hint {
|
|
color: #999;
|
|
font-style: italic;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.features-box {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
min-height: 250px;
|
|
}
|
|
|
|
.features-content {
|
|
font-size: 11.5px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.feature-item {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.feature-name {
|
|
color: var(--accent-red);
|
|
display: block;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.feature-desc {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Responsive Styles */
|
|
@media (max-width: 900px) {
|
|
.sheet-header {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.sheet-main-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.abilities-and-skills-row {
|
|
grid-template-columns: 90px 1fr;
|
|
}
|
|
}
|