mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-02 04:05:56 +00:00
* Replace search strings * Add expander for reactions view * lint * Remove useless list * Update tests * lint * Only shrink buttons on web version, mobile never shrinks * Revert accidental change. * Remove border from button * Tidy up views. * Finish matching designs. * Fix height * Remove a unneeded class * Remove more cruft * Remove unnessacery chunk * Evenly space reactions * lint * Disable reaction buttons when busy * Try to make menu a bit more responsive * Update test * further screen size tweaks
90 lines
1.3 KiB
CSS
90 lines
1.3 KiB
CSS
/*
|
|
Copyright 2023, 2024 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
.bg {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(3, 12, 27, 0.528);
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.bg.animate[data-state="open"] {
|
|
animation: fade-in 200ms;
|
|
}
|
|
|
|
@keyframes fade-out {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.bg.animate[data-state="closed"] {
|
|
animation: fade-out 130ms;
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
}
|
|
|
|
.overlay.animate {
|
|
--overlay-top: 50%;
|
|
left: 50%;
|
|
top: var(--overlay-top);
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
@keyframes zoom-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translate(-50%, -50%) scale(80%);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translate(-50%, -50%) scale(100%);
|
|
}
|
|
}
|
|
|
|
@keyframes zoom-out {
|
|
from {
|
|
opacity: 1;
|
|
transform: translate(-50%, -50%) scale(100%);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translate(-50%, -50%) scale(80%);
|
|
}
|
|
}
|
|
|
|
.overlay.animate[data-state="open"] {
|
|
animation: zoom-in 200ms;
|
|
}
|
|
|
|
.overlay.animate[data-state="closed"] {
|
|
animation: zoom-out 130ms;
|
|
}
|
|
|
|
@media (prefers-reduced-motion) {
|
|
.overlay.animate[data-state="open"] {
|
|
animation-name: fade-in;
|
|
}
|
|
|
|
.overlay.animate[data-state="closed"] {
|
|
animation-name: fade-out;
|
|
}
|
|
}
|