From 975e028321d48acf1fdff72832320f9982b1e2d5 Mon Sep 17 00:00:00 2001 From: Eben Eliason Date: Tue, 18 Jan 2022 14:22:24 -0800 Subject: [PATCH] [APT-1651] Hide-navbar-when-scrolling --- docusaurus.config.js | 1 + src/css/custom.css | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 8eee4028b1..3757130a47 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -80,6 +80,7 @@ const config = { src: "img/logo-dark.png", srcDark: "img/logo-light.png", }, + hideOnScroll: true, items: [ { type: "doc", diff --git a/src/css/custom.css b/src/css/custom.css index 7eef8022f0..97ca1c3b2c 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -125,6 +125,13 @@ p > img + em { justify-items: center; } +/* Sidebar logo adjustments to match above, overriding values set in DocSidebar module */ +aside a > img { + margin: auto; + margin-right: auto !important; + height: 2.5rem !important; +} + @media only screen and (max-width: 996px) { .navbar__brand { border-right: none; @@ -134,6 +141,7 @@ p > img + em { .navbar__logo { height: 2.5rem; margin-top: 0.5rem; + margin-right: 0; } .navbar {