diff --git a/client/css/style.css b/client/css/style.css index fc3f6053..f31e130a 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -2273,20 +2273,43 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ height: 100%; position: absolute; left: -220px; - z-index: 1; - transition: transform 160ms; + z-index: 2; + transition: transform 160ms, box-shadow 0.2s; transform: translateZ(0); } + #sidebar-overlay { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + background: rgba(0, 0, 0, 0.5); + pointer-events: none; + opacity: 0; + transition: opacity 160ms; + z-index: 1; + } + + #viewport.menu-open #sidebar-overlay { + opacity: 1; + } + #viewport.menu-open #sidebar { display: flex; transform: translate3d(220px, 0, 0); } + #viewport.menu-dragging #sidebar-overlay, #viewport.menu-dragging #sidebar { transition: none !important; } + #viewport.menu-open #sidebar, + #viewport.menu-dragging #sidebar { + box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.5); + } + #viewport.menu-open .messages { pointer-events: none; } diff --git a/client/index.html.tpl b/client/index.html.tpl index cccd17cf..86f9cd7f 100644 --- a/client/index.html.tpl +++ b/client/index.html.tpl @@ -44,6 +44,7 @@ +