Auto-commit for deploy to production - 2026-04-20 11:40:09
This commit is contained in:
@@ -37,29 +37,66 @@ body.no-scroll {
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
/* --- 2. EN-TÊTE --- */
|
||||
/* --- 2. EN-TÊTE (Refonte Responsive) --- */
|
||||
.pf-holidays__titlebar {
|
||||
background: transparent;
|
||||
padding-bottom: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
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-weight: 800;
|
||||
color: #0f172a;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hol-title-actions {
|
||||
.hol-filters-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
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 --- */
|
||||
@@ -457,7 +494,23 @@ body.no-scroll {
|
||||
@media (max-width: 768px) {
|
||||
.pf-holidays__titlebar {
|
||||
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 */
|
||||
@@ -466,6 +519,12 @@ body.no-scroll {
|
||||
flex-direction: column; /* Essentiel pour que les boutons width: 100% ne s'écrasent pas */
|
||||
gap: 10px;
|
||||
}
|
||||
.hol-actions-group .hol-add-btn {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
padding: 12px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.hol-add-btn,
|
||||
.hol-map-toggle {
|
||||
width: 100%;
|
||||
@@ -517,10 +576,16 @@ body.no-scroll {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.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 {
|
||||
|
||||
@@ -42,28 +42,30 @@ foreach ($active as $h) {
|
||||
?>
|
||||
|
||||
<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 style="display:flex; align-items:center; gap:15px; flex-wrap:wrap;">
|
||||
<h1 style="margin:0;"><?= 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="pf-holidays__titlebar">
|
||||
<div class="hol-title-group">
|
||||
<h1 class="hol-main-title"><?= tr('hdl_main_title') ?> ✈️</h1>
|
||||
|
||||
<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>
|
||||
<?php foreach($availableYears as $yr): ?>
|
||||
<option value="<?= $yr ?>" <?= (string)$selectedYear === (string)$yr ? 'selected' : '' ?>><?= tr('hdl_filter_year') ?> <?= $yr ?></option>
|
||||
<?php endforeach; ?>
|
||||
</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 style="font-size:1rem;"><?= number_format($globalLeftToPay, 0, ',', ' ') ?> €</span>
|
||||
<span class="hol-badge-amount"><?= number_format($globalLeftToPay, 0, ',', ' ') ?> €</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button class="pf-btn" onclick="openHolidayModal('add')" style="margin:0;">+ <?= tr('hdl_btn_create') ?></button>
|
||||
</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">
|
||||
<div class="hol-ideas-grid">
|
||||
<?php if (empty($active)): ?>
|
||||
|
||||
Reference in New Issue
Block a user