fix: styles action-complexe correctement appliqués

Le fichier .less était importé dans le bloc .fvtt-hamalron,
ce qui produisait le sélecteur .fvtt-hamalron .fvtt-hamalron.action-complexe
(ne matchait pas le DOM).

Corrigé : import déplacé hors du bloc, sélecteur .fvtt-hamalron.action-complexe
This commit is contained in:
2026-07-10 23:34:27 +02:00
parent 0b0124e0c9
commit 5e88111cfb
3 changed files with 273 additions and 275 deletions
+138 -138
View File
@@ -2335,144 +2335,6 @@ i.fvtt-hamalron {
.fvtt-hamalron .tarot-content label { .fvtt-hamalron .tarot-content label {
flex: 10%; flex: 10%;
} }
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-complexe-container {
padding: 8px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-complexe-header {
margin-bottom: 12px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-complexe-header button {
width: 100%;
padding: 8px;
background: #2a2a4a;
color: #e0e0e0;
border: 1px dashed #555;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-complexe-header button:hover {
background: #3a3a6a;
border-color: #e94560;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-complexe-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-card {
background: #1e1e3a;
border: 1px solid #333;
border-radius: 8px;
padding: 10px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-card.action-complete {
border-color: #4caf50;
background: #1a2e1a;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-header .action-name {
font-weight: 600;
color: #e0e0e0;
font-size: 14px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-header .action-symbole {
color: #e94560;
font-size: 14px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-progress {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-progress .progress-bar {
flex: 1;
height: 8px;
background: #333;
border-radius: 4px;
overflow: hidden;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-progress .progress-bar .progress-fill {
height: 100%;
width: calc(var(--pct) * 1%);
background: linear-gradient(90deg, #e94560, #ff6b81);
border-radius: 4px;
transition: width 0.3s ease;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-progress .progress-text {
font-size: 12px;
color: #aaa;
white-space: nowrap;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-stats {
display: flex;
gap: 12px;
margin-bottom: 4px;
font-size: 12px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-stats .stat-success {
color: #4caf50;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-stats .stat-failure {
color: #f44336;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-notes {
font-size: 11px;
color: #888;
font-style: italic;
margin-bottom: 6px;
padding: 4px;
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-controls {
display: flex;
gap: 4px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-controls button {
padding: 4px 8px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
transition: opacity 0.2s;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-controls button:hover {
opacity: 0.8;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-controls .btn-success {
background: #2e7d32;
color: #fff;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-controls .btn-failure {
background: #c62828;
color: #fff;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-controls .btn-reset {
background: #555;
color: #ccc;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-controls .btn-delete {
background: #333;
color: #888;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-empty {
text-align: center;
padding: 40px 20px;
color: #666;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-empty i {
margin-bottom: 12px;
}
.fvtt-hamalron .fvtt-hamalron.action-complexe .action-empty p {
font-size: 13px;
}
.fvtt-hamalron.ask-roll { .fvtt-hamalron.ask-roll {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -3861,3 +3723,141 @@ i.fvtt-hamalron {
margin: 0; margin: 0;
flex: 1; flex: 1;
} }
.fvtt-hamalron.action-complexe .action-complexe-container {
padding: 8px;
}
.fvtt-hamalron.action-complexe .action-complexe-header {
margin-bottom: 12px;
}
.fvtt-hamalron.action-complexe .action-complexe-header button {
width: 100%;
padding: 8px;
background: #2a2a4a;
color: #e0e0e0;
border: 1px dashed #555;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
}
.fvtt-hamalron.action-complexe .action-complexe-header button:hover {
background: #3a3a6a;
border-color: #e94560;
}
.fvtt-hamalron.action-complexe .action-complexe-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.fvtt-hamalron.action-complexe .action-card {
background: #1e1e3a;
border: 1px solid #333;
border-radius: 8px;
padding: 10px;
}
.fvtt-hamalron.action-complexe .action-card.action-complete {
border-color: #4caf50;
background: #1a2e1a;
}
.fvtt-hamalron.action-complexe .action-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.fvtt-hamalron.action-complexe .action-header .action-name {
font-weight: 600;
color: #e0e0e0;
font-size: 14px;
}
.fvtt-hamalron.action-complexe .action-header .action-symbole {
color: #e94560;
font-size: 14px;
}
.fvtt-hamalron.action-complexe .action-progress {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.fvtt-hamalron.action-complexe .action-progress .progress-bar {
flex: 1;
height: 8px;
background: #333;
border-radius: 4px;
overflow: hidden;
}
.fvtt-hamalron.action-complexe .action-progress .progress-bar .progress-fill {
height: 100%;
width: calc(var(--pct) * 1%);
background: linear-gradient(90deg, #e94560, #ff6b81);
border-radius: 4px;
transition: width 0.3s ease;
}
.fvtt-hamalron.action-complexe .action-progress .progress-text {
font-size: 12px;
color: #aaa;
white-space: nowrap;
}
.fvtt-hamalron.action-complexe .action-stats {
display: flex;
gap: 12px;
margin-bottom: 4px;
font-size: 12px;
}
.fvtt-hamalron.action-complexe .action-stats .stat-success {
color: #4caf50;
}
.fvtt-hamalron.action-complexe .action-stats .stat-failure {
color: #f44336;
}
.fvtt-hamalron.action-complexe .action-notes {
font-size: 11px;
color: #888;
font-style: italic;
margin-bottom: 6px;
padding: 4px;
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
.fvtt-hamalron.action-complexe .action-controls {
display: flex;
gap: 4px;
}
.fvtt-hamalron.action-complexe .action-controls button {
padding: 4px 8px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
transition: opacity 0.2s;
}
.fvtt-hamalron.action-complexe .action-controls button:hover {
opacity: 0.8;
}
.fvtt-hamalron.action-complexe .action-controls .btn-success {
background: #2e7d32;
color: #fff;
}
.fvtt-hamalron.action-complexe .action-controls .btn-failure {
background: #c62828;
color: #fff;
}
.fvtt-hamalron.action-complexe .action-controls .btn-reset {
background: #555;
color: #ccc;
}
.fvtt-hamalron.action-complexe .action-controls .btn-delete {
background: #333;
color: #888;
}
.fvtt-hamalron.action-complexe .action-empty {
text-align: center;
padding: 40px 20px;
color: #666;
}
.fvtt-hamalron.action-complexe .action-empty i {
margin-bottom: 12px;
}
.fvtt-hamalron.action-complexe .action-empty p {
font-size: 13px;
}
+134 -136
View File
@@ -1,142 +1,140 @@
.fvtt-hamalron { .fvtt-hamalron.action-complexe {
&.action-complexe { .action-complexe-container {
.action-complexe-container { padding: 8px;
}
.action-complexe-header {
margin-bottom: 12px;
button {
width: 100%;
padding: 8px; padding: 8px;
} background: #2a2a4a;
color: #e0e0e0;
border: 1px dashed #555;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
.action-complexe-header { &:hover {
margin-bottom: 12px; background: #3a3a6a;
border-color: #e94560;
button {
width: 100%;
padding: 8px;
background: #2a2a4a;
color: #e0e0e0;
border: 1px dashed #555;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
&:hover {
background: #3a3a6a;
border-color: #e94560;
}
} }
} }
}
.action-complexe-list {
display: flex; .action-complexe-list {
flex-direction: column; display: flex;
gap: 10px; flex-direction: column;
} gap: 10px;
}
.action-card {
background: #1e1e3a; .action-card {
border: 1px solid #333; background: #1e1e3a;
border-radius: 8px; border: 1px solid #333;
padding: 10px; border-radius: 8px;
padding: 10px;
&.action-complete {
border-color: #4caf50; &.action-complete {
background: #1a2e1a; border-color: #4caf50;
} background: #1a2e1a;
} }
}
.action-header {
display: flex; .action-header {
justify-content: space-between; display: flex;
align-items: center; justify-content: space-between;
margin-bottom: 6px; align-items: center;
margin-bottom: 6px;
.action-name {
font-weight: 600; .action-name {
color: #e0e0e0; font-weight: 600;
font-size: 14px; color: #e0e0e0;
} font-size: 14px;
}
.action-symbole {
color: #e94560; .action-symbole {
font-size: 14px; color: #e94560;
} font-size: 14px;
} }
}
.action-progress {
display: flex; .action-progress {
align-items: center; display: flex;
gap: 8px; align-items: center;
margin-bottom: 4px; gap: 8px;
margin-bottom: 4px;
.progress-bar {
flex: 1; .progress-bar {
height: 8px; flex: 1;
background: #333; height: 8px;
border-radius: 4px; background: #333;
overflow: hidden; border-radius: 4px;
overflow: hidden;
.progress-fill {
height: 100%; .progress-fill {
width: calc(var(--pct) * 1%); height: 100%;
background: linear-gradient(90deg, #e94560, #ff6b81); width: calc(var(--pct) * 1%);
border-radius: 4px; background: linear-gradient(90deg, #e94560, #ff6b81);
transition: width 0.3s ease; border-radius: 4px;
} transition: width 0.3s ease;
} }
}
.progress-text {
font-size: 12px; .progress-text {
color: #aaa; font-size: 12px;
white-space: nowrap; color: #aaa;
} white-space: nowrap;
} }
}
.action-stats {
display: flex; .action-stats {
gap: 12px; display: flex;
margin-bottom: 4px; gap: 12px;
font-size: 12px; margin-bottom: 4px;
font-size: 12px;
.stat-success { color: #4caf50; }
.stat-failure { color: #f44336; } .stat-success { color: #4caf50; }
} .stat-failure { color: #f44336; }
}
.action-notes {
font-size: 11px; .action-notes {
color: #888; font-size: 11px;
font-style: italic; color: #888;
margin-bottom: 6px; font-style: italic;
padding: 4px; margin-bottom: 6px;
background: rgba(0,0,0,0.2); padding: 4px;
border-radius: 4px; background: rgba(0,0,0,0.2);
} border-radius: 4px;
}
.action-controls {
display: flex; .action-controls {
gap: 4px; display: flex;
gap: 4px;
button {
padding: 4px 8px; button {
border: none; padding: 4px 8px;
border-radius: 4px; border: none;
cursor: pointer; border-radius: 4px;
font-size: 11px; cursor: pointer;
transition: opacity 0.2s; font-size: 11px;
transition: opacity 0.2s;
&:hover { opacity: 0.8; }
} &:hover { opacity: 0.8; }
}
.btn-success { background: #2e7d32; color: #fff; }
.btn-failure { background: #c62828; color: #fff; } .btn-success { background: #2e7d32; color: #fff; }
.btn-reset { background: #555; color: #ccc; } .btn-failure { background: #c62828; color: #fff; }
.btn-delete { background: #333; color: #888; } .btn-reset { background: #555; color: #ccc; }
} .btn-delete { background: #333; color: #888; }
}
.action-empty {
text-align: center; .action-empty {
padding: 40px 20px; text-align: center;
color: #666; padding: 40px 20px;
color: #666;
i { margin-bottom: 12px; }
p { font-size: 13px; } i { margin-bottom: 12px; }
} p { font-size: 13px; }
} }
} }
+1 -1
View File
@@ -16,9 +16,9 @@
@import "region.less"; @import "region.less";
@import "sortilege.less"; @import "sortilege.less";
@import "tarot.less"; @import "tarot.less";
@import "action-complexe.less";
} }
@import "chat.less"; @import "chat.less";
@import "roll.less"; @import "roll.less";
@import "tarot-deck-manager.less"; @import "tarot-deck-manager.less";
@import "action-complexe.less";