diff --git a/.vitepress/theme/Home.vue b/.vitepress/theme/Home.vue index 011a275..904fb3e 100644 --- a/.vitepress/theme/Home.vue +++ b/.vitepress/theme/Home.vue @@ -17,10 +17,6 @@ export default { }, mounted() { this.intervalId = setInterval(this.updateVirus, 4000); // Update virus every 5 seconds - this.disableScroll(); - }, - beforeUnmount() { - this.enableScroll(); }, beforeDestroy() { clearInterval(this.intervalId); @@ -36,12 +32,6 @@ export default { let rgb = color.match(/\w\w/g).map(x => parseInt(x, 16)); return `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, ${this.opacityLevel})`; }, - enableScroll() { - document.body.style.overflow = 'auto'; - }, - disableScroll() { - document.body.style.overflow = 'hidden'; - }, }, computed: { sortedAims() { @@ -52,10 +42,9 @@ export default { @@ -130,18 +106,6 @@ export default { @apply mx-auto md:float-left md:mr-4 my-4 max-w-sm md:max-w-md; } -.hide-scrollbar { - -ms-overflow-style: none; - /* Internet Explorer 10+ */ - scrollbar-width: none; - /* Firefox */ -} - -.hide-scrollbar::-webkit-scrollbar { - display: none; - /* Chrome, Safari, Opera */ -} - .sky { @apply decoration-sky-500; }