Interface : drapeau et feuille d'abandon, Crawford sur la barre
Le drapeau à votre tour avant le lancer (barre d'actions, colonne de commandes en paysage, menu), la feuille de choix en cartes radio avec les points ou le score du match, la réponse de l'ordinateur ; la capsule « Crawford » sur la barre, le videau estompé, la ligne du match et la bande sans préfixe. Test navigateur retours-2.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
de32811bba
commit
cddb2707a2
+105
@@ -674,9 +674,98 @@ a.notation {
|
||||
|
||||
.actions .slot {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Abandonner : un drapeau au trait dans un bouton rond de 52 px, à gauche
|
||||
* de la barre d'actions, jamais en brique (charte, « Abandonner une
|
||||
* partie »). */
|
||||
.actions .slot .resign-flag {
|
||||
flex: none;
|
||||
width: 52px;
|
||||
min-width: 52px;
|
||||
height: 52px;
|
||||
min-height: 52px;
|
||||
margin-block: -2px;
|
||||
padding: 0;
|
||||
color: var(--text);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* L'ordinateur refuse l'abandon : le message du maître, au-dessus de la
|
||||
* barre d'actions, jusqu'au lancer des dés. */
|
||||
.resign-refusal {
|
||||
display: flex;
|
||||
flex: none;
|
||||
gap: var(--space-2);
|
||||
align-items: flex-start;
|
||||
margin: 0 0 var(--space-2);
|
||||
padding: var(--space-2) 12px;
|
||||
font-size: 15px;
|
||||
line-height: 21px;
|
||||
color: var(--text);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.resign-refusal[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.resign-refusal .icon {
|
||||
flex: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.resign-refusal strong {
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
/* La feuille de choix de l'abandon : des cartes de 56 px, un seul choix. */
|
||||
.resign-lead {
|
||||
margin: 0 0 var(--space-4);
|
||||
font-size: 17px;
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.resign-choices {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.resign-choice {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 56px;
|
||||
padding: 0 var(--space-4);
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
button.resign-choice[aria-checked="true"] {
|
||||
background: var(--accent-soft);
|
||||
border: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.resign-choice-points {
|
||||
font-weight: 400;
|
||||
color: var(--muted);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.actions .slot button {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
@@ -1165,6 +1254,22 @@ a.notation {
|
||||
|
||||
.cube-face { fill: var(--cube); stroke: var(--checker-player-edge); stroke-width: 2; }
|
||||
|
||||
/* Partie Crawford : le videau reste à sa place, estompé (charte). */
|
||||
.cube.crawford { opacity: 0.4; }
|
||||
|
||||
/* Partie Crawford : « CRAWFORD » à la verticale sur la barre, dans une
|
||||
* capsule au contour de 1,5 px, couleur des numéros du cadre. Ce n'est pas
|
||||
* une cible : les touchers passent au travers. */
|
||||
.crawford-capsule { pointer-events: none; }
|
||||
.crawford-capsule.appear { animation: fade-in var(--duration-fast) var(--easing-standard); }
|
||||
.crawford-frame { fill: none; stroke: var(--point-number); stroke-width: 1.5; }
|
||||
|
||||
.crawford-text {
|
||||
fill: var(--point-number);
|
||||
font-weight: 800;
|
||||
text-anchor: middle;
|
||||
}
|
||||
|
||||
.cube-value {
|
||||
fill: var(--cube-text);
|
||||
font-weight: 800;
|
||||
|
||||
Reference in New Issue
Block a user