From 373838d8254c005d77f4f2cddedc7a5616d05abc Mon Sep 17 00:00:00 2001 From: DanielApt Date: Tue, 16 Dec 2014 13:21:16 +0000 Subject: [PATCH] Define the used colors as variables --- src/perfect-scrollbar.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/perfect-scrollbar.scss b/src/perfect-scrollbar.scss index 7675c21..c67e555 100644 --- a/src/perfect-scrollbar.scss +++ b/src/perfect-scrollbar.scss @@ -1,3 +1,8 @@ +// Colors +$ps-rail-hover: #eee; +$ps-bar-default: #aaa; +$ps-bar-hover: #999; + // Helper mixins @mixin opacity($o) { $IEValue: $o * 100; @@ -30,19 +35,19 @@ } @mixin scrollbar-rail-hover { - background-color: #eee; + background-color: $ps-rail-hover; @include opacity(0.9); } @mixin scrollbar-default { position: absolute; /* please don't change 'position' */ - background-color: #aaa; + background-color: $ps-bar-default; @include border-radius(4px); @include transition(background-color .2s linear); } @mixin scrollbar-hover { - background-color: #999; + background-color: $ps-bar-hover; } @mixin in-scrolling {