From e9cb5cd63969d7004dc125a6e913b3d1e2bb2e64 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Mon, 25 Sep 2017 12:08:59 -0700 Subject: [PATCH] [Front-end] Scrollbar-related color and padding Fixes #1729 --- .../commonUI/general/res/sass/controls/_controls.scss | 6 +++++- platform/commonUI/general/res/sass/overlay/_overlay.scss | 2 ++ .../commonUI/themes/espresso/res/sass/_constants.scss | 8 +++++--- platform/commonUI/themes/snow/res/sass/_constants.scss | 4 +++- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/platform/commonUI/general/res/sass/controls/_controls.scss b/platform/commonUI/general/res/sass/controls/_controls.scss index 83af1dccbb..da97e3b3fe 100644 --- a/platform/commonUI/general/res/sass/controls/_controls.scss +++ b/platform/commonUI/general/res/sass/controls/_controls.scss @@ -753,11 +753,15 @@ body.desktop { } .overlay ::-webkit-scrollbar-thumb { - $lr: 15%; background: $scrollbarThumbColorOverlay; &:hover { background: $scrollbarThumbColorOverlayHov; } } + .menu ::-webkit-scrollbar-thumb { + background: $scrollbarThumbColorMenu; + &:hover { background: $scrollbarThumbColorMenuHov; } + } + ::-webkit-scrollbar-corner { background: $scrollbarTrackColorBg; } diff --git a/platform/commonUI/general/res/sass/overlay/_overlay.scss b/platform/commonUI/general/res/sass/overlay/_overlay.scss index 64a814538e..371d9d5b0c 100644 --- a/platform/commonUI/general/res/sass/overlay/_overlay.scss +++ b/platform/commonUI/general/res/sass/overlay/_overlay.scss @@ -156,6 +156,8 @@ left: 0; right: 0; overflow: auto; + padding-right: $interiorMargin; + padding-bottom: $interiorMargin; .field.l-input-med { input[type='text'] { width: 100%; diff --git a/platform/commonUI/themes/espresso/res/sass/_constants.scss b/platform/commonUI/themes/espresso/res/sass/_constants.scss index e89ff67ac4..773ac83484 100644 --- a/platform/commonUI/themes/espresso/res/sass/_constants.scss +++ b/platform/commonUI/themes/espresso/res/sass/_constants.scss @@ -201,13 +201,15 @@ $shdwItemTreeIcon: 0.6; $colorThumbHoverBg: $colorItemTreeHoverBg; // Scrollbar -$scrollbarTrackSize: 10px; -$scrollbarTrackShdw: rgba(#000, 0.7) 0 1px 5px; -$scrollbarTrackColorBg: rgba(#000, 0.4); +$scrollbarTrackSize: 7px; +$scrollbarTrackShdw: rgba(#000, 0.5) 0 1px 5px; +$scrollbarTrackColorBg: transparent; //rgba(#000, 0.4); $scrollbarThumbColor: pullForward($colorBodyBg, 10%); $scrollbarThumbColorHov: pullForward($scrollbarThumbColor, 2%); $scrollbarThumbColorOverlay: pullForward($colorOvrBg, 10%); $scrollbarThumbColorOverlayHov: pullForward($scrollbarThumbColorOverlay, 2%); +$scrollbarThumbColorMenu: pullForward($colorMenuBg, 20%); +$scrollbarThumbColorMenuHov: pullForward($scrollbarThumbColorMenu, 2%); // Splitter // All splitterD* values MUST both be either odd or even numbers diff --git a/platform/commonUI/themes/snow/res/sass/_constants.scss b/platform/commonUI/themes/snow/res/sass/_constants.scss index d6c0195555..9ae7bb00b2 100644 --- a/platform/commonUI/themes/snow/res/sass/_constants.scss +++ b/platform/commonUI/themes/snow/res/sass/_constants.scss @@ -201,13 +201,15 @@ $shdwItemTreeIcon: none; $colorThumbHoverBg: $colorItemTreeHoverBg; // Scrollbar -$scrollbarTrackSize: 10px; +$scrollbarTrackSize: 7px; $scrollbarTrackShdw: rgba(#000, 0.2) 0 1px 2px; $scrollbarTrackColorBg: rgba(#000, 0.2); $scrollbarThumbColor: darken($colorBodyBg, 50%); $scrollbarThumbColorHov: $colorKey; $scrollbarThumbColorOverlay: darken($colorOvrBg, 50%); $scrollbarThumbColorOverlayHov: $scrollbarThumbColorHov; +$scrollbarThumbColorMenu: pullForward($colorMenuBg, 10%); +$scrollbarThumbColorMenuHov: pullForward($scrollbarThumbColorMenu, 2%); // Splitter // All splitterD* values MUST both be either odd or even numbers