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 %} + +