Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions resources/css/components/stacks.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
}
.stack-container {
@apply absolute inset-0;
transition: left 0.3s ease;
transition: left 200ms ease-out;

[dir='rtl'] & {
transition: right 0.3s ease;
transition: right 200ms ease-out;
}
}

Expand All @@ -44,7 +44,8 @@

.stack-overlay-fade-enter-active,
.stack-overlay-fade-leave-active {
transition: opacity 250ms ease;
transition: opacity 200ms ease-out;
will-change: opacity;
}

.stack-overlay-fade-enter-from,
Expand All @@ -54,7 +55,8 @@

.stack-slide-enter-active,
.stack-slide-leave-active {
transition: transform 250ms ease, opacity 250ms ease;
transition: transform 200ms ease-out, opacity 200ms ease-out;
will-change: transform, opacity;
}

.stack-slide-enter-from {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/ui/Stack/Stack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ provide('closeStack', close);
<transition name="stack-slide">
<div
v-if="visible"
class="stack-content fixed flex flex-col sm:end-1.5 bg-content-bg dark:bg-dark-content-bg overflow-hidden rounded-xl shadow-[0_8px_5px_-6px_rgba(0,0,0,0.1),_0_3px_8px_0_rgba(0,0,0,0.02),_0_30px_22px_-22px_rgba(39,39,42,0.15)] dark:shadow-[0_5px_20px_rgba(0,0,0,.5)] transition-transform duration-150 ease-out"
class="stack-content fixed flex flex-col sm:end-1.5 bg-content-bg dark:bg-dark-content-bg overflow-hidden rounded-xl shadow-[0_8px_5px_-6px_rgba(0,0,0,0.1),_0_3px_8px_0_rgba(0,0,0,0.02),_0_30px_22px_-22px_rgba(39,39,42,0.15)] dark:shadow-[0_5px_20px_rgba(0,0,0,.5)] transition-transform duration-200 ease-out will-change-transform"
:class="[
size === 'full' ? 'inset-2 w-[calc(100svw-1rem)]' : 'inset-y-2',
{ '-translate-x-4 rtl:translate-x-4': isHovering }
Expand Down