Merge pull request #94 from ToBinio/better-dropdown-transition
improve dropdown transitions
This commit is contained in:
commit
d1a0cd1173
@ -201,6 +201,12 @@ onBeforeUnmount(() => {
|
||||
|
||||
.btn {
|
||||
height: 2.25rem;
|
||||
|
||||
transition: 0.05s;
|
||||
|
||||
&:not(.render-down):not(.render-up) {
|
||||
transition-delay: 0.2s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -210,6 +210,12 @@ const isChildOfDropdown = (element) => {
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent;
|
||||
|
||||
transition: 0.05s;
|
||||
|
||||
&:not(.render-down):not(.render-up) {
|
||||
transition-delay: 0.2s;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
cursor: not-allowed;
|
||||
filter: grayscale(50%);
|
||||
@ -232,6 +238,7 @@ const isChildOfDropdown = (element) => {
|
||||
|
||||
.arrow {
|
||||
transition: transform 0.2s ease;
|
||||
|
||||
&.rotate {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
@ -316,6 +316,8 @@ const isChildOfDropdown = (element) => {
|
||||
box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent !important;
|
||||
width: 100%;
|
||||
|
||||
transition: 0.05s;
|
||||
|
||||
&:focus {
|
||||
&.down {
|
||||
border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
|
||||
@ -325,5 +327,9 @@ const isChildOfDropdown = (element) => {
|
||||
border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:focus) {
|
||||
transition-delay: 0.2s;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user