mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 00:01:05 +00:00
refactor(core): merge menu content show transition into mixin
This commit is contained in:
parent
e2a6a0355c
commit
2c9a5f45ec
|
@ -31,6 +31,13 @@
|
|||
transition-delay: 0ms;
|
||||
}
|
||||
|
||||
// Fade content when users open the menu
|
||||
// But GTFO instantly when they close the menu
|
||||
.citizen-card-content-show() {
|
||||
opacity: 1;
|
||||
transition: @transition-opacity--transform;
|
||||
}
|
||||
|
||||
// Transition animation
|
||||
.citizen-card-transition() {
|
||||
transition: @transition-transform, @transition-opacity--transform, @transition-visibility--transform;
|
||||
|
|
|
@ -110,10 +110,7 @@
|
|||
.citizen-card-show();
|
||||
|
||||
.citizen-typeahead-suggestion {
|
||||
opacity: 1;
|
||||
// Fade content when users open the menu
|
||||
// And GTFO instantly when they close the menu
|
||||
transition: @transition-opacity--transform;
|
||||
.citizen-card-content-show;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -47,10 +47,7 @@
|
|||
#mw-drawer {
|
||||
&-header,
|
||||
&-menu {
|
||||
opacity: 1;
|
||||
// Fade content when users open the menu
|
||||
// And GTFO instantly when they close the menu
|
||||
transition: @transition-opacity--transform;
|
||||
.citizen-card-content-show;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue