From 5d8f2b75330ed8d7e230a03765d36fc395362544 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 8 Aug 2024 14:44:28 +0200 Subject: [PATCH] NG: attempt to fix version chooser and finetune spacing --- .../rtd/crate/sections/sidebar-secondary.html | 2 +- .../theme/rtd/crate/static/css/ng/layout.scss | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/crate/theme/rtd/crate/sections/sidebar-secondary.html b/src/crate/theme/rtd/crate/sections/sidebar-secondary.html index 97bcf27c7..fe19ddbfe 100644 --- a/src/crate/theme/rtd/crate/sections/sidebar-secondary.html +++ b/src/crate/theme/rtd/crate/sections/sidebar-secondary.html @@ -10,7 +10,7 @@ {%- endif %} - {%- if display_version %} + {%- if versions %} {% include "components/version_chooser.html" %} {%- endif %} diff --git a/src/crate/theme/rtd/crate/static/css/ng/layout.scss b/src/crate/theme/rtd/crate/static/css/ng/layout.scss index 064116862..133ca5e27 100644 --- a/src/crate/theme/rtd/crate/static/css/ng/layout.scss +++ b/src/crate/theme/rtd/crate/static/css/ng/layout.scss @@ -181,7 +181,7 @@ // More footer spacing footer { - margin-top: 4rem !important; + margin-top: 0rem !important; margin-bottom: 2em; } @@ -208,6 +208,12 @@ footer { scrollbar-width: thin; } +@media all and (max-width: 59em) { + .sb-article-container.container-fluid { + margin-top: 0px !important; + } +} + @media all and (max-width: 767px) { .sb-article-container.container-fluid { width: 100vw !important; @@ -250,12 +256,18 @@ footer { top: 0em; } +.sidebar-sticky { + padding-top: 20px; +} + .sb-main { max-width: 80em; } .sidebar-drawer { width: 100%; + height: 100%; + padding-top: 0; } .sb-article-container.container-fluid {