File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/docusaurus-theme-classic/src/theme Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1818}
1919
2020.navbarHideable {
21- transition : top 0.2s ease-in-out;
21+ transform : translate3d (0 , 0 , 0 );
22+ transition : transform var (--ifm-transition-fast ) ease;
2223}
2324
2425.navbarHidden {
25- top : calc (var (--ifm-navbar-height ) * -1 ) !important ;
26+ transform : translate3d ( 0 , calc (var (--ifm-navbar-height ) * -1 ), 0 ) ;
2627}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {useHideableNavbarReturns} from '@theme/hooks/useHideableNavbar';
1212
1313const useHideableNavbar = ( hideOnScroll : boolean ) : useHideableNavbarReturns => {
1414 const location = useLocation ( ) ;
15- const [ isNavbarVisible , setIsNavbarVisible ] = useState ( ! hideOnScroll ) ;
15+ const [ isNavbarVisible , setIsNavbarVisible ] = useState ( hideOnScroll ) ;
1616 const isFocusedAnchor = useRef ( false ) ;
1717 const [ lastScrollTop , setLastScrollTop ] = useState ( 0 ) ;
1818 const [ navbarHeight , setNavbarHeight ] = useState ( 0 ) ;
You can’t perform that action at this time.
0 commit comments