css
This commit is contained in:
+3
-3
@@ -36,7 +36,7 @@ require __DIR__ . '/header.php';
|
|||||||
<div class="pf-modal-content">
|
<div class="pf-modal-content">
|
||||||
<div class="pf-modal-header">
|
<div class="pf-modal-header">
|
||||||
<h3 class="pf-modal-title"><?= tr('fc_modal_holidays_title') ?></h3>
|
<h3 class="pf-modal-title"><?= tr('fc_modal_holidays_title') ?></h3>
|
||||||
<button id="btnCloseHolidays" class="pf-modal-close" onclick="document.getElementById('modalHolidays').classList.remove('is-open'); document.body.classList.remove('no-scroll');">×</button>
|
<button id="btnCloseHolidays" class="pf-modal-close" onclick="document.getElementById('modalHolidays').classList.remove('open'); document.body.classList.remove('no-scroll');">×</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-modal-body" style="padding:0;">
|
<div class="pf-modal-body" style="padding:0;">
|
||||||
<div style="width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;">
|
<div style="width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;">
|
||||||
@@ -59,7 +59,7 @@ require __DIR__ . '/header.php';
|
|||||||
<div class="pf-modal-content">
|
<div class="pf-modal-content">
|
||||||
<div class="pf-modal-header">
|
<div class="pf-modal-header">
|
||||||
<h3 class="pf-modal-title">📸 <?= tr('fc_modal_snap_title') ?></h3>
|
<h3 class="pf-modal-title">📸 <?= tr('fc_modal_snap_title') ?></h3>
|
||||||
<button type="button" id="btnCloseSnapshot" class="pf-modal-close" onclick="document.getElementById('modalSnapshot').classList.remove('is-open'); document.body.classList.remove('no-scroll');">×</button>
|
<button type="button" id="btnCloseSnapshot" class="pf-modal-close" onclick="document.getElementById('modalSnapshot').classList.remove('open'); document.body.classList.remove('no-scroll');">×</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-modal-body">
|
<div class="pf-modal-body">
|
||||||
<form id="formSnapshot">
|
<form id="formSnapshot">
|
||||||
@@ -96,7 +96,7 @@ require __DIR__ . '/header.php';
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-modal-footer">
|
<div class="pf-modal-footer">
|
||||||
<button type="button" class="pf-btn pf-btn-secondary" onclick="document.getElementById('modalSnapshot').classList.remove('is-open'); document.body.classList.remove('no-scroll');"><?= tr('btn_cancel') ?></button>
|
<button type="button" class="pf-btn pf-btn-secondary" onclick="document.getElementById('modalSnapshot').classList.remove('open'); document.body.classList.remove('no-scroll');"><?= tr('btn_cancel') ?></button>
|
||||||
<button type="submit" form="formSnapshot" class="pf-btn pf-btn-primary"><?= tr('fc_btn_save_snap') ?></button>
|
<button type="submit" form="formSnapshot" class="pf-btn pf-btn-primary"><?= tr('fc_btn_save_snap') ?></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,15 +1,24 @@
|
|||||||
/* modules/family-calendar/family-calendar.css */
|
/* modules/family-calendar/family-calendar.css */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
/* Couleurs sémantiques Calendrier */
|
||||||
--c-school-holiday: #e5d9f2;
|
--c-school-holiday: #e5d9f2;
|
||||||
--c-public-holiday: #e0e0e0;
|
--c-public-holiday: #e2e8f0; /* Plus marqué que l'original */
|
||||||
--c-off-carole: #ffedd5;
|
--c-off-carole: #ffedd5;
|
||||||
--c-extra-off: #fee2e2;
|
--c-extra-off: #fee2e2;
|
||||||
--c-selected: #bfdbfe;
|
--c-selected: #bfdbfe;
|
||||||
--bg-alex: #f0fdfa;
|
|
||||||
--text-alex: #0f766e;
|
/* Thèmes Parents (Sync Budget) */
|
||||||
|
--bg-alex: #ecfeff;
|
||||||
|
--text-alex: #0891b2;
|
||||||
--bg-laia: #fffbeb;
|
--bg-laia: #fffbeb;
|
||||||
--text-laia: #b45309;
|
--text-laia: #d97706;
|
||||||
|
|
||||||
|
/* Rappel des variables Global Design System pour cohérence */
|
||||||
|
--pf-primary: #3b82f6;
|
||||||
|
--pf-border: #e2e8f0;
|
||||||
|
--pf-bg-lighter: #f8fafc;
|
||||||
|
--pf-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pf-family-calendar .pf-main {
|
.pf-family-calendar .pf-main {
|
||||||
@@ -27,29 +36,31 @@
|
|||||||
.pf-btn-icon-text {
|
.pf-btn-icon-text {
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid var(--pf-border);
|
border: 1px solid var(--pf-border);
|
||||||
border-radius: 20px;
|
border-radius: 50px;
|
||||||
padding: 8px 16px;
|
padding: 10px 20px;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
font-size: 0.85rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
color: #475569;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: 0.2s;
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
box-shadow: var(--pf-shadow-sm);
|
box-shadow: var(--pf-shadow-sm);
|
||||||
}
|
}
|
||||||
.pf-btn-icon-text:hover {
|
.pf-btn-icon-text:hover {
|
||||||
border-color: var(--pf-primary);
|
border-color: var(--pf-primary);
|
||||||
color: var(--pf-primary);
|
color: var(--pf-primary);
|
||||||
background: #f0f9ff;
|
background: #f8fafc;
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calendrier Mensuel */
|
/* Calendrier Mensuel */
|
||||||
.fc-month-calendar-wrapper {
|
.fc-month-calendar-wrapper {
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid var(--pf-border);
|
border: 1px solid var(--pf-border);
|
||||||
border-radius: var(--pf-radius-lg);
|
border-radius: 16px;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
box-shadow: var(--pf-shadow-sm);
|
box-shadow: var(--pf-shadow-sm);
|
||||||
@@ -68,15 +79,16 @@
|
|||||||
}
|
}
|
||||||
.fc-month-nav-row h3 {
|
.fc-month-nav-row h3 {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
font-size: 1.4rem !important;
|
font-size: 1.5rem !important;
|
||||||
font-weight: 800 !important;
|
font-weight: 800 !important;
|
||||||
|
color: #0f172a;
|
||||||
text-transform: capitalize !important;
|
text-transform: capitalize !important;
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
flex-grow: 1 !important;
|
flex-grow: 1 !important;
|
||||||
}
|
}
|
||||||
.fc-nav-button {
|
.fc-nav-button {
|
||||||
width: 36px;
|
width: 40px;
|
||||||
height: 36px;
|
height: 40px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid var(--pf-border);
|
border: 1px solid var(--pf-border);
|
||||||
background: white;
|
background: white;
|
||||||
@@ -84,20 +96,22 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-size: 18px;
|
font-size: 20px;
|
||||||
transition: 0.2s;
|
transition: all 0.2s;
|
||||||
|
color: #64748b;
|
||||||
}
|
}
|
||||||
.fc-nav-button:hover {
|
.fc-nav-button:hover {
|
||||||
border-color: var(--pf-primary);
|
border-color: var(--pf-primary);
|
||||||
color: var(--pf-primary);
|
color: var(--pf-primary);
|
||||||
|
background: #eff6ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-view-controls {
|
.fc-view-controls {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
background: #e2e8f0 !important;
|
background: #f1f5f9 !important;
|
||||||
padding: 4px !important;
|
padding: 4px !important;
|
||||||
border-radius: 8px !important;
|
border-radius: 12px !important;
|
||||||
}
|
}
|
||||||
.fc-view-button {
|
.fc-view-button {
|
||||||
flex: 1 !important;
|
flex: 1 !important;
|
||||||
@@ -113,9 +127,9 @@
|
|||||||
transition: 0.2s;
|
transition: 0.2s;
|
||||||
}
|
}
|
||||||
.fc-view-button--active {
|
.fc-view-button--active {
|
||||||
background: white;
|
background: white !important;
|
||||||
color: var(--pf-primary);
|
color: var(--pf-primary) !important;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,7 +142,21 @@
|
|||||||
min-width: 100% !important;
|
min-width: 100% !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
border-collapse: collapse !important;
|
border-collapse: separate !important;
|
||||||
|
border-spacing: 0;
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid var(--pf-border) !important;
|
||||||
|
}
|
||||||
|
.fc-month-table th {
|
||||||
|
padding: 10px !important;
|
||||||
|
font-size: 0.8rem !important;
|
||||||
|
background: #f8fafc !important;
|
||||||
|
color: #64748b !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
text-transform: uppercase;
|
||||||
|
border-bottom: 1px solid var(--pf-border) !important;
|
||||||
|
border-right: 1px solid var(--pf-border) !important;
|
||||||
}
|
}
|
||||||
.fc-month-table td {
|
.fc-month-table td {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@@ -137,15 +165,12 @@
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid var(--pf-border) !important;
|
border-right: 1px solid var(--pf-border) !important;
|
||||||
|
border-bottom: 1px solid var(--pf-border) !important;
|
||||||
|
transition: background 0.1s;
|
||||||
}
|
}
|
||||||
.fc-month-table th {
|
.fc-month-table td:hover:not(.fc-day--other-month) {
|
||||||
padding: 10px !important;
|
background: #f1f5f9;
|
||||||
font-size: 0.8rem !important;
|
|
||||||
background: var(--pf-bg-lighter) !important;
|
|
||||||
color: var(--pf-text-muted);
|
|
||||||
text-transform: uppercase;
|
|
||||||
border: 1px solid var(--pf-border) !important;
|
|
||||||
}
|
}
|
||||||
.fc-day--other-month {
|
.fc-day--other-month {
|
||||||
background: #fcfcfc !important;
|
background: #fcfcfc !important;
|
||||||
@@ -192,7 +217,8 @@
|
|||||||
background: white;
|
background: white;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid var(--pf-border);
|
||||||
|
box-shadow: var(--pf-shadow-sm);
|
||||||
}
|
}
|
||||||
.fc-minimal-balance-card strong.alex {
|
.fc-minimal-balance-card strong.alex {
|
||||||
color: var(--text-alex);
|
color: var(--text-alex);
|
||||||
@@ -208,11 +234,12 @@
|
|||||||
.fc-min-chip {
|
.fc-min-chip {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: var(--pf-bg-page);
|
background: white;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
border: 1px solid #cbd5e1;
|
border: 1px solid var(--pf-border);
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.fc-min-chip .type {
|
.fc-min-chip .type {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -333,10 +360,11 @@
|
|||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border: 1px solid var(--pf-border);
|
border: 1px solid var(--pf-border);
|
||||||
border-radius: 12px;
|
border-radius: 16px;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: var(--pf-shadow-sm);
|
box-shadow: var(--pf-shadow-sm);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
#planningTable {
|
#planningTable {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -344,27 +372,59 @@
|
|||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* =========================================================
|
||||||
|
HARMONISATION DES BORDURES ET HEADERS STICKY (1px strict)
|
||||||
|
========================================================= */
|
||||||
|
#planningTable thead tr {
|
||||||
|
height: 30px; /* On fixe la hauteur pour un calcul parfait */
|
||||||
|
}
|
||||||
#planningTable thead th {
|
#planningTable thead th {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
background: #f8fafc !important;
|
||||||
background: var(--pf-bg-lighter);
|
border: none !important; /* On supprime les bordures natives */
|
||||||
border-bottom: 1px solid var(--pf-border);
|
|
||||||
border-right: 1px solid var(--pf-border);
|
/* On utilise UNIQUEMENT des ombres internes pour simuler 1px de bordure sans doublement */
|
||||||
|
box-shadow:
|
||||||
|
inset 0 -1px 0 var(--pf-border),
|
||||||
|
inset -1px 0 0 var(--pf-border) !important;
|
||||||
|
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
|
color: #475569;
|
||||||
|
background-clip: padding-box;
|
||||||
}
|
}
|
||||||
.col-alex.header-group {
|
#planningTable thead tr:nth-child(1) th {
|
||||||
|
top: 0;
|
||||||
|
z-index: 22; /* Au premier plan */
|
||||||
|
}
|
||||||
|
#planningTable thead tr:nth-child(2) th {
|
||||||
|
top: 30px; /* Exactement la hauteur de la ligne 1 */
|
||||||
|
z-index: 21;
|
||||||
|
}
|
||||||
|
#planningTable thead tr:nth-child(3) th {
|
||||||
|
top: 60px; /* Ligne 1 + Ligne 2 */
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-alex.header-group,
|
||||||
|
.col-alex-sub {
|
||||||
background: var(--bg-alex) !important;
|
background: var(--bg-alex) !important;
|
||||||
color: var(--text-alex);
|
color: var(--text-alex) !important;
|
||||||
}
|
}
|
||||||
.col-laia.header-group {
|
.col-laia.header-group,
|
||||||
|
.col-laia-sub {
|
||||||
background: var(--bg-laia) !important;
|
background: var(--bg-laia) !important;
|
||||||
color: var(--text-laia);
|
color: var(--text-laia) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Cellules standards du corps */
|
||||||
#planningTable tbody td {
|
#planningTable tbody td {
|
||||||
border-right: 1px solid var(--pf-bg-lighter);
|
position: relative;
|
||||||
border-bottom: 1px solid var(--pf-bg-lighter);
|
border: none !important; /* Reset de sécurité */
|
||||||
|
border-right: 1px solid var(--pf-border) !important;
|
||||||
|
border-bottom: 1px solid var(--pf-border) !important;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -372,23 +432,19 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.col-alex-sub {
|
|
||||||
background: var(--bg-alex);
|
/* Dimensions des colonnes */
|
||||||
}
|
|
||||||
.col-laia-sub {
|
|
||||||
background: var(--bg-laia);
|
|
||||||
}
|
|
||||||
.col-month {
|
.col-month {
|
||||||
width: 54px !important;
|
width: 54px !important;
|
||||||
min-width: 54px !important;
|
min-width: 54px !important;
|
||||||
max-width: 54px !important;
|
max-width: 54px !important;
|
||||||
background: white;
|
background: white;
|
||||||
border-right: 2px solid var(--pf-border) !important;
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
th.col-day,
|
th.col-day,
|
||||||
td.col-day {
|
td.col-day {
|
||||||
min-width: 35px !important;
|
min-width: 35px !important;
|
||||||
border-right: 2px solid var(--pf-border) !important;
|
|
||||||
}
|
}
|
||||||
th.col-total,
|
th.col-total,
|
||||||
td.col-total,
|
td.col-total,
|
||||||
@@ -400,39 +456,69 @@ td.col-laia-sub {
|
|||||||
min-width: 32px !important;
|
min-width: 32px !important;
|
||||||
max-width: 32px !important;
|
max-width: 32px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rotated-text span {
|
.rotated-text span {
|
||||||
writing-mode: vertical-rl;
|
writing-mode: vertical-rl;
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
color: var(--pf-text-muted);
|
color: var(--pf-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* =========================================================
|
||||||
|
GESTION DES COLONNES STICKY (Mois & Semaine)
|
||||||
|
========================================================= */
|
||||||
|
|
||||||
#planningTable tbody td.col-sticky-mois {
|
#planningTable tbody td.col-sticky-mois {
|
||||||
position: sticky !important;
|
writing-mode: vertical-rl;
|
||||||
left: 0 !important;
|
transform: rotate(180deg);
|
||||||
z-index: 15 !important;
|
border: none !important;
|
||||||
background: white !important;
|
box-shadow:
|
||||||
|
inset 1px 0 0 var(--pf-border),
|
||||||
|
inset 0 1px 0 var(--pf-border) !important;
|
||||||
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 2. Sticky Semaine (Body) */
|
||||||
#planningTable tbody td.col-sticky-sem {
|
#planningTable tbody td.col-sticky-sem {
|
||||||
position: sticky !important;
|
position: sticky !important;
|
||||||
left: 54px !important;
|
left: 54px !important;
|
||||||
z-index: 14 !important;
|
z-index: 14 !important;
|
||||||
background: white !important;
|
background: white !important;
|
||||||
|
/* Ombre portée pour délimiter la zone sticky du reste du tableau */
|
||||||
box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.1);
|
box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 3. Sticky Mois (Header) */
|
||||||
#planningTable thead tr th.col-sticky-mois {
|
#planningTable thead tr th.col-sticky-mois {
|
||||||
position: sticky !important;
|
position: sticky !important;
|
||||||
top: 0 !important;
|
top: 0 !important;
|
||||||
left: 0 !important;
|
left: 0 !important;
|
||||||
z-index: 30 !important;
|
z-index: 30 !important;
|
||||||
background: var(--pf-bg-lighter) !important;
|
background: var(--pf-bg-lighter) !important;
|
||||||
|
/* Les bordures sont gérées par le box-shadow général du thead th */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 4. Sticky Semaine (Header) */
|
||||||
#planningTable thead tr th.col-sticky-sem {
|
#planningTable thead tr th.col-sticky-sem {
|
||||||
position: sticky !important;
|
position: sticky !important;
|
||||||
top: 0 !important;
|
top: 0 !important;
|
||||||
left: 54px !important;
|
left: 54px !important;
|
||||||
z-index: 29 !important;
|
z-index: 29 !important;
|
||||||
background: var(--pf-bg-lighter) !important;
|
background: var(--pf-bg-lighter) !important;
|
||||||
box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.1);
|
/* Ombre interne (bordures) + Ombre portée (effet sticky) */
|
||||||
|
box-shadow:
|
||||||
|
inset 0 -1px 0 var(--pf-border),
|
||||||
|
inset -1px 0 0 var(--pf-border),
|
||||||
|
4px 0 6px -2px rgba(0, 0, 0, 0.1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Rétablissement horizontal pour les headers mois et semaine */
|
||||||
|
#planningTable thead th.col-month,
|
||||||
|
#planningTable tbody td.col-sticky-sem {
|
||||||
|
writing-mode: horizontal-tb;
|
||||||
|
transform: none;
|
||||||
|
padding: 6px !important;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Panneaux bas & Légendes */
|
/* Panneaux bas & Légendes */
|
||||||
@@ -442,6 +528,24 @@ td.col-laia-sub {
|
|||||||
gap: 24px;
|
gap: 24px;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Nouvelles bordures style "Budget" pour les conteneurs */
|
||||||
|
.pf-card {
|
||||||
|
background: white;
|
||||||
|
border: 1px solid var(--pf-border);
|
||||||
|
border-radius: 16px;
|
||||||
|
box-shadow: var(--pf-shadow-sm);
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
.pf-card-title {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
color: #0f172a;
|
||||||
|
border-bottom: 1px solid var(--pf-border);
|
||||||
|
padding-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.pf-legend-grid {
|
.pf-legend-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -452,14 +556,18 @@ td.col-laia-sub {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
padding: 4px 8px;
|
padding: 6px 10px;
|
||||||
|
background: #f8fafc;
|
||||||
border: 1px solid var(--pf-border);
|
border: 1px solid var(--pf-border);
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #475569;
|
||||||
}
|
}
|
||||||
.pf-legend-color {
|
.pf-legend-color {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
border-radius: 3px;
|
border-radius: 4px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
}
|
}
|
||||||
.fc-legend-school-holiday {
|
.fc-legend-school-holiday {
|
||||||
background: var(--c-school-holiday);
|
background: var(--c-school-holiday);
|
||||||
@@ -485,33 +593,41 @@ td.col-laia-sub {
|
|||||||
background-size: contain;
|
background-size: contain;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-summary-header {
|
.fc-summary-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 8px 16px;
|
margin-bottom: 16px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
border-bottom: 1px solid var(--pf-border);
|
||||||
}
|
}
|
||||||
.fc-summ-select {
|
.fc-summ-select {
|
||||||
border: 1px solid var(--pf-border);
|
border: 1px solid var(--pf-border);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 2px 8px;
|
padding: 4px 8px;
|
||||||
font-size: 0.75rem;
|
font-size: 0.8rem;
|
||||||
height: 24px;
|
height: auto;
|
||||||
|
background: #f8fafc;
|
||||||
}
|
}
|
||||||
.fc-summary-item {
|
.fc-summary-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 12px 4px;
|
padding: 12px 4px;
|
||||||
border-bottom: 1px solid var(--pf-bg-lighter);
|
border-bottom: 1px solid var(--pf-border); /* Ligne de séparation visible */
|
||||||
|
}
|
||||||
|
.fc-summary-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
.fc-summary-label {
|
.fc-summary-label {
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
color: var(--pf-text-muted);
|
color: #64748b;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.fc-summary-value {
|
.fc-summary-value {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
color: #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menu Contextuel Tactile */
|
/* Menu Contextuel Tactile */
|
||||||
@@ -618,22 +734,54 @@ td.col-laia-sub {
|
|||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
.fc-holidays-table th {
|
.fc-holidays-table th {
|
||||||
background: var(--pf-bg-page);
|
background: #f8fafc;
|
||||||
padding: 12px 16px;
|
padding: 12px 16px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
border-bottom: 1px solid var(--pf-border);
|
border-bottom: 2px solid var(--pf-border);
|
||||||
}
|
}
|
||||||
.fc-holidays-table td {
|
.fc-holidays-table td {
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
border-bottom: 1px solid var(--pf-bg-lighter);
|
border-bottom: 1px solid var(--pf-border);
|
||||||
}
|
}
|
||||||
.fc-holidays-table tr:nth-child(even) {
|
.fc-holidays-table tr:nth-child(even) {
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* === MODALES : Alignement du Header et de la Croix === */
|
||||||
|
.pf-modal-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
border-bottom: 1px solid var(--pf-border);
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pf-modal-header .pf-modal-title {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border-bottom: none; /* On annule la bordure par défaut du global.css pour la déléguer au header */
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pf-modal-close {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
line-height: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #94a3b8;
|
||||||
|
padding: 0 0 0 15px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pf-modal-close:hover {
|
||||||
|
color: #ef4444; /* Devient rouge au survol */
|
||||||
|
}
|
||||||
|
|
||||||
/* Mobile */
|
/* Mobile */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.pf-family-calendar .pf-container {
|
.pf-family-calendar .pf-container {
|
||||||
@@ -667,7 +815,7 @@ td.col-laia-sub {
|
|||||||
}
|
}
|
||||||
.fc-bottom-grid {
|
.fc-bottom-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
padding: 0 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.fc-selection-menu {
|
.fc-selection-menu {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
|
|||||||
@@ -1166,23 +1166,29 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
|
|
||||||
if (btnOpen && modal) {
|
if (btnOpen && modal) {
|
||||||
btnOpen.addEventListener("click", () => {
|
btnOpen.addEventListener("click", () => {
|
||||||
modal.style.display = "flex";
|
modal.classList.add("open"); // Utilisation propre de la classe CSS
|
||||||
// Remet l'année par défaut sur l'année actuellement affichée dans le calendrier
|
document.body.classList.add("no-scroll");
|
||||||
|
|
||||||
const yearSelect = document.getElementById("holidayYearSelect");
|
const yearSelect = document.getElementById("holidayYearSelect");
|
||||||
if (yearSelect) yearSelect.value = this.currentSchoolYearStart;
|
if (yearSelect) yearSelect.value = this.currentSchoolYearStart;
|
||||||
this.modalSelectedYear = this.currentSchoolYearStart;
|
this.modalSelectedYear = this.currentSchoolYearStart;
|
||||||
this.renderModalHolidays();
|
this.renderModalHolidays();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (btnClose && modal)
|
if (btnClose && modal) {
|
||||||
btnClose.addEventListener(
|
btnClose.addEventListener("click", () => {
|
||||||
"click",
|
modal.classList.remove("open");
|
||||||
() => (modal.style.display = "none"),
|
document.body.classList.remove("no-scroll");
|
||||||
);
|
|
||||||
if (modal)
|
|
||||||
modal.addEventListener("click", (e) => {
|
|
||||||
if (e.target === modal) modal.style.display = "none";
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if (modal) {
|
||||||
|
modal.addEventListener("click", (e) => {
|
||||||
|
if (e.target === modal) {
|
||||||
|
modal.classList.remove("open");
|
||||||
|
document.body.classList.remove("no-scroll");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// --- GESTION MODALE CORRECTIF DES SOLDES (SNAPSHOTS) ---
|
// --- GESTION MODALE CORRECTIF DES SOLDES (SNAPSHOTS) ---
|
||||||
const btnSnap = document.getElementById("btnOpenSnapshotModal");
|
const btnSnap = document.getElementById("btnOpenSnapshotModal");
|
||||||
@@ -1191,10 +1197,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
const formSnap = document.getElementById("formSnapshot");
|
const formSnap = document.getElementById("formSnapshot");
|
||||||
|
|
||||||
if (btnSnap && modalSnap) {
|
if (btnSnap && modalSnap) {
|
||||||
modalSnap.classList.add("is-open");
|
|
||||||
btnSnap.addEventListener("click", () => {
|
btnSnap.addEventListener("click", () => {
|
||||||
modalSnap.classList.add("is-open"); // Utilise flex au lieu de block pour le centrage
|
modalSnap.classList.add("open"); // On ouvre la modale correctement
|
||||||
document.body.classList.add("no-scroll");
|
document.body.classList.add("no-scroll");
|
||||||
|
|
||||||
// Pré-remplir la date avec le 1er jour du mois en cours
|
// Pré-remplir la date avec le 1er jour du mois en cours
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const y = today.getFullYear();
|
const y = today.getFullYear();
|
||||||
@@ -1205,21 +1211,24 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (btnCloseSnap && modalSnap) {
|
if (btnCloseSnap && modalSnap) {
|
||||||
btnCloseSnap.addEventListener(
|
btnCloseSnap.addEventListener("click", () => {
|
||||||
"click",
|
modalSnap.classList.remove("open");
|
||||||
() => (modalSnap.style.display = "none"),
|
document.body.classList.remove("no-scroll");
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modalSnap) {
|
if (modalSnap) {
|
||||||
modalSnap.addEventListener("click", (e) => {
|
modalSnap.addEventListener("click", (e) => {
|
||||||
if (e.target === modalSnap) modalSnap.style.display = "none";
|
if (e.target === modalSnap) {
|
||||||
|
modalSnap.classList.remove("open");
|
||||||
|
document.body.classList.remove("no-scroll");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (formSnap) {
|
if (formSnap) {
|
||||||
formSnap.addEventListener("submit", async (e) => {
|
formSnap.addEventListener("submit", async (e) => {
|
||||||
e.preventDefault(); // Empêche le rechargement de la page
|
e.preventDefault();
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
person_id: document.getElementById("snapPerson").value,
|
person_id: document.getElementById("snapPerson").value,
|
||||||
@@ -1229,16 +1238,15 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// On envoie à la nouvelle API
|
|
||||||
await this.postApi(
|
await this.postApi(
|
||||||
"/modules/family-calendar/includes/api/save-leave-snapshot.php",
|
"/modules/family-calendar/includes/api/save-leave-snapshot.php",
|
||||||
payload,
|
payload,
|
||||||
);
|
);
|
||||||
|
|
||||||
modalSnap.style.display = "none";
|
modalSnap.classList.remove("open"); // Fermeture propre
|
||||||
formSnap.reset(); // On vide le formulaire
|
document.body.classList.remove("no-scroll");
|
||||||
|
formSnap.reset();
|
||||||
|
|
||||||
// On rafraîchit tout le calendrier pour appliquer le nouveau solde immédiatement
|
|
||||||
await this.refreshAllData();
|
await this.refreshAllData();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
alert("Erreur lors de la sauvegarde du correctif.");
|
alert("Erreur lors de la sauvegarde du correctif.");
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user