Ajout des fonctions de gestion des soins
This commit is contained in:
@@ -213,6 +213,7 @@ ul
|
||||
flex-direction: row
|
||||
align-content: flex-start
|
||||
flex-wrap: nowrap
|
||||
min-height: 330px
|
||||
.tab
|
||||
width: 100%
|
||||
|
||||
@@ -277,3 +278,15 @@ ul
|
||||
flex-shrink: 0
|
||||
display: flex
|
||||
flex-direction: row
|
||||
|
||||
|
||||
// ── HTMLField editor min-height in notes/biography/finance tabs ──────────────
|
||||
.mgt2.character
|
||||
.tab[data-tab="notes"],
|
||||
.tab[data-tab="biography"],
|
||||
.tab[data-tab="finance"]
|
||||
.editor,
|
||||
.editor-content,
|
||||
prose-mirror
|
||||
min-height: 300px !important
|
||||
height: auto !important
|
||||
|
||||
@@ -294,6 +294,41 @@ li.chat-message
|
||||
color: #EE4050
|
||||
border-top: 1px solid rgba(238,64,80,0.2)
|
||||
|
||||
// ── Effect line ──
|
||||
.mgt2-effect
|
||||
text-align: center
|
||||
font-size: 0.72rem
|
||||
font-weight: 600
|
||||
letter-spacing: 1.5px
|
||||
text-transform: uppercase
|
||||
padding: 2px 10px 4px 10px
|
||||
border-bottom: 2px solid transparent
|
||||
|
||||
.mgt2-effect-value
|
||||
font-size: 1rem
|
||||
font-weight: 900
|
||||
margin-left: 4px
|
||||
|
||||
.mgt2-healing-amount
|
||||
font-size: 0.75rem
|
||||
font-weight: 600
|
||||
margin-left: 6px
|
||||
opacity: 0.85
|
||||
|
||||
&.is-success
|
||||
color: #1a8840
|
||||
border-bottom-color: rgba(26,136,64,0.25)
|
||||
|
||||
.mgt2-effect-value
|
||||
color: #1a8840
|
||||
|
||||
&.is-failure
|
||||
color: #EE4050
|
||||
border-bottom-color: rgba(238,64,80,0.25)
|
||||
|
||||
.mgt2-effect-value
|
||||
color: #EE4050
|
||||
|
||||
// ── Action buttons ──
|
||||
.mgt2-buttons
|
||||
display: flex
|
||||
|
||||
@@ -105,15 +105,19 @@
|
||||
flex-direction: row
|
||||
align-items: center
|
||||
gap: 0.5rem
|
||||
flex-wrap: wrap
|
||||
flex-wrap: nowrap
|
||||
|
||||
label
|
||||
flex: 0 0 auto
|
||||
font-size: 0.75rem
|
||||
text-transform: uppercase
|
||||
color: var(--mgt2-color-primary)
|
||||
font-weight: 700
|
||||
white-space: nowrap
|
||||
|
||||
.behavior-select
|
||||
flex: 1 1 auto
|
||||
min-width: 0
|
||||
background: var(--mgt2-bgcolor-form)
|
||||
color: var(--mgt2-color-form)
|
||||
border: 1px solid var(--mgt2-color-primary)
|
||||
@@ -122,24 +126,29 @@
|
||||
padding: 1px 4px
|
||||
|
||||
.behavior-sep
|
||||
flex: 0 0 auto
|
||||
color: var(--mgt2-color-form)
|
||||
opacity: 0.5
|
||||
|
||||
.creature-size-badge
|
||||
margin-left: auto
|
||||
flex: 0 0 auto
|
||||
white-space: nowrap
|
||||
font-size: 0.75rem
|
||||
font-style: italic
|
||||
color: var(--mgt2-color-secondary)
|
||||
color: var(--mgt2-bgcolor-form)
|
||||
background: var(--mgt2-bgcolor-primary)
|
||||
border: 1px solid var(--mgt2-color-secondary)
|
||||
border: 1px solid var(--mgt2-color-primary)
|
||||
border-radius: 3px
|
||||
padding: 1px 6px
|
||||
|
||||
// ── Body / Tabs ────────────────────────────────────
|
||||
// min-height ensures all 4 sidebar tabs are always visible
|
||||
// (4 tabs × 54px each + 8px padding = 224px)
|
||||
.creature-body
|
||||
flex: 1
|
||||
overflow-y: auto
|
||||
padding: 0.5rem 0.75rem
|
||||
min-height: 228px
|
||||
|
||||
.tab
|
||||
display: none
|
||||
@@ -199,3 +208,18 @@
|
||||
|
||||
.mgt2-roll-header-text
|
||||
flex: 1
|
||||
|
||||
// ── Section headers: use shared .header class (same as character sheet) ──────
|
||||
|
||||
// ── HTMLField editor min-height in info tab ──────────────────────────────────
|
||||
.mgt2.creature
|
||||
// Section headers (skills/attacks/traits) — margin between successive sections
|
||||
.table-container + .header
|
||||
margin-top: 8px
|
||||
|
||||
.tab[data-tab="info"]
|
||||
.editor,
|
||||
.editor-content,
|
||||
prose-mirror
|
||||
min-height: 300px !important
|
||||
height: auto !important
|
||||
|
||||
@@ -31,15 +31,15 @@
|
||||
|
||||
.dialog-content, .standard-form
|
||||
background: #ffffff !important
|
||||
padding: 14px 18px 10px !important
|
||||
padding: 8px 14px 6px !important
|
||||
|
||||
// Form group rows
|
||||
.form-group
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
gap: 10px !important
|
||||
margin-bottom: 8px !important
|
||||
padding: 4px 0 !important
|
||||
gap: 8px !important
|
||||
margin-bottom: 3px !important
|
||||
padding: 2px 0 !important
|
||||
border-bottom: 1px solid #e8e0e0 !important
|
||||
|
||||
&:last-child
|
||||
@@ -61,7 +61,7 @@
|
||||
border: 1px solid #ccbbbb !important
|
||||
color: #0A0405 !important
|
||||
border-radius: 3px !important
|
||||
padding: 5px 10px !important
|
||||
padding: 3px 8px !important
|
||||
font-family: 'Barlow Condensed', sans-serif !important
|
||||
font-size: 0.9rem !important
|
||||
transition: border-color 150ms ease !important
|
||||
@@ -80,8 +80,8 @@
|
||||
background: #fdf8f8 !important
|
||||
border: 1px solid #e0c8c8 !important
|
||||
border-radius: 5px !important
|
||||
padding: 10px 14px !important
|
||||
margin-bottom: 8px !important
|
||||
padding: 5px 10px !important
|
||||
margin-bottom: 4px !important
|
||||
|
||||
legend
|
||||
color: #EE4050 !important
|
||||
@@ -112,7 +112,7 @@
|
||||
.dialog-buttons, .form-footer, footer
|
||||
background: #f5eeee !important
|
||||
border-top: 2px solid #EE4050 !important
|
||||
padding: 10px 14px !important
|
||||
padding: 7px 14px !important
|
||||
display: flex !important
|
||||
gap: 8px !important
|
||||
justify-content: center !important
|
||||
@@ -124,7 +124,7 @@
|
||||
border: 1px solid #ccbbbb !important
|
||||
color: #3a2020 !important
|
||||
border-radius: 4px !important
|
||||
padding: 7px 14px !important
|
||||
padding: 5px 12px !important
|
||||
font-family: 'Barlow Condensed', sans-serif !important
|
||||
font-size: 0.82rem !important
|
||||
font-weight: 700 !important
|
||||
|
||||
@@ -343,3 +343,76 @@
|
||||
.itemsheet-panel
|
||||
display: contents !important
|
||||
|
||||
|
||||
// ── Details tab: 2-column grid layout ────────────────────────────────────────
|
||||
.itemsheet
|
||||
.item-details-grid
|
||||
display: grid !important
|
||||
grid-template-columns: 1fr 1fr !important
|
||||
gap: 4px 16px !important
|
||||
align-items: start !important
|
||||
|
||||
// Traits table spans full width
|
||||
.table-container
|
||||
grid-column: 1 / -1 !important
|
||||
margin-top: 10px !important
|
||||
|
||||
// ── Field row: label + input on the same line ─────────────────────────────────
|
||||
.itemsheet
|
||||
.field-row
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
gap: 8px !important
|
||||
min-height: 28px !important
|
||||
|
||||
label
|
||||
flex: 0 0 100px !important
|
||||
min-width: 0 !important
|
||||
margin-bottom: 0 !important
|
||||
white-space: nowrap !important
|
||||
overflow: hidden !important
|
||||
text-overflow: ellipsis !important
|
||||
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
select
|
||||
flex: 1 !important
|
||||
width: auto !important
|
||||
height: 24px !important
|
||||
padding: 2px 6px !important
|
||||
|
||||
input.short
|
||||
flex: 0 0 56px !important
|
||||
width: 56px !important
|
||||
|
||||
.range-inputs
|
||||
display: flex !important
|
||||
gap: 4px !important
|
||||
flex: 1 !important
|
||||
|
||||
input
|
||||
flex: 0 0 52px !important
|
||||
width: 52px !important
|
||||
|
||||
select
|
||||
flex: 1 !important
|
||||
|
||||
// Full-width row (e.g. storage)
|
||||
&.full
|
||||
grid-column: 1 / -1 !important
|
||||
|
||||
// Checkbox row variant
|
||||
.field-row--check
|
||||
label
|
||||
flex: unset !important
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
gap: 6px !important
|
||||
cursor: pointer !important
|
||||
|
||||
// ── Description tab: editor min-height ───────────────────────────────────────
|
||||
.itemsheet
|
||||
.tab[data-tab="tab1"]
|
||||
.editor,
|
||||
.editor-container
|
||||
min-height: 200px !important
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// nav (left: 100% of character-body) can extend to the right of the window border.
|
||||
// Layered !important beats Foundry's unlayered overflow:hidden per CSS cascade spec.
|
||||
|
||||
.mgt2.character, .mgt2.creature
|
||||
.mgt2.character, .mgt2.creature, .mgt2.vehicule
|
||||
overflow: visible !important
|
||||
> .window-content
|
||||
overflow: visible !important
|
||||
@@ -18,13 +18,16 @@
|
||||
position: relative !important
|
||||
overflow: visible !important
|
||||
|
||||
.mgt2.vehicule .vehicule-content
|
||||
position: relative !important
|
||||
overflow: visible !important
|
||||
|
||||
// ── Vertical sidebar tab navigation (outside window, right side) ──
|
||||
.mgt2
|
||||
nav.sheet-sidebar.tabs
|
||||
position: absolute !important
|
||||
left: 100% !important
|
||||
top: 0 !important
|
||||
bottom: 0 !important
|
||||
width: 62px !important
|
||||
flex: none !important
|
||||
display: flex !important
|
||||
|
||||
203
src/sass/components/_vehicule.sass
Normal file
203
src/sass/components/_vehicule.sass
Normal file
@@ -0,0 +1,203 @@
|
||||
// ─────────────────────────────────────────────────
|
||||
// Vehicule Sheet Styles
|
||||
// ─────────────────────────────────────────────────
|
||||
|
||||
.vehicule-sheet
|
||||
|
||||
// ── Header ────────────────────────────────────────
|
||||
.vehicule-header
|
||||
display: flex
|
||||
flex-direction: row
|
||||
align-items: flex-start
|
||||
gap: 0.75rem
|
||||
padding: 0.5rem 0.75rem
|
||||
background: var(--mgt2-bgcolor-form)
|
||||
border-bottom: 2px solid var(--mgt2-color-primary)
|
||||
flex-shrink: 0
|
||||
|
||||
.vehicule-header-img
|
||||
flex: 0 0 90px
|
||||
img.profile
|
||||
width: 90px
|
||||
height: 90px
|
||||
object-fit: cover
|
||||
border: 2px solid var(--mgt2-color-primary)
|
||||
border-radius: 4px
|
||||
cursor: pointer
|
||||
|
||||
.vehicule-header-body
|
||||
flex: 1
|
||||
display: flex
|
||||
flex-direction: column
|
||||
gap: 0.4rem
|
||||
min-width: 0
|
||||
|
||||
.vehicule-name
|
||||
font-family: "Barlow Condensed", sans-serif
|
||||
font-size: 1.6rem
|
||||
font-weight: 700
|
||||
font-style: italic
|
||||
color: var(--mgt2-color-form)
|
||||
background: transparent
|
||||
border: none
|
||||
border-bottom: 1px solid var(--mgt2-color-primary)
|
||||
width: 100%
|
||||
padding: 0
|
||||
&:focus
|
||||
outline: none
|
||||
border-bottom-color: var(--mgt2-color-secondary)
|
||||
|
||||
.vehicule-header-stats
|
||||
display: flex
|
||||
flex-direction: row
|
||||
align-items: flex-start
|
||||
gap: 0.75rem
|
||||
flex-wrap: wrap
|
||||
|
||||
// ── Stat boxes (hull, armor) ────────────────────────
|
||||
.vehicule-stat-box
|
||||
display: flex
|
||||
flex-direction: column
|
||||
align-items: center
|
||||
background: var(--mgt2-bgcolor-primary)
|
||||
border: 1px solid var(--mgt2-color-primary)
|
||||
border-radius: 4px
|
||||
padding: 3px 8px
|
||||
min-width: 4rem
|
||||
|
||||
label
|
||||
font-family: "Barlow Condensed", sans-serif
|
||||
font-size: 0.65rem
|
||||
font-weight: 700
|
||||
text-transform: uppercase
|
||||
color: var(--mgt2-color-primary)
|
||||
line-height: 1.2
|
||||
white-space: nowrap
|
||||
|
||||
.vehicule-stat-value
|
||||
display: flex
|
||||
align-items: center
|
||||
gap: 2px
|
||||
|
||||
span
|
||||
color: var(--mgt2-color-primary)
|
||||
font-weight: 700
|
||||
|
||||
input[type="number"]
|
||||
width: 2.8rem
|
||||
text-align: center
|
||||
background: transparent
|
||||
border: none
|
||||
color: var(--mgt2-color-form)
|
||||
font-family: "Rubik", monospace
|
||||
font-size: 1rem
|
||||
font-weight: 600
|
||||
padding: 0
|
||||
&:focus
|
||||
outline: none
|
||||
border-bottom: 1px solid var(--mgt2-color-secondary)
|
||||
|
||||
.vehicule-hull
|
||||
min-width: 6rem
|
||||
.vehicule-stat-value input[type="number"]
|
||||
width: 2.5rem
|
||||
|
||||
// ── Armor group ────────────────────────────────────
|
||||
.vehicule-armor-group
|
||||
display: flex
|
||||
flex-direction: column
|
||||
gap: 2px
|
||||
|
||||
.vehicule-armor-label
|
||||
font-family: "Barlow Condensed", sans-serif
|
||||
font-size: 0.65rem
|
||||
font-weight: 700
|
||||
text-transform: uppercase
|
||||
color: var(--mgt2-color-primary)
|
||||
text-align: center
|
||||
|
||||
.vehicule-armor-row
|
||||
display: flex
|
||||
flex-direction: row
|
||||
gap: 4px
|
||||
|
||||
.vehicule-armor-box
|
||||
min-width: 3.5rem
|
||||
|
||||
// ── Body wrapper (contains tabs + sidebar nav) ─────
|
||||
// min-height ensures both tabs in the sidebar are always visible
|
||||
// (2 tabs × 54px each + 8px padding = 116px)
|
||||
.vehicule-content
|
||||
flex: 1
|
||||
display: flex
|
||||
flex-direction: column
|
||||
overflow: hidden
|
||||
min-height: 320px
|
||||
|
||||
// ── Tab panels ─────────────────────────────────────
|
||||
.vehicule-tab
|
||||
flex: 1
|
||||
overflow-y: auto
|
||||
padding: 0.75rem
|
||||
display: none
|
||||
|
||||
&.active
|
||||
display: block
|
||||
|
||||
// ── Stats grid ─────────────────────────────────────
|
||||
.vehicule-stats-grid
|
||||
display: grid
|
||||
grid-template-columns: 1fr 1fr
|
||||
gap: 4px 12px
|
||||
|
||||
.vehicule-field
|
||||
display: flex
|
||||
flex-direction: row
|
||||
align-items: center
|
||||
gap: 8px
|
||||
padding: 3px 0
|
||||
border-bottom: 1px solid rgba(0,0,0,0.08)
|
||||
|
||||
&:last-child
|
||||
border-bottom: none
|
||||
|
||||
label
|
||||
font-family: "Barlow Condensed", sans-serif
|
||||
font-size: 0.72rem
|
||||
font-weight: 700
|
||||
text-transform: uppercase
|
||||
color: var(--mgt2-color-primary)
|
||||
flex: 0 0 120px
|
||||
white-space: nowrap
|
||||
|
||||
input[type="number"],
|
||||
select
|
||||
flex: 1
|
||||
background: transparent
|
||||
border: 1px solid transparent
|
||||
border-radius: 3px
|
||||
color: var(--mgt2-color-form)
|
||||
font-family: "Barlow Condensed", sans-serif
|
||||
font-size: 0.9rem
|
||||
padding: 2px 4px
|
||||
&:focus
|
||||
outline: none
|
||||
border-color: var(--mgt2-color-primary)
|
||||
background: rgba(255,255,255,0.1)
|
||||
|
||||
input[type="number"]
|
||||
text-align: center
|
||||
width: 4rem
|
||||
|
||||
select
|
||||
cursor: pointer
|
||||
|
||||
|
||||
// ── HTMLField editor min-height in description tab ──────────────────────────
|
||||
.mgt2.vehicule
|
||||
.vehicule-tab[data-tab="description"]
|
||||
.editor,
|
||||
.editor-content,
|
||||
prose-mirror
|
||||
min-height: 300px !important
|
||||
height: auto !important
|
||||
@@ -13,4 +13,5 @@
|
||||
@import 'components/_tabs'
|
||||
@import 'components/_tab-sidebar'
|
||||
@import 'components/_tables'
|
||||
@import 'components/_creature'
|
||||
@import 'components/_creature'
|
||||
@import 'components/_vehicule'
|
||||
Reference in New Issue
Block a user