Rework des fiches creature/PJ et Tinji/Loksyu
This commit is contained in:
@@ -925,50 +925,135 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
// 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;
|
||||
// ── Supernatural abilities card (NPC) ───────────────────────────────────────
|
||||
|
||||
.cde-super-add-row {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 4px 0 8px;
|
||||
}
|
||||
|
||||
.cde-super-add-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 11px;
|
||||
font-family: "Averia", sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: @cde-muted;
|
||||
cursor: pointer;
|
||||
padding: 4px 10px;
|
||||
border-radius: @cde-radius;
|
||||
border: 1px solid @cde-border;
|
||||
transition: color 0.12s, border-color 0.12s, background 0.12s;
|
||||
|
||||
i { font-size: 10px; }
|
||||
|
||||
&:hover { color: @cde-supernatural; border-color: @cde-supernatural; background: fade(@cde-supernatural, 8%); }
|
||||
}
|
||||
|
||||
.cde-super-card {
|
||||
border: 1px solid @cde-border;
|
||||
border-left: 3px solid @cde-supernatural;
|
||||
border-radius: @cde-radius;
|
||||
background: fade(@cde-surface, 70%);
|
||||
margin-bottom: 10px;
|
||||
overflow: hidden;
|
||||
transition: box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 0 8px fade(@cde-supernatural, 20%);
|
||||
|
||||
.cde-super-controls { opacity: 1; }
|
||||
}
|
||||
}
|
||||
|
||||
.cde-supernatural-header {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
.cde-super-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
img { border-radius: 4px; flex-shrink: 0; }
|
||||
}
|
||||
.cde-super-img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cde-supernatural-info {
|
||||
flex: 1 1 0;
|
||||
.cde-super-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.cde-super-name {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
font-family: "Averia", sans-serif;
|
||||
color: @cde-text;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.cde-super-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.cde-super-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.12s;
|
||||
flex-shrink: 0;
|
||||
|
||||
a {
|
||||
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;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 3px;
|
||||
color: @cde-muted;
|
||||
margin-top: 4px;
|
||||
padding-left: 36px;
|
||||
line-height: 1.4;
|
||||
cursor: pointer;
|
||||
transition: color 0.12s, background 0.12s;
|
||||
|
||||
p { margin: 0; }
|
||||
i { font-size: 11px; }
|
||||
|
||||
&:hover { color: @cde-text; background: fade(@cde-border-hi, 30%); }
|
||||
}
|
||||
}
|
||||
|
||||
.cde-super-desc {
|
||||
padding: 6px 12px 8px 46px;
|
||||
border-top: 1px solid fade(@cde-border, 60%);
|
||||
background: fade(@cde-surface, 40%);
|
||||
font-size: 11px;
|
||||
color: @cde-muted;
|
||||
line-height: 1.5;
|
||||
|
||||
p { margin: 0 0 4px; &:last-child { margin-bottom: 0; } }
|
||||
em { color: @cde-text; }
|
||||
strong { color: @cde-supernatural; }
|
||||
}
|
||||
|
||||
.cde-super-empty {
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: @cde-muted;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// NPC vitality / hei tracker
|
||||
.cde-npc-tracks {
|
||||
margin-top: @cde-gap;
|
||||
@@ -1040,9 +1125,11 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
gap: 6px;
|
||||
padding: 6px 8px 4px;
|
||||
border-top: 1px solid @cde-border;
|
||||
pointer-events: auto; // sidebar has pointer-events:none — must override
|
||||
|
||||
.cde-chat-btn {
|
||||
flex: 1 1 0;
|
||||
pointer-events: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -1086,20 +1173,26 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
.cde-loksyu-elements {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
justify-content: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.cde-lok-card {
|
||||
flex: 0 0 calc(33.333% - 6px);
|
||||
min-width: 140px;
|
||||
max-width: 160px;
|
||||
background: fade(@cde-surface, 80%);
|
||||
border: 1px solid @cde-border;
|
||||
border-radius: 6px;
|
||||
padding: 8px 6px;
|
||||
padding: 10px 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
transition: border-color 0.2s;
|
||||
|
||||
&--wood { &:hover { border-color: #4a9e3f; } .cde-lok-input:focus { border-bottom-color: #4a9e3f; } }
|
||||
@@ -1191,8 +1284,10 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
margin: 6px 0;
|
||||
|
||||
.cde-lok-visual {
|
||||
max-width: 100%;
|
||||
max-height: 80px;
|
||||
max-width: 120px;
|
||||
max-height: 160px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
@@ -1254,11 +1349,12 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
.cde-tinji-label {
|
||||
font-size: 10px;
|
||||
font-size: 11px;
|
||||
font-family: "Orbitron", sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: @cde-muted;
|
||||
color: @cde-text;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.cde-tinji-counter {
|
||||
@@ -1269,12 +1365,12 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
}
|
||||
|
||||
.cde-tinji-step {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: @cde-surface;
|
||||
border: 1px solid @cde-border;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: @cde-surface2;
|
||||
border: 1px solid @cde-border-hi;
|
||||
border-radius: 50%;
|
||||
color: @cde-muted;
|
||||
color: @cde-text;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -1285,9 +1381,9 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
padding: 0;
|
||||
|
||||
&:hover {
|
||||
background: fade(@cde-kungfu, 15%);
|
||||
background: fade(@cde-kungfu, 25%);
|
||||
border-color: @cde-kungfu;
|
||||
color: @cde-kungfu;
|
||||
color: @cde-text;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1324,34 +1420,37 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 12px;
|
||||
padding: 6px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.cde-tinji-spend-btn {
|
||||
background: fade(@cde-kungfu, 15%);
|
||||
background: fade(@cde-kungfu, 25%);
|
||||
border: 1px solid @cde-kungfu;
|
||||
color: @cde-kungfu;
|
||||
color: @cde-text;
|
||||
|
||||
&:hover { background: fade(@cde-kungfu, 30%); }
|
||||
&[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
|
||||
&:hover { background: fade(@cde-kungfu, 45%); border-color: lighten(@cde-kungfu, 10%); }
|
||||
&[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
|
||||
}
|
||||
|
||||
.cde-tinji-reset-btn {
|
||||
background: @cde-surface;
|
||||
border: 1px solid @cde-border;
|
||||
color: @cde-muted;
|
||||
background: @cde-surface2;
|
||||
border: 1px solid @cde-border-hi;
|
||||
color: @cde-text;
|
||||
opacity: 0.85;
|
||||
|
||||
&:hover { border-color: @cde-text; color: @cde-text; }
|
||||
&:hover { border-color: @cde-text; opacity: 1; }
|
||||
}
|
||||
|
||||
.cde-tinji-visual {
|
||||
width: 90px;
|
||||
height: auto;
|
||||
opacity: 0.6;
|
||||
opacity: 0.85;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
@@ -1360,20 +1459,241 @@ section.npc .cde-neon-tabs .item.active { color: @cde-supernatural; borde
|
||||
.cde-tinji-spend-msg {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
padding: 6px 8px;
|
||||
background: fade(@cde-kungfu, 8%);
|
||||
border-left: 3px solid @cde-kungfu;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
padding: 8px 10px;
|
||||
background: fade(@cde-kungfu, 18%);
|
||||
border: 1px solid fade(@cde-kungfu, 35%);
|
||||
border-left: 4px solid @cde-kungfu;
|
||||
border-radius: 4px;
|
||||
color: @cde-text;
|
||||
|
||||
i { color: @cde-kungfu; }
|
||||
.cde-tinji-icon {
|
||||
font-size: 18px;
|
||||
color: @cde-kungfu;
|
||||
text-shadow: 0 0 6px fade(@cde-kungfu, 70%);
|
||||
flex-shrink: 0;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
i {
|
||||
color: @cde-kungfu;
|
||||
font-size: 15px;
|
||||
filter: drop-shadow(0 0 4px fade(@cde-kungfu, 60%));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: @cde-kungfu;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.cde-tinji-remain {
|
||||
margin-left: auto;
|
||||
font-size: 11px;
|
||||
color: fade(@cde-text, 65%);
|
||||
font-style: italic;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
// Post-roll Loksyu draw message — rich notification card
|
||||
.cde-loksyu-draw-msg {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
font-size: 12px;
|
||||
padding: 9px 11px;
|
||||
background: linear-gradient(135deg, fade(@cde-item, 10%) 0%, fade(@cde-surface, 95%) 100%);
|
||||
border: 1px solid fade(@cde-item, 40%);
|
||||
border-left: 4px solid @cde-item;
|
||||
border-radius: 5px;
|
||||
color: @cde-text;
|
||||
box-shadow: 0 2px 8px fade(@cde-item, 12%);
|
||||
|
||||
.cde-loksyu-draw-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-aspect-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 0 4px fade(@cde-item, 60%));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-user {
|
||||
font-weight: 700;
|
||||
color: @cde-item;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-action {
|
||||
color: fade(@cde-text, 65%);
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-type {
|
||||
font-weight: 700;
|
||||
font-size: 13px;
|
||||
color: #c9a227;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
text-shadow: 0 0 6px fade(#c9a227, 40%);
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-from {
|
||||
color: fade(@cde-text, 60%);
|
||||
font-size: 11px;
|
||||
|
||||
em {
|
||||
color: @cde-item;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.cde-loksyu-draw-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 11px;
|
||||
color: fade(@cde-text, 55%);
|
||||
padding-top: 4px;
|
||||
border-top: 1px solid fade(@cde-item, 20%);
|
||||
|
||||
i {
|
||||
color: @cde-item;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.cde-loksyu-remain {
|
||||
color: @cde-item;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Post-roll action buttons section inside a roll-result card
|
||||
.cde-roll-actions {
|
||||
margin-top: 10px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid fade(@cde-border, 60%);
|
||||
|
||||
.cde-roll-actions-title {
|
||||
font-size: 10px;
|
||||
color: @cde-muted;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: fade(@cde-text, 50%);
|
||||
margin-bottom: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
i { font-size: 9px; }
|
||||
}
|
||||
|
||||
.cde-roll-actions-btns {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.cde-roll-action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 8px;
|
||||
font-size: 11px;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
border-radius: 3px;
|
||||
border: 1px solid fade(@cde-border, 80%);
|
||||
background: fade(@cde-surface, 90%);
|
||||
color: @cde-text;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
|
||||
pointer-events: auto;
|
||||
line-height: 1.4;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(@cde-item, 70%);
|
||||
background: fade(@cde-item, 12%);
|
||||
box-shadow: 0 0 6px fade(@cde-item, 25%);
|
||||
color: @cde-item;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.cde-roll-action-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 0 2px fade(@cde-item, 40%));
|
||||
}
|
||||
|
||||
.cde-roll-action-label {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.cde-roll-action-count {
|
||||
background: fade(@cde-border, 60%);
|
||||
border-radius: 2px;
|
||||
padding: 1px 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
min-width: 18px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cde-roll-action-tinji-char {
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
color: @cde-kungfu;
|
||||
text-shadow: 0 0 4px fade(@cde-kungfu, 60%);
|
||||
}
|
||||
|
||||
&.cde-roll-action--success {
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(#c9a227, 70%);
|
||||
background: fade(#c9a227, 10%);
|
||||
box-shadow: 0 0 6px fade(#c9a227, 25%);
|
||||
color: #c9a227;
|
||||
}
|
||||
}
|
||||
|
||||
&.cde-roll-action--faste {
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(@cde-item, 70%);
|
||||
background: fade(@cde-item, 10%);
|
||||
box-shadow: 0 0 6px fade(@cde-item, 25%);
|
||||
color: @cde-item;
|
||||
}
|
||||
}
|
||||
|
||||
&.cde-roll-action--tinji {
|
||||
&:hover:not(:disabled) {
|
||||
border-color: fade(@cde-kungfu, 70%);
|
||||
background: fade(@cde-kungfu, 12%);
|
||||
box-shadow: 0 0 6px fade(@cde-kungfu, 30%);
|
||||
color: @cde-kungfu;
|
||||
|
||||
.cde-roll-action-count {
|
||||
background: fade(@cde-kungfu, 25%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3214,6 +3534,37 @@ ol.item-list {
|
||||
color: @cde-muted;
|
||||
}
|
||||
}
|
||||
|
||||
// Loksyu bonus badge (shown when dice drawn from Loksyu)
|
||||
.cde-rr-loksyu-bonus {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
animation: cde-pulse-in 0.3s ease;
|
||||
|
||||
&.cde-rr-loksyu-bonus--success {
|
||||
background: fade(#c9a227, 20%);
|
||||
border: 1px solid fade(#c9a227, 50%);
|
||||
color: #c9a227;
|
||||
text-shadow: 0 0 6px fade(#c9a227, 60%);
|
||||
}
|
||||
|
||||
&.cde-rr-loksyu-bonus--faste {
|
||||
background: fade(@cde-item, 15%);
|
||||
border: 1px solid fade(@cde-item, 40%);
|
||||
color: @cde-item;
|
||||
text-shadow: 0 0 6px fade(@cde-item, 50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes cde-pulse-in {
|
||||
from { opacity: 0; transform: scale(0.7); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
// ---- Detail rows ----
|
||||
@@ -3242,6 +3593,19 @@ ol.item-list {
|
||||
text-shadow: 0 0 6px currentColor;
|
||||
}
|
||||
|
||||
// Inline Loksyu bonus badge in detail rows
|
||||
.cde-rr-loksyu-bonus {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
padding: 1px 4px;
|
||||
border-radius: 2px;
|
||||
background: fade(@cde-item, 15%);
|
||||
border: 1px solid fade(@cde-item, 40%);
|
||||
color: @cde-item;
|
||||
text-shadow: 0 0 4px fade(@cde-item, 50%);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cde-rr-icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
|
||||
Reference in New Issue
Block a user