feat: messages Sous tension/Opposé stylisés (template chat-tension.hbs)

Affiche les scores du joueur et du MJ/opposant côte à côte
avec un séparateur VS, résultat coloré, badges et icônes.
This commit is contained in:
2026-07-11 00:19:37 +02:00
parent 272149d300
commit d198daba03
7 changed files with 192 additions and 14 deletions
+79
View File
@@ -788,6 +788,85 @@
}
}
.tension-roll {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border: 1px solid #e94560;
border-radius: 8px;
overflow: hidden;
.tension-header {
text-align: center;
padding: 6px;
background: rgba(233, 69, 96, 0.15);
border-bottom: 1px solid rgba(233, 69, 96, 0.3);
.tension-badge {
color: #e94560;
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
}
.tension-players {
display: flex;
align-items: center;
justify-content: space-around;
padding: 12px 8px;
.tension-side {
text-align: center;
.tension-side-label {
font-size: 11px;
color: #888;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 4px;
}
.tension-side-value {
font-size: 28px;
font-weight: 700;
color: #f0e6d3;
}
.tension-side-name {
font-size: 11px;
color: #aaa;
margin-top: 2px;
}
&.tension-winner .tension-side-value {
color: #4caf50;
}
}
.tension-vs {
font-size: 14px;
font-weight: 700;
color: #e94560;
opacity: 0.7;
}
}
.tension-result {
text-align: center;
padding: 6px;
font-size: 13px;
font-weight: 600;
border-top: 1px solid rgba(233, 69, 96, 0.2);
&.result-success { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
&.result-failure { background: rgba(244, 67, 54, 0.15); color: #f44336; }
}
}
.initiative-roll {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border: 1px solid #e94560;