mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-16 05:27:06 +02:00
feat: add navbar shadow effect on scroll
This commit is contained in:
parent
d71178ab29
commit
b7e765a410
@ -57,6 +57,8 @@ const config = {
|
||||
},
|
||||
},
|
||||
navbar: {
|
||||
/* because we can't add a .scrolled class to docusaurus on scroll, we're abusing hide on scroll */
|
||||
hideOnScroll: true,
|
||||
logo: {
|
||||
alt: 'ReVanced Logo',
|
||||
target: '_self',
|
||||
|
@ -45,6 +45,13 @@
|
||||
padding: 0 2.5rem;
|
||||
}
|
||||
|
||||
/* because we can't add a .scrolled class to docusaurus on scroll, we're abusing hide on scroll */
|
||||
.navbarHidden_node_modules-\@docusaurus-theme-classic-lib-theme-Navbar-Layout-styles-module {
|
||||
transform: none !important;
|
||||
box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12),
|
||||
0px 2px 4px -1px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.navbar__items {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user