diff --git a/src/components/Dock.vue b/src/components/Dock.vue new file mode 100644 index 00000000..2a96b78c --- /dev/null +++ b/src/components/Dock.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index bf94caf4..091022c7 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -155,24 +155,6 @@ onMounted(() => { } document.documentElement.style.setProperty('font-size', '14px') - // if (mainAppRef.value) { - // mainAppRef.value.addEventListener('scroll', () => { - // if ( - // mainAppRef.value.clientHeight + mainAppRef.value.scrollTop - // >= mainAppRef.value.scrollHeight - 20 - // ) { - // nextTick(() => { - // emitter.emit('reachBottom') - // }) - // } - - // if (mainAppRef.value.scrollTop === 0) - // showTopbarMask.value = false - // else - // showTopbarMask.value = true - // }) - // } - document.addEventListener('scroll', () => { if (window.scrollY > 0) showTopbarMask.value = true @@ -364,7 +346,7 @@ function handleOsScroll() {
@@ -378,99 +360,7 @@ function handleOsScroll() { }" pos="absolute top-0" flex="~ col" h-full justify-center z-1 pointer-events-none > -
- - - - - - - - - - - - - - - - - -
- -
-
- - - - - - - - -
- - - - - - - - -
+
- - - - + + + +
@@ -624,41 +514,6 @@ function handleOsScroll() { --at-apply: w-2px h-auto my-0 mx-2; } - .dock-item { - --shadow: 0 0 30px 4px var(--bew-theme-color-50); - --shadow-dark: 0 0 30px 4px rgba(255, 255, 255, 0.6); - --shadow-active: 0 0 20px var(--bew-theme-color-50); - --shadow-dark-active: 0 0 20px rgba(255, 255, 255, 0.6); - - --at-apply: transform active:scale-90 - md:w-45px w-35px - md:p-3 p-2 - md:text-2xl text-xl - aspect-square relative - text-$bew-text-1 leading-0 duration-300 - rounded-$bew-radius - bg-$bew-fill-2 cursor-pointer - hover:bg-$bew-theme-color hover:text-white hover:shadow-$shadow - active:shadow-$shadow-active dark-active:shadow-$shadow-dark-active - dark-hover:bg-white dark-hover:text-black dark-hover:shadow-$shadow-dark; - - &.active { - --at-apply: bg-$bew-theme-color dark-bg-white - text-white dark-text-black - shadow-$shadow dark:shadow-$shadow-dark - active:shadow-$shadow-active dark-active:shadow-$shadow-dark-active; - } - - &.active.video { - --shadow: 0 0 30px 4px var(--bew-warning-color-50); - --shadow-dark: var(--shadow); - --shadow-active: 0 0 20px var(--bew-warning-color-50); - --shadow-dark-active: var(--shadow-active); - - --at-apply: bg-$bew-warning-color text-black; - } - - } }