simplify rematch button animation
This commit is contained in:
parent
26ac0eaeb6
commit
86b6313f3d
|
@ -843,6 +843,19 @@ div.control .button.disabled {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
text-transform: uppercase;
|
||||
transition: height 0.5s ease;
|
||||
}
|
||||
.lichess_ground .rematch.button span {
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
.lichess_ground .rematch.disabled {
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
transition: height 0.5s ease;
|
||||
}
|
||||
.lichess_ground .rematch.disabled span {
|
||||
opacity: 0;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
.variant_crazyhouse .lichess_ground .rematch.button {
|
||||
height: 60px;
|
||||
|
@ -872,23 +885,6 @@ div.control .button.disabled {
|
|||
animation: none;
|
||||
text-shadow: none;
|
||||
}
|
||||
.lichess_ground .rematch.enabled {
|
||||
height: 80px;
|
||||
transition: height 0.5s ease;
|
||||
}
|
||||
.lichess_ground .rematch.enabled span {
|
||||
opacity: 1;
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
.lichess_ground .rematch.disabled {
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
transition: height 0.5s ease;
|
||||
}
|
||||
.lichess_ground .rematch.disabled span {
|
||||
opacity: 0;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
.lichess_ground .rematch-decline {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
@ -40,7 +40,7 @@ function rematchButtons(ctrl: RoundController): MaybeVNodes {
|
|||
})
|
||||
}) : null,
|
||||
h('a.button.rematch.white', {
|
||||
class: { me, them, enabled: true },
|
||||
class: { me, them },
|
||||
attrs: {
|
||||
title: them ? ctrl.trans.noarg('yourOpponentWantsToPlayANewGameWithYou') : (
|
||||
me ? ctrl.trans.noarg('rematchOfferSent') : '')
|
||||
|
|
Loading…
Reference in a new issue