diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 84993bf1..68aa9e90 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -51,6 +51,7 @@ module.exports = { className: "button", }, ], + hideOnScroll: true }, algolia: { apiKey: "559dcddb4378b889baa48352394616ec", diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss index d420a7b5..4fcaefbe 100644 --- a/website/src/css/custom.scss +++ b/website/src/css/custom.scss @@ -62,7 +62,7 @@ $desktop-xl-width: 1160px; --ifm-menu-color-background-hover: #fdf9d7; --ifm-menu-color-background-active: var(--ifm-menu-color-background-hover); --ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,'); - --ifm-navbar-height: 7rem; + --ifm-navbar-height: 6rem; --ifm-navbar-background-color: var(--ifm-color-primary-dark); --ifm-navbar-padding-vertical: 0; --ifm-pagination-nav-border-radius: 0; @@ -246,7 +246,7 @@ h1[class^="h1Heading"] { .navbar__brand { height: 3rem; @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-wrapper { align-self: center; diff --git a/website/static/img/__dagger-logo.png b/website/static/img/__dagger-logo.png deleted file mode 100644 index 19723fb5..00000000 Binary files a/website/static/img/__dagger-logo.png and /dev/null differ diff --git a/website/static/img/dagger-logo-dark.png b/website/static/img/dagger-logo-dark.png new file mode 100755 index 00000000..de2b94c9 Binary files /dev/null and b/website/static/img/dagger-logo-dark.png differ diff --git a/website/static/img/dagger_logo_dark.png b/website/static/img/dagger_logo_dark.png deleted file mode 100644 index 033e397f..00000000 Binary files a/website/static/img/dagger_logo_dark.png and /dev/null differ