Skip to content

Commit

Permalink
feat(core): add overlay transition to header menus
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Jul 19, 2023
1 parent ef5e081 commit 2f64346
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions resources/skins.citizen.styles/components/Header.less
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,32 @@
.citizen-header__button {
contain: initial;

~ .citizen-header__button {
&::before {
position: fixed;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
visibility: hidden;
pointer-events: none;
width: auto;
height: auto;
transition: var( --transition-menu );
transition-property: opacity;
background-color: var( --background-color-overlay );
content: '';
}
}

&[ aria-expanded='true' ] {
~ .citizen-header__button {
&::before {
position: fixed;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: auto;
height: auto;
background-color: var( --background-color-overlay );
content: '';
opacity: 1;
visibility: visible;
pointer-events: auto;
}
}
}
Expand Down

0 comments on commit 2f64346

Please sign in to comment.