From e6be02fb8da37a3642735b515b3efcce9bcdcce1 Mon Sep 17 00:00:00 2001 From: charlesh88 Date: Fri, 17 Aug 2018 13:51:53 -0700 Subject: [PATCH] Splitter refinements / mixin fix - Splitter with resize grippy; - Fixed @background-image mixins; --- src/styles-new/_constants-snow.scss | 8 +++--- src/styles-new/_mixins.scss | 8 +++--- src/ui/components/controls/multipane.vue | 6 ++--- src/ui/components/controls/pane.vue | 33 +++++++++++++++++++++--- 4 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/styles-new/_constants-snow.scss b/src/styles-new/_constants-snow.scss index 60dd49ccb8..4b25070f2a 100644 --- a/src/styles-new/_constants-snow.scss +++ b/src/styles-new/_constants-snow.scss @@ -235,14 +235,16 @@ $scrollbarThumbColorMenu: pullForward($colorMenuBg, 10%); $scrollbarThumbColorMenuHov: pullForward($scrollbarThumbColorMenu, 2%); // Splitter -$splitterD: 10px; +$splitterD: 7px; $splitterCollapseBtnD: ($splitterD, 30px); $splitterDSm: 8px; // Smaller splitter, used inside elements like a Timeline view -$splitterHandleD: 3px; +$splitterHandleD: 7px; +$splitterGrippyD: ($splitterHandleD - 4, 75px, 50px); // thickness, length, min-length $colorSplitterBaseBg: $colorBodyBg; -$colorSplitterBg: pullForward($colorSplitterBaseBg, 15%); +$colorSplitterBg: pullForward($colorSplitterBaseBg, 10%); $colorSplitterFg: $colorBodyBg; $colorSplitterButtonBg: pullForward($colorSplitterBaseBg, 20%); +$colorSplitterGrippy: pullForward($colorSplitterBaseBg, 30%); $splitterShdw: none; $splitterEndCr: none; $colorSplitterHover: pullForward($colorSplitterBg, $hoverRatioPercent * 2); diff --git a/src/styles-new/_mixins.scss b/src/styles-new/_mixins.scss index e44dd8ee74..0d72f4c720 100644 --- a/src/styles-new/_mixins.scss +++ b/src/styles-new/_mixins.scss @@ -32,23 +32,23 @@ } @mixin bgDiagonalStripes($c: yellow, $a: 0.1, $d: 40px) { - @include background-image(linear-gradient(-45deg, + background-image: linear-gradient(-45deg, rgba($c, $a) 25%, transparent 25%, transparent 50%, rgba($c, $a) 50%, rgba($c, $a) 75%, transparent 75%, transparent 100% - )); + ); background-repeat: repeat; background-size: $d $d; } @mixin bgStripes($c: yellow, $a: 0.1, $bgsize: 5px, $angle: 90deg) { - @include background-image(linear-gradient($angle, + background-image: linear-gradient($angle, rgba($c, $a) 25%, transparent 25%, transparent 50%, rgba($c, $a) 50%, rgba($c, $a) 75%, transparent 75%, transparent 100% - )); + ); background-repeat: repeat; background-size: $bgsize $bgsize; } diff --git a/src/ui/components/controls/multipane.vue b/src/ui/components/controls/multipane.vue index c21d037ebc..32da394637 100644 --- a/src/ui/components/controls/multipane.vue +++ b/src/ui/components/controls/multipane.vue @@ -1,8 +1,8 @@