Merge pull request #1029 from slumbering/hide-navbar

hide navbar on scroll
This commit is contained in:
Sam Alba 2021-10-04 16:08:21 -07:00 committed by GitHub
commit 21eef61983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 2 deletions

View File

@ -51,6 +51,7 @@ module.exports = {
className: "button", className: "button",
}, },
], ],
hideOnScroll: true
}, },
algolia: { algolia: {
apiKey: "559dcddb4378b889baa48352394616ec", apiKey: "559dcddb4378b889baa48352394616ec",

View File

@ -62,7 +62,7 @@ $desktop-xl-width: 1160px;
--ifm-menu-color-background-hover: #fdf9d7; --ifm-menu-color-background-hover: #fdf9d7;
--ifm-menu-color-background-active: var(--ifm-menu-color-background-hover); --ifm-menu-color-background-active: var(--ifm-menu-color-background-hover);
--ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M3.318 9.128a24.776 24.776 0 004.224-3.993.842.842 0 011.32.026c1.227 1.618 2.107 3.387 3.831 4.556.889.6-.159 1.9-1.044 1.3A14.369 14.369 0 018.14 7a30.457 30.457 0 01-3.829 3.463c-.845.671-1.834-.67-.993-1.335z" fill="%23131226" /></svg>'); --ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M3.318 9.128a24.776 24.776 0 004.224-3.993.842.842 0 011.32.026c1.227 1.618 2.107 3.387 3.831 4.556.889.6-.159 1.9-1.044 1.3A14.369 14.369 0 018.14 7a30.457 30.457 0 01-3.829 3.463c-.845.671-1.834-.67-.993-1.335z" fill="%23131226" /></svg>');
--ifm-navbar-height: 7rem; --ifm-navbar-height: 6rem;
--ifm-navbar-background-color: var(--ifm-color-primary-dark); --ifm-navbar-background-color: var(--ifm-color-primary-dark);
--ifm-navbar-padding-vertical: 0; --ifm-navbar-padding-vertical: 0;
--ifm-pagination-nav-border-radius: 0; --ifm-pagination-nav-border-radius: 0;
@ -246,7 +246,7 @@ h1[class^="h1Heading"] {
.navbar__brand { .navbar__brand {
height: 3rem; height: 3rem;
@include desktop { @include desktop {
height: 7rem; height: var(--ifm-navbar-height);
} }
} }
@ -320,6 +320,19 @@ h1[class^="h1Heading"] {
} }
} }
a[class^="sidebarLogo"] {
img {
display: none !important;
}
background: url("/img/dagger-logo-dark.png") no-repeat left center;
background-size: contain;
html[data-theme="dark"] & {
background: url("/img/dagger-logo.png") no-repeat left center;
background-size: contain;
}
}
/* main */ /* main */
.main-wrapper { .main-wrapper {
align-self: center; align-self: center;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB