Fix roll dialog CSS + JS: template <div> wrapper, moon-section, selectors
- Remplace <form class='roll-dialog celestopol'> par <div class='roll-dialog-content'>
pour éviter les formulaires HTML imbriqués invalides (DialogV2 a son propre <form>)
- Corrige le sélecteur CSS de .roll-dialog.celestopol vers .application.roll-dialog .roll-dialog-content
- Remplace .form-group.form-moon par .moon-section (classe custom) pour éviter
les conflits avec le CSS grid de FoundryVTT standard-form (label 130px de hauteur)
- Met à jour le script JS inline pour utiliser document.querySelector('.roll-dialog-content')
- Ajoute white-space: nowrap sur le label Destin pour éviter le wrapping sur 3 lignes
- Supprime .application.roll-dialog .window-content padding override (remplacé par dialog-content)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -157,8 +157,88 @@
|
||||
}
|
||||
|
||||
// ─── Tabs ────────────────────────────────────────────────────────────────
|
||||
// Updated: 1774698726 - Enhanced tab styling
|
||||
|
||||
.sheet-tabs {
|
||||
|
||||
// ─── Faction checkboxes ─────────────────────────────────────────────────
|
||||
|
||||
.faction-checkboxes-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
.faction-checkboxes {
|
||||
display: inline-flex;
|
||||
gap: 2px;
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
.faction-checkbox-wrapper {
|
||||
display: inline-block;
|
||||
pointer-events: auto !important;
|
||||
position: relative;
|
||||
z-index: 101;
|
||||
}
|
||||
|
||||
.faction-checkbox {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
cursor: pointer;
|
||||
pointer-events: auto !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.faction-checkbox:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.faction-count {
|
||||
margin-left: 8px;
|
||||
font-weight: bold;
|
||||
color: var(--cel-orange);
|
||||
min-width: 20px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.faction-value-input {
|
||||
width: 40px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
// Fix pointer-events for faction checkboxes in table cells
|
||||
.faction-row {
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
.faction-row td {
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
// Ensure labels are clickable
|
||||
.faction-checkbox-wrapper label {
|
||||
cursor: pointer;
|
||||
pointer-events: auto !important;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure table cells allow pointer events
|
||||
.faction-row {
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
.faction-row td {
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
.sheet-tabs {
|
||||
display: flex;
|
||||
background: var(--cel-green-dark);
|
||||
padding: 0;
|
||||
@@ -167,29 +247,51 @@
|
||||
border-bottom: 2px solid var(--cel-orange);
|
||||
|
||||
.item {
|
||||
padding: 6px 14px;
|
||||
color: rgba(240,232,212,0.7);
|
||||
padding: 8px 16px;
|
||||
color: rgba(240,232,212,0.8);
|
||||
font-family: var(--cel-font-title);
|
||||
font-size: 0.82em;
|
||||
font-size: 0.85em;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.07em;
|
||||
cursor: pointer;
|
||||
border-right: 1px solid rgba(196,154,26,0.2);
|
||||
transition: color 0.2s, border-bottom-color 0.2s;
|
||||
transition: all 0.2s ease;
|
||||
// Art Déco underline indicator
|
||||
border-bottom: 3px solid transparent;
|
||||
position: relative;
|
||||
background: rgba(240,232,212,0.1);
|
||||
margin: 0 1px;
|
||||
|
||||
&:hover {
|
||||
color: var(--cel-orange-light);
|
||||
background: rgba(196,154,26,0.07);
|
||||
background: rgba(196,154,26,0.15);
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--cel-orange);
|
||||
background: rgba(196,154,26,0.1);
|
||||
border-bottom-color: var(--cel-orange);
|
||||
font-weight: bold;
|
||||
color: var(--cel-cream) !important;
|
||||
background: linear-gradient(to bottom, var(--cel-orange), var(--cel-orange-light)) !important;
|
||||
border-bottom: 3px solid var(--cel-accent) !important;
|
||||
font-weight: bold !important;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
|
||||
transform: translateY(-1px) !important;
|
||||
position: relative !important;
|
||||
z-index: 2 !important;
|
||||
border-right-color: transparent !important;
|
||||
border: 2px solid red !important; // DEBUG: bordure rouge très visible
|
||||
|
||||
// Art Déco triangle indicator
|
||||
&::before {
|
||||
content: '' !important;
|
||||
position: absolute !important;
|
||||
top: -5px !important;
|
||||
left: 50% !important;
|
||||
transform: translateX(-50%) !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
border-left: 8px solid transparent !important;
|
||||
border-right: 8px solid transparent !important;
|
||||
border-bottom: 8px solid var(--cel-accent) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user