Skip to content

Commit 2cbaa02

Browse files
authored
[APT-1651] Hide-navbar-when-scrolling (#140)
1 parent 58aabf1 commit 2cbaa02

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const config = {
8080
src: "img/logo-dark.png",
8181
srcDark: "img/logo-light.png",
8282
},
83+
hideOnScroll: true,
8384
items: [
8485
{
8586
type: "doc",

src/css/custom.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,23 @@ p > img + em {
125125
justify-items: center;
126126
}
127127

128+
/* Sidebar logo adjustments to match above, overriding values set in DocSidebar module */
129+
aside a > img {
130+
margin: auto;
131+
margin-right: auto !important;
132+
height: 2.5rem !important;
133+
}
134+
135+
@media only screen and (max-width: 996px) {
136+
.navbar__brand {
137+
border-right: none;
138+
}
139+
}
140+
128141
.navbar__logo {
129142
height: 2.5rem;
130143
margin-top: 0.5rem;
144+
margin-right: 0;
131145
}
132146

133147
.navbar {

0 commit comments

Comments
 (0)