added fade to collapse

This commit is contained in:
booploops 2022-06-03 04:28:55 -07:00
parent 5638d19096
commit 0113efcc69
3 changed files with 22 additions and 2 deletions

View file

@ -1711,6 +1711,11 @@ input[type=checkbox][switch]:checked:active::before {
font-family: "codicon"; font-family: "codicon";
font-size : 1em; font-size : 1em;
color: var(--textColor); color: var(--textColor);
display: grid;
place-items: center;
span {
position: absolute;
}
} }
.playback-button.pause { .playback-button.pause {

View file

@ -2955,6 +2955,16 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
transform: translateY(20px); transform: translateY(20px);
} }
.fade-enter-active,
.fade-leave-active {
transition: opacity .15s var(--appleEase);
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.modal-enter-active, .modal-enter-active,
.modal-leave-active { .modal-leave-active {
transition: opacity .1s var(--appleEase), transform .1s var(--appleEase); transition: opacity .1s var(--appleEase), transform .1s var(--appleEase);

View file

@ -59,8 +59,13 @@
v-b-tooltip.hover v-b-tooltip.hover
:title="chrome.sidebarCollapsed ? getLz('action.showLibrary') : getLz('action.hideLibrary')" :title="chrome.sidebarCollapsed ? getLz('action.showLibrary') : getLz('action.hideLibrary')"
@click="chrome.sidebarCollapsed = !chrome.sidebarCollapsed"> @click="chrome.sidebarCollapsed = !chrome.sidebarCollapsed">
<span v-if="chrome.sidebarCollapsed"></span> <transition name="fade">
<span v-else></span> <span v-if="chrome.sidebarCollapsed"></span>
</transition>
<transition name="fade">
<span v-if="!chrome.sidebarCollapsed"></span>
</transition>
</button> </button>
</div> </div>
<div <div