From f23e64f0ca02494e6986d2e545fc44f3c7a3991a Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 6 Aug 2023 10:25:22 +0800 Subject: [PATCH] Added hidden scrollbar class --- assets/css/tailwind.css | 15 ++++++++-- components/card/MarkdownRenderer.vue | 45 +++++++++++++++------------- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index ecc92f5..71d01dd 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -16,9 +16,20 @@ body::-webkit-scrollbar, } input { - @apply bg-primary border-none p-2; + @apply border-none bg-primary p-2; } input:focus { - @apply bg-secondary border-none outline-none; + @apply border-none bg-secondary outline-none; +} + +/* Hide scrollbar for Chrome, Safari and Opera */ +.scrollbar-hidden::-webkit-scrollbar { + display: none; +} + +/* Hide scrollbar for IE, Edge and Firefox */ +.scrollbar-hidden { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ } diff --git a/components/card/MarkdownRenderer.vue b/components/card/MarkdownRenderer.vue index 60f5bd7..b83d4f8 100644 --- a/components/card/MarkdownRenderer.vue +++ b/components/card/MarkdownRenderer.vue @@ -1,20 +1,23 @@