diff --git a/config.toml b/config.toml index 818b705..6e786ec 100644 --- a/config.toml +++ b/config.toml @@ -125,8 +125,6 @@ csp = [ ] [extra.nav] -# Whether to automatically hide nav when not hovered or focused -# auto_hide = true # Whether to show the Atom/RSS feed button in the nav show_feed = true # Whether to show the link to the source repository in the nav diff --git a/sass/_nav.scss b/sass/_nav.scss index a1a541e..a830f84 100644 --- a/sass/_nav.scss +++ b/sass/_nav.scss @@ -1,67 +1,3 @@ -#handle { - position: fixed; - z-index: 999; - transition: var(--transition); - margin: 0 auto; - inset-block-start: 0; - inset-inline-end: 0; - inset-inline-start: 0; - width: min(var(--container-width), 90%); - height: 4.25rem; - - &::before { - position: absolute; - transition: var(--transition); - margin: 0 auto; - inset-block-start: 0.5rem; - inset-inline-end: 0; - inset-inline-start: 0; - box-shadow: var(--edge-highlight); - border-radius: 999px; - background-color: var(--accent-color); - width: min(calc(var(--container-width) / 4), 100%); - height: 0.5rem; - content: ""; - } - - &:hover::before, - &:has(+ #site-nav:hover)::before, - &:has(+ #site-nav *:focus-visible, + #site-nav *:focus)::before { - transform: translateY(-1rem) scale(0.5); - opacity: 0; - } - - &:hover + #site-nav, - & + #site-nav:hover, - & + #site-nav:has(*:focus-visible, *:focus) { - transform: none; - opacity: 1; - pointer-events: auto; - - &::before { - -webkit-backdrop-filter: var(--blur); - backdrop-filter: var(--blur); - } - } - - & + #site-nav { - position: fixed; - transform: translateY(-1rem) scale(0.5); - transform-origin: top; - opacity: 0; - transition: var(--transition); - margin: 0 auto; - width: max-content; - pointer-events: none; - - &::before { - -webkit-backdrop-filter: saturate(1) blur(0); - backdrop-filter: saturate(1) blur(0); - transition: var(--transition); - } - } -} - #site-nav { grid-area: nav; margin: 1rem auto 0; diff --git a/templates/partials/nav.html b/templates/partials/nav.html index caecb06..c56bc19 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -1,8 +1,5 @@ {%- set rel_attributes = macros_rel_attributes::rel_attributes() | trim -%} -{%- if config.extra.nav.auto_hide %} -
-{%- endif %}