Auto-commit for deploy to production - 2026-04-20 11:40:09

This commit is contained in:
2026-04-20 11:40:09 +02:00
parent daff54784f
commit 9070390770
2 changed files with 86 additions and 19 deletions
+73 -8
View File
@@ -37,29 +37,66 @@ body.no-scroll {
padding-bottom: 50px; padding-bottom: 50px;
} }
/* --- 2. EN-TÊTE --- */ /* --- 2. EN-TÊTE (Refonte Responsive) --- */
.pf-holidays__titlebar { .pf-holidays__titlebar {
background: transparent; background: transparent;
padding-bottom: 1rem; padding-bottom: 1rem;
margin-bottom: 2rem; margin-bottom: 2rem;
border-bottom: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
display: flex; display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 1rem; align-items: center;
gap: 20px;
} }
.pf-holidays__titlebar h1 { .hol-title-group {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
flex: 1; /* Prend l'espace disponible */
}
.hol-main-title {
font-size: 1.8rem; font-size: 1.8rem;
font-weight: 800; font-weight: 800;
color: #0f172a; color: #0f172a;
margin: 0; margin: 0;
} }
.hol-title-actions { .hol-filters-row {
display: flex; display: flex;
align-items: center;
gap: 12px; gap: 12px;
flex-wrap: wrap;
}
.hol-year-select {
width: auto !important; /* Force la largeur au contenu sur PC */
padding: 6px 12px;
font-weight: bold;
cursor: pointer;
}
.hol-badge-left-to-pay {
background: #fff1f2;
color: #be123c;
padding: 6px 12px;
border-radius: 8px;
font-weight: bold;
border: 1px solid #fecdd3;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 8px;
}
.hol-badge-amount {
font-size: 1rem;
}
.hol-actions-group {
flex-shrink: 0;
} }
/* --- 3. BOUTONS --- */ /* --- 3. BOUTONS --- */
@@ -457,7 +494,23 @@ body.no-scroll {
@media (max-width: 768px) { @media (max-width: 768px) {
.pf-holidays__titlebar { .pf-holidays__titlebar {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: stretch; /* Étire les éléments de haut en bas */
gap: 15px;
}
.hol-title-group {
flex-direction: column;
align-items: stretch;
gap: 15px;
}
.hol-filters-row {
justify-content: space-between; /* Écarte l'année et le badge */
width: 100%;
}
.hol-badge-left-to-pay {
flex: 1;
justify-content: center; /* Centre le texte dans le badge */
font-size: 0.8rem; /* Un peu plus petit sur mobile */
} }
/* On empile proprement les boutons d'action */ /* On empile proprement les boutons d'action */
@@ -466,6 +519,12 @@ body.no-scroll {
flex-direction: column; /* Essentiel pour que les boutons width: 100% ne s'écrasent pas */ flex-direction: column; /* Essentiel pour que les boutons width: 100% ne s'écrasent pas */
gap: 10px; gap: 10px;
} }
.hol-actions-group .hol-add-btn {
width: 100%;
justify-content: center;
padding: 12px;
font-size: 1rem;
}
.hol-add-btn, .hol-add-btn,
.hol-map-toggle { .hol-map-toggle {
width: 100%; width: 100%;
@@ -517,10 +576,16 @@ body.no-scroll {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
width: 100%; width: 100%;
align-items: flex-start;
} }
.hol-cp-title { .hol-cp-title {
white-space: normal; white-space: normal !important;
overflow: visible !important;
text-overflow: clip !important;
line-height: 1.4;
word-break: break-word;
padding-top: 2px;
} }
.hol-cp-actions-group { .hol-cp-actions-group {
+12 -10
View File
@@ -42,28 +42,30 @@ foreach ($active as $h) {
?> ?>
<div class="pf-holidays"> <div class="pf-holidays">
<div class="pf-holidays__titlebar" style="display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:15px; margin-bottom:30px;"> <div class="pf-holidays__titlebar">
<div style="display:flex; align-items:center; gap:15px; flex-wrap:wrap;"> <div class="hol-title-group">
<h1 style="margin:0;"><?= tr('hdl_main_title') ?> ✈️</h1> <h1 class="hol-main-title"><?= tr('hdl_main_title') ?> ✈️</h1>
<select onchange="window.location.href='?tab=list&y='+this.value" class="pf-input" style="width:auto; padding:6px 12px; font-weight:bold; cursor:pointer;"> <div class="hol-filters-row">
<select onchange="window.location.href='?tab=list&y='+this.value" class="pf-input hol-year-select">
<option value="all" <?= $selectedYear === 'all' ? 'selected' : '' ?>><?= tr('hdl_filter_all') ?></option> <option value="all" <?= $selectedYear === 'all' ? 'selected' : '' ?>><?= tr('hdl_filter_all') ?></option>
<?php foreach($availableYears as $yr): ?> <?php foreach($availableYears as $yr): ?>
<option value="<?= $yr ?>" <?= (string)$selectedYear === (string)$yr ? 'selected' : '' ?>><?= tr('hdl_filter_year') ?> <?= $yr ?></option> <option value="<?= $yr ?>" <?= (string)$selectedYear === (string)$yr ? 'selected' : '' ?>><?= tr('hdl_filter_year') ?> <?= $yr ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<div style="background:#fff1f2; color:#be123c; padding:6px 12px; border-radius:8px; font-weight:bold; border:1px solid #fecdd3; font-size:0.9rem; display:flex; align-items:center; gap:8px;"> <div class="hol-badge-left-to-pay">
<span>⏳ <?= tr('hdl_left_to_pay_label') ?> (<?= $selectedYear === 'all' ? tr('hdl_filter_all') : $selectedYear ?>) :</span> <span>⏳ <?= tr('hdl_left_to_pay_label') ?> (<?= $selectedYear === 'all' ? tr('hdl_filter_all') : $selectedYear ?>) :</span>
<span style="font-size:1rem;"><?= number_format($globalLeftToPay, 0, ',', ' ') ?> €</span> <span class="hol-badge-amount"><?= number_format($globalLeftToPay, 0, ',', ' ') ?> €</span>
</div> </div>
</div> </div>
<div>
<button class="pf-btn" onclick="openHolidayModal('add')" style="margin:0;">+ <?= tr('hdl_btn_create') ?></button>
</div>
</div> </div>
<div class="hol-actions-group">
<button class="pf-btn hol-add-btn" onclick="openHolidayModal('add')">+ <?= tr('hdl_btn_create') ?></button>
</div>
</div>
<section class="pf-section"> <section class="pf-section">
<div class="hol-ideas-grid"> <div class="hol-ideas-grid">
<?php if (empty($active)): ?> <?php if (empty($active)): ?>