Skip to content
Snippets Groups Projects
Commit f786391e authored by alexisben's avatar alexisben
Browse files

light transition on dropdown & overlay

parent d7f2eb55
No related branches found
No related tags found
No related merge requests found
......@@ -76,9 +76,13 @@ $header-hover-color: rgba($header-color, 0.7) !default // TODO : Réflechir à p
$header-background-color: $main-background-color !default
$header-sticky-enabled: true !default
$header-sticky-transition: 0.3s !default
$header-dropdown-transition: 0.3s !default
$header-height: 61px !default
$header-height-md: 74px !default
// Navs
$body-overlay-color: rgba(0, 0, 0, 0.3) !default
// Footer
$footer-color: $main-color !default
$footer-background-color: darken($main-background-color, 2.5) !default
......
......@@ -12,14 +12,7 @@ body
&:not(.is-loaded)
*
transition-duration: 0s !important
html.has-menu-opened &
&::after
background-color: rgba(0,0,0,.3)
content: ""
display: block
inset: 82px 0 0 0
position: fixed
z-index: $zindex-body-overlay
main
// Create padding-top for fixed header under md
......
@keyframes showIn
0%
opacity: 0
100%
opacity: 1
0%
opacity: 0
.menu
@include media-breakpoint-down(md)
-webkit-flex-basis: 100vw
......@@ -49,12 +57,15 @@
li.has-children
a[aria-expanded="true"] + .dropdown-menu
display: block
animation-duration: $header-dropdown-transition
animation-fill-mode: both
animation-name: showIn
.nav-level-2
@include grid(1)
@include media-breakpoint-up(md)
@include container
@include grid(4, md)
@include grid(4, md)
> li
&,
& > a,
......@@ -100,6 +111,21 @@
+ .dropdown-menu
display: block
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
.share
display: flex
list-style: none
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment