Newer
Older
@keyframes showIn
0%
opacity: 0
100%
opacity: 1
0%
opacity: 0
@include media-breakpoint-down(md)
-webkit-flex-basis: 100vw
display: none
flex-basis: 100vw
margin-top: 1.875rem
max-height: 70vh
overflow: auto
ul
list-style: none
margin: 0
padding: 0
a,
span
cursor: pointer
transition: text-decoration 0.15s
&:not(:hover)
text-decoration-color: transparent
&[aria-expanded]
font-size: px2rem(6)
margin-left: px2rem(5)
transition: transform 0.15s
&[aria-expanded="true"]
&::after
transform: rotate(180deg)
@include media-breakpoint-up(md)
a:hover,
a:focus
color: $header-hover-color
@include media-breakpoint-down(md)
padding-bottom: $spacing1
&:hover,
&:focus
text-decoration-color: $header-dropdown-color
padding: calc(#{$spacing0} * 0.5) $spacing0
animation-duration: $header-dropdown-transition
animation-fill-mode: both
animation-name: showIn
font-size: px2rem(16)
line-height: px2rem(26)
@include media-breakpoint-up(lg)
font-size: px2rem(18)
.nav-level-3
@include media-breakpoint-up(md)
@if $header-dropdown-full
.dropdown-menu
inset: 100% 0 auto 0
.nav-level-2
@include container
@include grid(4, md)
@else
.dropdown-menu
padding-right: $spacing0
.nav-level-2
> li > a
padding-bottom: calc(#{$spacing0}/2)
padding-top: calc(#{$spacing0}/2)
@include media-breakpoint-down(md)
&.is-opened
display: block
a, span
text-decoration: none
.nav-level-1
display: block
li
a, span
padding: 1rem 0
> li:not(:last-child)
border-bottom: 1px solid #adb5bd
li.has-children
[role="button"]
align-items: center
display: flex
justify-content: space-between
@include icon("caret-bottom", after)
&::after
font-size: .375rem
line-height: 1
.dropdown-menu
display: none
padding-top: 0
[aria-expanded=true] + .dropdown-menu
display: block
.dropdown-menu
padding-left: 0
.nav-level-2
background-color: $body-overlay-color
content: ""
html.has-offcanvas-opened &
&::after
z-index: $zindex-header + 1
html.is-animating:not(.has-menu-opened) &
&::after
display: block
opacity: 0
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
header[role="banner"]
nav[role="navigation"]
padding-bottom: $header-nav-padding-y
padding-top: $header-nav-padding-y
.container
align-items: center
display: flex
flex-wrap: wrap
justify-content: space-between
button[type="button"]
@include button-reset
display: none
border: 0
color: $body-color
padding: 0
position: relative
@include media-breakpoint-down(md)
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
font-size: px2rem(14)
text-transform: uppercase
span:last-of-type
@include icon("burger", before)
background: none
height: calc(1.063rem + .3125rem * 2)
padding: px2rem(5) 0 px2rem(5) px2rem(5)
width: calc(1.5rem + .3125rem)
&::before
font-size: px2rem(17)
vertical-align: top
&[aria-expanded="true"]
span:last-of-type
&::before
content: map-get($icons, "close")
.share
display: flex
list-style: none
margin: 0
padding: 0
li:not(:last-child)
margin-right: 1rem
a
font-size: px2rem(13)
text-decoration: none
&:hover
opacity: 0.7
&::after
content: none
span
display: none
vertical-align: middle