test
This commit is contained in:
@@ -135,4 +135,151 @@ html {
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
MENU UNIQUE OUVERT - STYLES AMÉLIORÉS
|
||||
============================================ */
|
||||
|
||||
/* Animation pour les sous-menus */
|
||||
@keyframes slideDown {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
max-height: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
max-height: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
max-height: 500px;
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
max-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Styles pour les sous-menus */
|
||||
.nav-submenu {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
transition: max-height 0.3s ease, opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.nav-submenu.show {
|
||||
display: block;
|
||||
animation: slideDown 0.3s ease forwards;
|
||||
}
|
||||
|
||||
.nav-submenu:not(.show) {
|
||||
animation: slideUp 0.3s ease forwards;
|
||||
}
|
||||
|
||||
/* Indicateur visuel pour le menu actif */
|
||||
.nav-link.active {
|
||||
background-color: rgba(255, 255, 255, 0.15) !important;
|
||||
color: white !important;
|
||||
font-weight: 500 !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-link.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 3px;
|
||||
height: 60%;
|
||||
background-color: white;
|
||||
border-radius: 0 2px 2px 0;
|
||||
}
|
||||
|
||||
/* Flèche du menu */
|
||||
.nav-arrow {
|
||||
transition: transform 0.3s ease;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.nav-link[aria-expanded="true"] .nav-arrow {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.nav-link[aria-expanded="false"] .nav-arrow {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
/* Hover amélioré */
|
||||
.nav-link:hover:not(.active) {
|
||||
background-color: rgba(255, 255, 255, 0.08) !important;
|
||||
}
|
||||
|
||||
/* Transition fluide pour les sous-menus actifs */
|
||||
.nav-submenu[data-parent-id].show {
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 6px;
|
||||
margin: 4px 16px 4px 16px;
|
||||
}
|
||||
|
||||
/* Élément actif dans le sous-menu */
|
||||
.nav-submenu .nav-link.active {
|
||||
background-color: rgba(255, 255, 255, 0.2) !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
RESPONSIVE - MENU MOBILE
|
||||
============================================ */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.nav-submenu.show {
|
||||
animation: slideDown 0.2s ease forwards;
|
||||
}
|
||||
|
||||
.nav-submenu:not(.show) {
|
||||
animation: slideUp 0.2s ease forwards;
|
||||
}
|
||||
|
||||
/* Masquer les sous-menus par défaut sur mobile */
|
||||
.app-sidebar:not(.mobile-open) .nav-submenu {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.app-sidebar.mobile-open .nav-submenu.show {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
ACCESSIBILITÉ AMÉLIORÉE
|
||||
============================================ */
|
||||
|
||||
.nav-link:focus {
|
||||
outline: 2px solid rgba(255, 255, 255, 0.6);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.nav-submenu .nav-link:focus {
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
/* Focus visible pour navigation clavier */
|
||||
.nav-link:focus-visible {
|
||||
outline: 3px solid rgba(255, 255, 255, 0.8);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Indicateur pour menu ouvert au clavier */
|
||||
.nav-link[aria-expanded="true"]:focus {
|
||||
background-color: rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
Reference in New Issue
Block a user