From bb95e73cafdc7fcd5dcbfe4c01359bb559bd13f8 Mon Sep 17 00:00:00 2001 From: Horst3180 Date: Tue, 29 Sep 2015 15:16:33 +0200 Subject: some refactoring --- common/gtk-3.0/3.16/sass/_transparent_widgets.scss | 81 ++++++++-------------- 1 file changed, 29 insertions(+), 52 deletions(-) (limited to 'common/gtk-3.0/3.16/sass') diff --git a/common/gtk-3.0/3.16/sass/_transparent_widgets.scss b/common/gtk-3.0/3.16/sass/_transparent_widgets.scss index 0a8b7b7..4a362e7 100644 --- a/common/gtk-3.0/3.16/sass/_transparent_widgets.scss +++ b/common/gtk-3.0/3.16/sass/_transparent_widgets.scss @@ -50,32 +50,7 @@ MarlinViewWindow { .separator { color: transparent; } - .scrollbar { - - &.overlay-indicator:not(.dragging):not(.hovering) .slider { - background-color: lighten($dark_sidebar_fg, 15%); - border: 1px solid transparentize(black, 0.7); - } - - // trough coloring - .trough { - background-color: transparentize(black, 0.8); - border: none; - } - - // slider coloring - .slider { - background-color: transparentize(lighten($dark_sidebar_fg, 15%), 0.3); - - &:hover { background-color: lighten($dark_sidebar_fg, 20%); } - - &:prelight:active { background-color: $selected_bg_color; } - - &:insensitive { - background-color: transparent; - } - } - } + .scrollbar { @extend %dark_sidebar_scrollbar } } &.maximized .sidebar { background-color: opacify($dark_sidebar_bg, 1); } @@ -188,32 +163,7 @@ GeditFileBrowserWidget { .maximized & { background-color: opacify($dark_sidebar_bg, 1); } - .scrollbar { - - &.overlay-indicator:not(.dragging):not(.hovering) .slider { - background-color: lighten($dark_sidebar_fg, 15%); - border: 1px solid transparentize(black, 0.7); - } - - // trough coloring - .trough { - background-color: transparentize(black, 0.8); - border: none; - } - - // slider coloring - .slider { - background-color: transparentize(lighten($dark_sidebar_fg, 15%), 0.3); - - &:hover { background-color: lighten($dark_sidebar_fg, 15%); } - - &:prelight:active { background-color: $selected_bg_color; } - - &:insensitive { - background-color: transparent; - } - } - } + .scrollbar { @extend %dark_sidebar_scrollbar; } .horizontal { background-color: transparent; @@ -249,3 +199,30 @@ GeditWindow.background.csd GeditFileBrowserView.view { &:focus { @include entry(osd-focus); } &:insensitive { @include entry(osd-insensitive); } } + +%dark_sidebar_scrollbar { + + &.overlay-indicator:not(.dragging):not(.hovering) .slider { + background-color: lighten($dark_sidebar_fg, 15%); + border: 1px solid transparentize(black, 0.7); + } + + // trough coloring + .trough { + background-color: transparentize(black, 0.8); + border: none; + } + + // slider coloring + .slider { + background-color: transparentize(lighten($dark_sidebar_fg, 15%), 0.3); + + &:hover { background-color: lighten($dark_sidebar_fg, 20%); } + + &:prelight:active { background-color: $selected_bg_color; } + + &:insensitive { + background-color: transparent; + } + } +} -- cgit v1.2.3