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
a,
a:hover,
a:focus,
a:active
color: $header-color
ul
display: flex
list-style: none
margin: 0
padding: 0
a,
span
font-size: px2rem(18)
line-height: px2rem(26)
color: $header-color
cursor: pointer
transition: text-decoration 0.15s
&:not(:hover)
text-decoration-color: transparent
&[aria-expanded]
@include icon('caret', 'after')
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
.dropdown-menu
display: none
background: $header-background-color
@include media-breakpoint-up(md)
inset: 100% 0 auto 0
position: absolute
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
a,
span
font-size: px2rem(14)
@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
background-color: $body-overlay-color
content: ""
opacity: 0
visibility: hidden
transition: opacity $header-transition
html.has-menu-opened &
&::after
display: block
opacity: 1
pointer-events: inherit
visibility: inherit
html.is-animating:not(.has-menu-opened) &
&::after
display: block
visibility: inherit
opacity: 0
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
.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
padding: 0.75rem
&:hover
opacity: 0.7
&::after
content: none
&:last-child
margin-right: -0.75rem
span
display: none
vertical-align: middle
// .dropdown-share
// @extend .dropdown
// > button
// @extend .btn
// @extend .btn-lg
// @extend .btn-outline-light
// &::after
// @include icon
// content: map-get($icons, "social")
// margin-left: px2rem(10)
// .dropdown-menu
// padding: 0
// .share
// li
// margin: 0
// a
// @extend .dropdown-item
// color: $body-color