mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +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;
|
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
|
// Transition animation
|
||||||
.citizen-card-transition() {
|
.citizen-card-transition() {
|
||||||
transition: @transition-transform, @transition-opacity--transform, @transition-visibility--transform;
|
transition: @transition-transform, @transition-opacity--transform, @transition-visibility--transform;
|
||||||
|
|
|
@ -110,10 +110,7 @@
|
||||||
.citizen-card-show();
|
.citizen-card-show();
|
||||||
|
|
||||||
.citizen-typeahead-suggestion {
|
.citizen-typeahead-suggestion {
|
||||||
opacity: 1;
|
.citizen-card-content-show;
|
||||||
// Fade content when users open the menu
|
|
||||||
// And GTFO instantly when they close the menu
|
|
||||||
transition: @transition-opacity--transform;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,10 +47,7 @@
|
||||||
#mw-drawer {
|
#mw-drawer {
|
||||||
&-header,
|
&-header,
|
||||||
&-menu {
|
&-menu {
|
||||||
opacity: 1;
|
.citizen-card-content-show;
|
||||||
// Fade content when users open the menu
|
|
||||||
// And GTFO instantly when they close the menu
|
|
||||||
transition: @transition-opacity--transform;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue