Refactor des fiches de creatures

This commit is contained in:
2026-03-30 09:27:11 +02:00
parent 1b5da3e144
commit 6fda4b9246
71 changed files with 547 additions and 231 deletions

View File

@@ -860,6 +860,72 @@ section.npc .cde-neon-tabs .item.active {
.cde-aptitudes-table .cde-spec-cell {
flex: 1 1 0;
}
.cde-aptitudes-table .cde-roll-cell {
width: 28px;
flex-shrink: 0;
text-align: center;
}
.cde-aptitudes-table .cde-roll-cell .cde-roll-trigger {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
color: #7d94b8;
border-radius: 4px;
transition: color 0.15s, background 0.15s;
}
.cde-aptitudes-table .cde-roll-cell .cde-roll-trigger:hover {
color: #cc44ff;
background: rgba(204, 68, 255, 0.12);
}
.cde-empty-list {
color: #7d94b8;
font-style: italic;
font-size: 11px;
text-align: center;
padding: 10px 0;
}
.cde-supernatural-list .cde-supernatural-item {
background: rgba(16, 22, 34, 0.6);
border: 1px solid #1a2436;
border-radius: 4px;
margin-bottom: 6px;
padding: 6px;
list-style: none;
}
.cde-supernatural-list .cde-supernatural-header {
align-items: center;
gap: 8px;
}
.cde-supernatural-list .cde-supernatural-header img {
border-radius: 4px;
flex-shrink: 0;
}
.cde-supernatural-list .cde-supernatural-info {
flex: 1 1 0;
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.cde-supernatural-list .cde-supernatural-info .cde-supernatural-name {
font-size: 12px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cde-supernatural-list .cde-supernatural-desc {
font-size: 10px;
color: #7d94b8;
margin-top: 4px;
padding-left: 36px;
line-height: 1.4;
}
.cde-supernatural-list .cde-supernatural-desc p {
margin: 0;
}
.cde-npc-tracks {
margin-top: 12px;
}

View File

@@ -891,6 +891,82 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
.cde-aptitudes-table {
// Inherits .cde-skills-table styles; just ensure consistent width
.cde-spec-cell { flex: 1 1 0; }
.cde-roll-cell {
width: 28px;
flex-shrink: 0;
text-align: center;
.cde-roll-trigger {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
color: @cde-muted;
border-radius: 4px;
transition: color 0.15s, background 0.15s;
&:hover {
color: @cde-supernatural;
background: fade(@cde-supernatural, 12%);
}
}
}
}
// Empty list placeholder
.cde-empty-list {
color: @cde-muted;
font-style: italic;
font-size: 11px;
text-align: center;
padding: 10px 0;
}
// NPC supernatural item cards
.cde-supernatural-list {
.cde-supernatural-item {
background: fade(@cde-surface, 60%);
border: 1px solid @cde-border;
border-radius: 4px;
margin-bottom: 6px;
padding: 6px;
list-style: none;
}
.cde-supernatural-header {
align-items: center;
gap: 8px;
img { border-radius: 4px; flex-shrink: 0; }
}
.cde-supernatural-info {
flex: 1 1 0;
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
.cde-supernatural-name {
font-size: 12px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.cde-supernatural-desc {
font-size: 10px;
color: @cde-muted;
margin-top: 4px;
padding-left: 36px;
line-height: 1.4;
p { margin: 0; }
}
}
// NPC vitality / hei tracker