Skip to content
Snippets Groups Projects
Commit b64bcab2 authored by Giorgio Utzeri's avatar Giorgio Utzeri
Browse files

test responsive

parent 3c7f413e
No related branches found
No related tags found
No related merge requests found
...@@ -145,24 +145,22 @@ body { ...@@ -145,24 +145,22 @@ body {
} }
@media (max-width: 991px) { @media (max-width: 991px) {
/* Lorsque la sidebar est fermée, on conserve une largeur par défaut (ici 250px) */
#sidebar { #sidebar {
width: 250px; width: 250px !important;
height: 100%; height: 100% !important;
transition: width 0.3s ease; transition: width 0.3s ease;
} }
/* Quand la sidebar est ouverte (classe "show" ajoutée par Bootstrap), elle occupe toute la fenêtre */
#sidebar.show { #sidebar.show {
width: 100vw; width: 100vw !important;
height: 100vh; height: 100vh !important;
position: fixed; position: fixed !important;
top: 0; top: 0 !important;
left: 0; left: 0 !important;
padding-top: 50px; /* Laisser de l'espace sous le bouton hamburger si nécessaire */ padding-top: 50px !important;
z-index: 1050; z-index: 1050 !important;
} }
/* Optionnel : masquer le contenu principal quand la sidebar est affichée */
.main-content { .main-content {
display: none; display: none !important;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment