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
@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
li.has-children
a[aria-expanded="true"] + .dropdown-menu
animation-duration: $header-dropdown-transition
animation-fill-mode: both
animation-name: showIn
> li
&,
& > a,
& > span
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
flex-grow: 1
display: block
a
text-decoration: none
.nav-level-1
li
a
padding: 1rem 0
> li:not(:last-child)
border-bottom: 1px solid #adb5bd
li.has-children
a[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
a[aria-expanded=true]
@include icon("caret-top", after)
body
&::after
background-color: $body-overlay-color
content: ""
display: none
inset: 82px 0 0 0
position: fixed
z-index: $zindex-body-overlay
html.has-menu-opened &
&::after
display: block
animation-duration: $header-dropdown-transition
animation-fill-mode: both
animation-name: showIn
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
.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