Merge pull request #1631 from penpot/fix/color_palette_animation

🐛 Fix color palette animation
This commit is contained in:
Andrey Antukh 2022-02-25 09:15:39 +01:00 committed by GitHub
commit fe6ed2ceae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 7 deletions

View file

@ -1494,6 +1494,7 @@
opacity: 0;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
max-height: 0px;
}
100% {
@ -1587,6 +1588,7 @@
opacity: 0;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
max-height: 0px;
}
}

View file

@ -5,7 +5,7 @@
// Copyright (c) UXBOX Labs SL
.color-palette {
@include animation(0, 0.5s, fadeInUp);
@include animation(0, 0.3s, fadeInUp);
align-items: center;
background-color: $color-gray-50;
border-top: 1px solid $color-gray-60;
@ -42,7 +42,7 @@
}
&.fade-out-down {
@include animation(0, 0.5s, fadeOutDown);
@include animation(0, 0.3s, fadeOutDown);
}
& .context-menu-items {

View file

@ -63,7 +63,6 @@ $height-palette-max: 80px;
.color-palette {
grid-area: color-palette;
min-height: $height-palette-min;
max-height: $height-palette-max;
height: var(--height, $height-palette);
}