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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Colors

+

You can preview the effect offline below or fork ready to use template of + this + example.

+ + + DOCUMENTATION + GITHUB + Tutorials + Free + Hosting + TEMPLATE +
+ +
+
+ +
+
+ + +
+

Hello I'm a piece of example content!

+

You can just scroll trough me and marvel at the perfection of this scrollbar, + but + I'm also full of surprises!

+ +
+
+
+
+ +
+ + +
+ Card image cap + +
+
+
+ + +
+ + +

I'm a pretty card

+ +

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 + +
+ +
+ +
+
+ +
+ + +
+ Card image cap + +
+
+
+ + +
+ + +

I'm also pretty

+ +

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 + +
+ +
+ +
+
+ +
+ + +
+ Card image cap + +
+
+
+ + +
+ + +

I'm also happy

+ +

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 + +
+ +
+ +
+
+ +
+ + +
+ Card image cap + +
+
+
+ + +
+ + +

I made y'all

+ +

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 beautiful and colorful

+

We are some material scrollbars that could help you make your apps and projects even more + perfect!

+ Learn + more about us! +
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+

I'm a picture of a boar

+

That's enough for me.

+
+ 1 + +
+
+ +
+
+

I'm a basic Material Design sign-up form

+

Click on my button to learn more about me!

+
+ +
+ +
+

Sign Up

+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + + + + +
+

or sign up with:

+ + + + + + + +
+
+ +

By clicking + Sign up you agree to our + terms of service +

+ + +
+
+ +
+
+

We are leading Web Development technologies

+

Click on us if you're interested about learning more or getting our beautiful components + for free.

+
+
+ +
+ + +
+
+ +

Standard

+

Get beautiful components and useful features by clicking the button below.

+ Learn more +
+
+ +
+ +
+
+ +
+ + +
+
+ +

Angular

+

Get beautiful components and useful features by clicking the button below.

+ Learn more +
+
+ +
+ +
+
+ +
+ + +
+
+ +

React

+

Get beautiful components and useful features by clicking the button below.

+ Learn more +
+
+ +
+ +
+
+ +
+ + +
+
+ +

Vue

+

Get beautiful components and useful features by clicking the button below.

+ Learn more +
+
+ +
+ +
+ + +
+
+ +
+
+

I'm saying goodbye!

+

Beeing scrolled by you was a pleasure, I hope I'll see you soon at mdbootstrap.com

+
+ + + + +
+ + + +
+ + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + +