From 199417192a3a3c0c511f4f952510390d560bd52d Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 4 Jun 2022 18:57:49 +0200 Subject: [PATCH 1/2] Make flyout menu scrollable --- src/sass/_theme_badge.sass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sass/_theme_badge.sass b/src/sass/_theme_badge.sass index b24ec10f4..e0b37563b 100644 --- a/src/sass/_theme_badge.sass +++ b/src/sass/_theme_badge.sass @@ -35,8 +35,9 @@ color: $black &.shift-up height: auto - max-height: 100% - overflow-y: scroll + max-height: calc(100vh - 50px) + overflow-y: auto + overscroll-behavior: contain &.shift-up .rst-other-versions display: block .rst-other-versions @@ -74,6 +75,8 @@ line-height: 30px &.shift-up .rst-current-version text-align: right + position: sticky + top: 0 .fa-book float: left .icon-book From e66e4b13607b3a9f37c32e90da0c2c922f538427 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 8 Jun 2022 20:10:20 +0200 Subject: [PATCH 2/2] Change "bottom" of badge to 50px ... ... because it will be overwritten by readthedocs-doc-embed.css anyway. --- src/sass/_theme_badge.sass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sass/_theme_badge.sass b/src/sass/_theme_badge.sass index e0b37563b..a85746cc6 100644 --- a/src/sass/_theme_badge.sass +++ b/src/sass/_theme_badge.sass @@ -61,7 +61,7 @@ color: $section-background-color &.rst-badge width: auto - bottom: 20px + bottom: 50px right: 20px left: auto border: none