forked from FroSteel/Planification
Version 5.0.9 — Stabilisation série 5.0
This commit is contained in:
+493
-1
@@ -1816,16 +1816,87 @@ body.modal-open {
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.18);
|
||||
/* Pas de contain: layout (hérité) car ça limite le rendu ; on laisse */
|
||||
animation: pinned-popup-in 0.15s ease-out;
|
||||
/* Le padding-top est augmenté pour accueillir la barre de drag. */
|
||||
padding-top: 28px !important;
|
||||
}
|
||||
@keyframes pinned-popup-in {
|
||||
from { opacity: 0; transform: scale(0.96); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
/* v4.3.3 : animation de sortie (symétrique à l'apparition) quand on
|
||||
désépingle. Appliquée par la classe .unpinning. */
|
||||
.tooltip.pinned-popup.unpinning,
|
||||
.tooltip.soft-unpinned.unpinning {
|
||||
animation: pinned-popup-out 0.18s ease-in forwards !important;
|
||||
}
|
||||
@keyframes pinned-popup-out {
|
||||
from { opacity: 1; transform: scale(1); }
|
||||
to { opacity: 0; transform: scale(0.94); }
|
||||
}
|
||||
|
||||
/* v4.3.3 corr : quand une popup est désépinglée "mou", elle perd son look
|
||||
"épinglé" et redevient un tooltip normal visuellement, tout en gardant
|
||||
sa position absolute (pour ne pas sauter). */
|
||||
.tooltip.soft-unpinned {
|
||||
position: absolute !important;
|
||||
z-index: 5 !important;
|
||||
opacity: 1 !important;
|
||||
pointer-events: auto !important;
|
||||
/* Pas de bordure bleue, pas de padding-top (plus de dragbar), juste les
|
||||
styles de base du tooltip (hérités de .tooltip). */
|
||||
border: 1px solid var(--border-strong) !important;
|
||||
box-shadow: var(--shadow-hover) !important;
|
||||
padding-top: 12px !important;
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
/* v4.3.3 : Barre de drag en haut de la popup épinglée, permet de la
|
||||
déplacer (le contenu lui-même garde la sélection de texte possible). */
|
||||
.pinned-popup-dragbar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 22px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
var(--bg-muted, rgba(128,128,128,0.08)) 0%,
|
||||
transparent 100%
|
||||
);
|
||||
border-bottom: 1px solid var(--border, rgba(128,128,128,0.15));
|
||||
border-radius: 6px 6px 0 0;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
.pinned-popup-dragbar:active,
|
||||
.pinned-popup.dragging .pinned-popup-dragbar {
|
||||
cursor: grabbing;
|
||||
}
|
||||
/* Petite grippe visuelle au milieu pour signaler que c'est déplaçable */
|
||||
.pinned-popup-dragbar::before {
|
||||
content: "";
|
||||
width: 32px;
|
||||
height: 3px;
|
||||
border-radius: 3px;
|
||||
background: var(--border-strong, rgba(128,128,128,0.35));
|
||||
}
|
||||
/* Pendant le drag, on fige l'animation pour éviter les tremblements */
|
||||
.pinned-popup.dragging {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
cursor: grabbing !important;
|
||||
box-shadow: 0 12px 32px rgba(0,0,0,0.28);
|
||||
}
|
||||
|
||||
/* Bouton × de fermeture du popup épinglé */
|
||||
.pinned-popup-close {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
top: 3px;
|
||||
right: 6px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
@@ -1839,8 +1910,429 @@ body.modal-open {
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background 0.1s, color 0.1s;
|
||||
z-index: 2; /* au-dessus de la dragbar */
|
||||
}
|
||||
.pinned-popup-close:hover {
|
||||
background: var(--danger-soft, #fbe6e6);
|
||||
color: var(--danger, #b03030);
|
||||
}
|
||||
|
||||
/* ─────────────────────────────────────────────────────────────────────────
|
||||
v5.0.0 : horloge au milieu de la topbar (HH:MM, pas de secondes)
|
||||
───────────────────────────────────────────────────────────────────────── */
|
||||
.app-clock {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--text);
|
||||
letter-spacing: 1px;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
.topbar { position: sticky; /* déja défini plus haut */ }
|
||||
/* topbar doit être en position: relative parent pour que .app-clock absolute
|
||||
se positionne par rapport à elle */
|
||||
header.topbar { position: sticky !important; }
|
||||
header.topbar::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ─────────────────────────────────────────────────────────────────────────
|
||||
v5.0.0 : ligne rouge "heure actuelle" sur la timeline (uniquement si on
|
||||
affiche la date d'aujourd'hui). v5.0.1 : plus visible.
|
||||
───────────────────────────────────────────────────────────────────────── */
|
||||
.timeline-now-line {
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
bottom: -2px;
|
||||
width: 4px;
|
||||
background: #ff3030;
|
||||
z-index: 5;
|
||||
pointer-events: none;
|
||||
box-shadow: 0 0 6px rgba(255, 48, 48, 0.8),
|
||||
0 0 2px rgba(255, 48, 48, 1);
|
||||
border-radius: 2px;
|
||||
margin-left: -2px; /* centre la barre sur la position exacte */
|
||||
}
|
||||
.timeline-now-line::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: #ff3030;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 8px rgba(255, 48, 48, 0.9);
|
||||
}
|
||||
|
||||
/* ─────────────────────────────────────────────────────────────────────────
|
||||
v5.0.0 : Panel admin (menu caché 5 clics sur titre)
|
||||
───────────────────────────────────────────────────────────────────────── */
|
||||
.admin-overlay {
|
||||
/* hérite de .modal-overlay */
|
||||
align-items: flex-start;
|
||||
padding: 30px 20px;
|
||||
}
|
||||
.admin-panel-card {
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
width: 100%;
|
||||
max-width: 1100px;
|
||||
height: calc(100vh - 60px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 12px 40px rgba(0,0,0,0.3);
|
||||
overflow: hidden;
|
||||
}
|
||||
.admin-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 12px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg);
|
||||
}
|
||||
.admin-title {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.admin-close-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
padding: 4px 10px;
|
||||
color: var(--text-muted);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.admin-close-btn:hover {
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
}
|
||||
.admin-body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
.admin-sidebar {
|
||||
width: 180px;
|
||||
background: var(--bg);
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 10px 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.admin-nav-btn {
|
||||
text-align: left;
|
||||
padding: 10px 18px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: var(--text);
|
||||
border-left: 3px solid transparent;
|
||||
transition: background 0.12s, border-color 0.12s;
|
||||
}
|
||||
.admin-nav-btn:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
.admin-nav-btn.active {
|
||||
background: var(--bg-elevated);
|
||||
border-left-color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
.admin-content {
|
||||
flex: 1;
|
||||
padding: 20px 24px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.admin-section-title {
|
||||
margin: 0 0 8px 0;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.admin-section-desc {
|
||||
margin: 0 0 16px 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.admin-team-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.admin-team-table th,
|
||||
.admin-team-table td {
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.admin-team-table th {
|
||||
background: var(--bg);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.admin-input {
|
||||
width: 100%;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.admin-input-id {
|
||||
font-family: var(--mono);
|
||||
max-width: 100px;
|
||||
}
|
||||
.admin-day-cb {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
margin-right: 6px;
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.admin-day-cb input[type="checkbox"] {
|
||||
margin: 0 2px 0 0;
|
||||
}
|
||||
.admin-del-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
color: var(--text-muted);
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.admin-del-btn:hover {
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
}
|
||||
.admin-readonly {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 12px;
|
||||
font-family: var(--mono);
|
||||
font-size: 12px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.admin-diag-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 200px 1fr;
|
||||
gap: 8px 16px;
|
||||
margin: 16px 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.admin-diag-grid > div {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
/* ─────────────────────────────────────────────────────────────────────────
|
||||
v5.0.0 : bouton supprimer dans le tooltip (absence / réservation)
|
||||
───────────────────────────────────────────────────────────────────────── */
|
||||
.tooltip-delete-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 10px;
|
||||
background: var(--danger-soft, #fbe6e6);
|
||||
border: 1px solid var(--danger, #b03030);
|
||||
color: var(--danger, #b03030);
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.tooltip-delete-btn:hover:not(:disabled) {
|
||||
background: var(--danger, #b03030);
|
||||
color: #fff;
|
||||
}
|
||||
.tooltip-delete-btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
/* Bouton danger dans les modals */
|
||||
.btn-danger,
|
||||
.modal-btn-danger {
|
||||
background: var(--danger, #b03030);
|
||||
color: #fff;
|
||||
border: 1px solid var(--danger, #b03030);
|
||||
}
|
||||
.btn-danger:hover,
|
||||
.modal-btn-danger:hover {
|
||||
background: #8e2020;
|
||||
}
|
||||
|
||||
/* v5.0.1 : ligne d'équipe exclue (pas cochée) - apparaît grisée */
|
||||
.admin-team-table tr.admin-row-excluded {
|
||||
opacity: 0.45;
|
||||
}
|
||||
.admin-team-table tr.admin-row-excluded input[type="text"] {
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
/* v5.0.1 : bouton supprimer sur la carte "Absent toute la journée" */
|
||||
.absence-delete-wrap {
|
||||
margin-top: 8px;
|
||||
text-align: center;
|
||||
}
|
||||
.absence-delete-wrap .tooltip-delete-btn {
|
||||
font-size: 11px;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
/* v5.0.4 : boutons preset matin / après-midi / journée dans modal absence */
|
||||
.modal-preset-row {
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.modal-preset-btn {
|
||||
flex: 1;
|
||||
min-width: 100px;
|
||||
padding: 8px 10px;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
v5.0.9 : Compteur de session EasyVista (topbar)
|
||||
========================================================================== */
|
||||
|
||||
.app-session {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: calc(50% + 60px); /* à droite de l'horloge (~60px de décalage) */
|
||||
transform: translateY(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-variant-numeric: tabular-nums;
|
||||
z-index: 9;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
transition: background 0.3s, color 0.3s;
|
||||
}
|
||||
.app-session.hidden {
|
||||
display: none;
|
||||
}
|
||||
.app-session .session-icon {
|
||||
font-size: 14px;
|
||||
}
|
||||
.app-session .session-time {
|
||||
font-weight: 600;
|
||||
}
|
||||
.app-session .session-extend-btn {
|
||||
margin-left: 4px;
|
||||
padding: 3px 8px;
|
||||
font-size: 11px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid currentColor;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.app-session .session-extend-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
.app-session .session-extend-btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* État warning (2-5 min) : jaune */
|
||||
.app-session.session-warn {
|
||||
background: #f5c518;
|
||||
color: #2a2100;
|
||||
}
|
||||
.app-session.session-warn .session-extend-btn {
|
||||
border-color: #2a2100;
|
||||
}
|
||||
|
||||
/* État critical (< 2 min) : rouge + pulse */
|
||||
.app-session.session-critical {
|
||||
background: #e74c3c;
|
||||
color: #fff;
|
||||
animation: session-pulse 1s infinite;
|
||||
}
|
||||
.app-session.session-critical .session-extend-btn {
|
||||
border-color: #fff;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
font-weight: 600;
|
||||
}
|
||||
.app-session.session-critical .session-extend-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
@keyframes session-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
|
||||
50% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
|
||||
}
|
||||
|
||||
/* Bouton "Me reconnecter" dans la bannière session expirée */
|
||||
.session-expired-reconnect-btn {
|
||||
margin-left: 12px;
|
||||
padding: 6px 14px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: #c0392b;
|
||||
border: none;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.session-expired-reconnect-btn:hover {
|
||||
background: #f8d7da;
|
||||
}
|
||||
|
||||
/* Bannière "Reconnexion en cours" */
|
||||
.banner-reconnecting {
|
||||
background: #3498db;
|
||||
color: #fff;
|
||||
padding: 10px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.banner-reconnecting.hidden {
|
||||
display: none;
|
||||
}
|
||||
.banner-reconnecting .banner-spinner {
|
||||
font-size: 16px;
|
||||
animation: spin-slow 2s linear infinite;
|
||||
}
|
||||
@keyframes spin-slow {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user