Newer
Older
border-bottom: $header-border-bottom-width solid $color-border
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,
a:active
color: inherit
a:not(:hover)
text-decoration-color: transparent
@if $header-sticky-invert-logo
.logo img
filter: invert(1)
@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 &,
html.has-offcanvas-opened &
&::after
display: block
opacity: 1
pointer-events: inherit
html.has-offcanvas-opened &
&::after
z-index: $zindex-header + 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
.container
align-items: center
display: flex
flex-wrap: wrap
justify-content: space-between
button[type="button"]
@include button-reset
display: none
border: 0
color: inherit
padding: 0
position: relative
@include media-breakpoint-down(desktop)
display: flex
align-items: center
&:focus
box-shadow: none
&:focus-visible
outline-color: gray
outline-offset: 5px
outline-style: dashed
outline-width: 1px
span:first-of-type
@include meta
display: block
padding: half($spacing0) 0 half($spacing0) half($spacing0)
line-height: 1
@include icon("burger", before, 11px)
vertical-align: baseline
&[aria-expanded="true"]
span:last-of-type
&::before
content: map-get($icons, "close")