From 44be77e14d55bb0114a2b1c0e4775575e58abb2e Mon Sep 17 00:00:00 2001 From: ll3006 Date: Tue, 23 Sep 2025 01:06:11 +0200 Subject: [PATCH 1/6] wip --- assets/css/tailwind.css | 19 +++++++++++++++---- components/Reader/Horizontal.vue | 2 +- components/Reader/Vertical.vue | 5 ++++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index fc5cbe2..47adcb1 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -25,15 +25,26 @@ } } -*::-webkit-scrollbar { +.scrollbar-styled::-webkit-scrollbar { width: 10px; } -*::-webkit-scrollbar-track { - background-color: var(--color-neutral-800); +.scrollbar-styled::-webkit-scrollbar-track { + background-color: transparent; } -*::-webkit-scrollbar-thumb { +.scrollbar-styled::-webkit-scrollbar-thumb { border-radius: 5px; background-color: var(--color-neutral-600); +} + +@utility scrollbar-hidden { + &::-webkit-scrollbar { + display: none; + } + + & { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ + } } \ No newline at end of file diff --git a/components/Reader/Horizontal.vue b/components/Reader/Horizontal.vue index b47d1a2..9b37ba2 100644 --- a/components/Reader/Horizontal.vue +++ b/components/Reader/Horizontal.vue @@ -67,7 +67,7 @@ onBeforeUnmount(() => {