From 4770be54f458b60bc917fcfbf7f034b53351380e Mon Sep 17 00:00:00 2001 From: Stephen Date: Wed, 14 Aug 2024 19:56:06 +0700 Subject: [PATCH] css scroll Navbar Menu --- css/styles.css | 36 ++++++++++++++++++++++++++++++++++++ globalcomponent/one-menu.vue | 10 +++++----- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/css/styles.css b/css/styles.css index 01b5a99..d1d11f5 100644 --- a/css/styles.css +++ b/css/styles.css @@ -28,3 +28,39 @@ body { font-family: "Roboto", sans-serif; } + + +.scroll-container { + scroll-padding: 50px 0 0 50px; +} + +::-webkit-scrollbar { + width: 7px; +} + +/* this targets the default scrollbar (compulsory) */ + +::-webkit-scrollbar-track { + background-color: #E3F2FD; +} + +/* the new scrollbar will have a flat appearance with the set background color */ + +::-webkit-scrollbar-thumb { + background-color: #2196F3; + ; +} + +/* this will style the thumb, ignoring the track */ + +::-webkit-scrollbar-button { + background-color: #E3F2FD; + ; +} + +/* optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */ + +::-webkit-scrollbar-corner { + background-color: black; +} + diff --git a/globalcomponent/one-menu.vue b/globalcomponent/one-menu.vue index 4ea3bd9..5bb9f01 100644 --- a/globalcomponent/one-menu.vue +++ b/globalcomponent/one-menu.vue @@ -1,18 +1,18 @@