diff --git a/assets/app.css b/assets/app.css index e5d5588b..3429acd8 100644 --- a/assets/app.css +++ b/assets/app.css @@ -2,6 +2,7 @@ @import "./fonts.css"; @import './defaultStyles.css'; @import './absicons.css'; +@import './transitions.css'; * { -webkit-touch-callout: none; @@ -163,4 +164,4 @@ Bookshelf Label .tracksTable th { padding: 4px 8px; font-size: 0.75rem; -} +} \ No newline at end of file diff --git a/assets/tailwind.css b/assets/tailwind.css index f52c759f..b6ae93b3 100644 --- a/assets/tailwind.css +++ b/assets/tailwind.css @@ -17,7 +17,7 @@ --color-track-cursor: 229 231 235; --color-track: 107 114 128; --color-track-buffered: 75 85 99; - --gradient-item-page: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(55, 56, 56, 1) 80%); + --gradient-item-page: linear-gradient(169deg, rgba(0, 0, 0, 0.4) 0%, rgba(55, 56, 56, 1) 80%); --gradient-audio-player: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(38, 38, 38, 1) 80%); --gradient-minimized-audio-player: linear-gradient(145deg, rgba(38, 38, 38, 0.5) 0%, rgba(38, 38, 38, 0.9) 20%, rgb(38, 38, 38) 60%); } @@ -36,7 +36,7 @@ --color-track-cursor: 101 109 118; --color-track: 189 191 191; --color-track-buffered: 129 131 131; - --gradient-item-page: linear-gradient(180deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 1) 80%); + --gradient-item-page: linear-gradient(169deg, rgba(0, 0, 0, 0.4) 0%, rgba(55, 56, 56, 1) 80%); --gradient-audio-player: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 80%); --gradient-minimized-audio-player: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 20%, rgb(255, 255, 255) 60%); } @@ -44,4 +44,4 @@ body { @apply bg-primary } -} +} \ No newline at end of file diff --git a/assets/transitions.css b/assets/transitions.css new file mode 100644 index 00000000..63e9cfc4 --- /dev/null +++ b/assets/transitions.css @@ -0,0 +1,51 @@ +.slide-enter-active { + -moz-transition-duration: 0.1s; + -webkit-transition-duration: 0.1s; + -o-transition-duration: 0.1s; + transition-duration: 0.1s; + -moz-transition-timing-function: ease-in; + -webkit-transition-timing-function: ease-in; + -o-transition-timing-function: ease-in; + transition-timing-function: ease-in; +} + +.slide-leave-active { + -moz-transition-duration: 0.2s; + -webkit-transition-duration: 0.2s; + -o-transition-duration: 0.2s; + transition-duration: 0.2s; + -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1); + -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1); + -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1); + transition-timing-function: cubic-bezier(0, 1, 0.5, 1); +} + +.slide-enter-to, +.slide-leave { + max-height: 600px; + overflow: hidden; +} + +.slide-enter, +.slide-leave-to { + overflow: hidden; + max-height: 0; +} + +.menu-enter, +.menu-leave-active { + transform: translateY(-15px); +} + +.menu-enter-active { + transition: all 0.2s; +} + +.menu-leave-active { + transition: all 0.1s; +} + +.menu-enter, +.menu-leave-active { + opacity: 0; +} \ No newline at end of file diff --git a/pages/item/_id/index.vue b/pages/item/_id/index.vue index 12809d13..ea37c3c6 100644 --- a/pages/item/_id/index.vue +++ b/pages/item/_id/index.vue @@ -1,149 +1,152 @@