mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-24 10:48:46 +00:00
refactor(core): merge card content fade animation into mixin
This commit is contained in:
parent
a2577db3c8
commit
478a8396af
|
@ -13,12 +13,18 @@
|
|||
}
|
||||
|
||||
// Collaspe animation setup
|
||||
.citizen-card-hide( @position, @axis: '' ) {
|
||||
.citizen-card-hide( @position, @axis: '', @fadeChildren: true ) {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: ~'scale@{axis}( 0 )';
|
||||
transform-origin: @position;
|
||||
visibility: hidden;
|
||||
|
||||
& when ( @fadeChildren ) {
|
||||
> * {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Expand animiation setup
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
margin-top: -0.75rem;
|
||||
//border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
|
||||
.citizen-card;
|
||||
.citizen-card-hide( 50% 0, Y );
|
||||
.citizen-card-hide( 50% 0, Y, false );
|
||||
// Well this won't be loaded before .citizen-animation-ready anyways
|
||||
.citizen-card-transition();
|
||||
|
||||
|
@ -107,9 +107,5 @@
|
|||
|
||||
&--expanded {
|
||||
.citizen-card-show( false );
|
||||
|
||||
.citizen-typeahead-suggestion {
|
||||
.citizen-card-content-show;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,11 +13,6 @@
|
|||
will-change: transform;
|
||||
.citizen-card();
|
||||
.citizen-card-hide( 0 0 );
|
||||
|
||||
// For transition purpose
|
||||
> * {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__header {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
margin: var( --margin-header ) var( --padding-header );
|
||||
gap: 0.25rem;
|
||||
.citizen-card();
|
||||
.citizen-card-hide( 100% 0, X );
|
||||
.citizen-card-hide( 100% 0, X, false );
|
||||
|
||||
/**
|
||||
* Loading indicator for searchbox
|
||||
|
|
Loading…
Reference in a new issue