From d93a419c1974e8345bf06ede17fe34cc8b4bb874 Mon Sep 17 00:00:00 2001 From: Nathan Boiron Date: Tue, 5 May 2026 22:33:20 +0200 Subject: [PATCH] Ajout d'un bouton pour rendre le menu admin pliable --- templates/admin/base_with_header.html.twig | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/templates/admin/base_with_header.html.twig b/templates/admin/base_with_header.html.twig index 21e7fe8af..7b4e2bccc 100644 --- a/templates/admin/base_with_header.html.twig +++ b/templates/admin/base_with_header.html.twig @@ -18,12 +18,31 @@ width: 210px; height: 100%; -webkit-box-flex: 0; + transition: transform 0.2s ease; } .article { margin-left: 210px; flex: 1 1 auto; min-width: 0; + transition: margin-left 0.2s ease; + } + + .sidebar-toggle { + position: absolute; + opacity: 0; + } + + .sidebar-toggle-button { + cursor: pointer; + } + + .sidebar-toggle:checked ~ .full-height .toc { + transform: translateX(-100%); + } + + .sidebar-toggle:checked ~ .article { + margin-left: 0; } .content { @@ -83,6 +102,21 @@ {% block body %} + +