From f8cfa5e6e3ae74b84bb94ca3f982554709d2f7d0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 10 Feb 2022 19:15:21 +0100 Subject: chore: improve widgets * Make all widgets expanded by default. This way, without Javascript, thematics and topics are still available. * Improve collapse/expand transition. * Remove widget scrollbar: the height was sometimes weird because of that. Except for ToC on large devices. --- src/components/Sidebar/Sidebar.module.scss | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/components/Sidebar/Sidebar.module.scss') diff --git a/src/components/Sidebar/Sidebar.module.scss b/src/components/Sidebar/Sidebar.module.scss index 18291b6..f79cacf 100644 --- a/src/components/Sidebar/Sidebar.module.scss +++ b/src/components/Sidebar/Sidebar.module.scss @@ -31,13 +31,11 @@ display: flex; flex-flow: column; justify-content: flex-start; - max-height: 100vh; @include mix.media("screen") { @include mix.dimensions("md") { align-self: flex-start; width: 100%; - max-height: calc(100vh - (var(--spacing-xs) * 2)); position: sticky; top: var(--spacing-xs); } -- cgit v1.2.3