diff --git a/css/perfect-scrollbar.css b/css/perfect-scrollbar.css index b486392..b4e60f0 100644 --- a/css/perfect-scrollbar.css +++ b/css/perfect-scrollbar.css @@ -1,3 +1,9 @@ +:root { + --ps-thumb-color: #aaa; + --ps-thumb-hover-color: #999; + --ps-rail-hover-color: #eee; +} + /* * Container style */ @@ -58,6 +64,7 @@ .ps .ps__rail-x.ps--clicking, .ps .ps__rail-y.ps--clicking { background-color: #eee; + background-color: var(--ps-rail-hover-color); opacity: 0.9; } @@ -66,6 +73,7 @@ */ .ps__thumb-x { background-color: #aaa; + background-color: var(--ps-thumb-color); border-radius: 6px; transition: background-color .2s linear, height .2s ease-in-out; -webkit-transition: background-color .2s linear, height .2s ease-in-out; @@ -78,6 +86,7 @@ .ps__thumb-y { background-color: #aaa; + background-color: var(--ps-thumb-color); border-radius: 6px; transition: background-color .2s linear, width .2s ease-in-out; -webkit-transition: background-color .2s linear, width .2s ease-in-out; @@ -92,6 +101,7 @@ .ps__rail-x:focus > .ps__thumb-x, .ps__rail-x.ps--clicking .ps__thumb-x { background-color: #999; + background-color: var(--ps-thumb-hover-color); height: 11px; } @@ -99,6 +109,7 @@ .ps__rail-y:focus > .ps__thumb-y, .ps__rail-y.ps--clicking .ps__thumb-y { background-color: #999; + background-color: var(--ps-thumb-hover-color); width: 11px; } diff --git a/examples/colors.html b/examples/colors.html new file mode 100644 index 0000000..6722195 --- /dev/null +++ b/examples/colors.html @@ -0,0 +1,722 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +You can preview the effect offline below or fork ready to use template of + this + example.
+ + + DOCUMENTATION + GITHUB + Tutorials + Free + Hosting + TEMPLATE +Get Free Material Design for Bootstrap 5
+Material Design 2.0 + latest Bootstrap 5 based on plain JavaScript. 700+ material UI components, super + simple, 1 minute installation, free templates & much more
+ Free Download +You can just scroll trough me and marvel at the perfection of this scrollbar, + but + I'm also full of surprises!
+ +I'm very pretty and I have a pretty blue button, but it contains nothing, only + animated waves. I'm a sad, + pretty card.
+ + Button + +I'm very pretty and I have a pretty purple button, it contains a link to a + Web design & Web development tutorials. I'm a happy, + pretty card.
+ + Tutorial + +I'm very pretty and I have a pretty mdb-color button. It' leads to Admin + Dashboard building tutorial. I'm a happy, + pretty card.
+ + Tutorial + +I'm very pretty and my button let's you download a free UI Kit + with + pretty, happy cards & over 700+ of other material components!
+ + Download + +We are some material scrollbars that could help you make your apps and projects even more + perfect!
+ Learn + more about us! +That's enough for me.
+Click on my button to learn more about me!
+Click on us if you're interested about learning more or getting our beautiful components + for free.
+Get beautiful components and useful features by clicking the button below.
+ Learn more +Get beautiful components and useful features by clicking the button below.
+ Learn more +Get beautiful components and useful features by clicking the button below.
+ Learn more +Beeing scrolled by you was a pleasure, I hope I'll see you soon at mdbootstrap.com
+