Newer
Older
position: fixed
left: 0
transition: transform $header-sticky-transition, background $header-sticky-transition
top: 0
width: 100%
@include media-breakpoint-down(desktop)
.dropdown-menu
transition: background $header-sticky-transition
&.is-sticky, html.has-menu-opened &
background: $header-sticky-background
color: $header-sticky-color
.menu
a,
a:hover,
a:focus,
color: inherit
@if $header-sticky-invert-logo
.logo
img, .logo-text
filter: invert(1)
@include media-breakpoint-up(desktop)
.dropdown-menu
background: $header-sticky-dropdown-background
color: $header-sticky-dropdown-color
&.is-sticky
.pagefind-ui__toggle
color: $header-sticky-color
@include media-breakpoint-down(desktop)
@include media-breakpoint-up(desktop)
@if $header-sticky-invert-logo
transition: filter $header-sticky-transition
@include media-breakpoint-up(desktop)
@include media-breakpoint-down(desktop)
html.has-menu-opened &
// TODO : Est-ce au bon endroit ?
body
&::after
@include inset(0)
background-color: $body-overlay-color
content: ""
pointer-events: none
position: fixed
opacity: 0
transition: opacity $header-transition
z-index: $zindex-body-overlay
html.has-menu-opened &,
overflow: hidden
height: 100%
min-height: -webkit-fill-available
&::after
display: block
opacity: 1
pointer-events: inherit
html.has-modal-opened &
&::after
z-index: $zindex-modal - 1
html.is-animating:not(.has-menu-opened) &
&::after
display: block
opacity: 0
@include media-breakpoint-up(desktop)
padding-top: $header-nav-padding-y-desktop
padding-bottom: $header-nav-padding-y-desktop
align-items: center
display: flex
flex-wrap: wrap
justify-content: space-between
@include button-reset
display: none
border: 0
color: inherit
padding: 0
position: relative
&:focus
box-shadow: none
&:focus-visible
outline-color: gray
outline-offset: 5px
outline-style: dashed
outline-width: 1px
@include media-breakpoint-down(desktop)
display: flex
align-items: center
@include icon-block(menu-line, before)
content: map-get($icons, "close-line")