Skip to content

Commit 18e0807

Browse files
committed
[Frontend] Tweaks to sass code
Fixes #1047 - Splitter and mini-tab-icon elements
1 parent 44fda8d commit 18e0807

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

platform/commonUI/general/res/sass/_mixins.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,9 @@
294294

295295
@function splitterHandleInset($splitterD: 21px, $splitterHandleD: 1px) {
296296
// Space to either side of the handle
297-
@return ($splitterD - $splitterHandleD) * 0.5;
297+
@return ($splitterD - $splitterHandleD) / 2;
298298
}
299299

300-
301300
/*********************************************** CONTROLS, FORM ELEMENTS */
302301

303302
@mixin containerBase($bg: $colorBodyBg, $fg: $colorBodyFg) {

platform/commonUI/general/res/sass/user-environ/_layout.scss

+2-7
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,9 @@
147147
}
148148

149149
body.desktop .pane .mini-tab-icon.toggle-pane {
150-
$paneExpandedOffset: splitterHandleInset($splitterD, $splitterHandleD) + $splitterHandleD + $uePaneMiniTabW;
151-
//$paneExpandedOffset: ceil($splitterD / 2) + $splitterHandleDHalf + if($splitterHandleDHalf % 2 != 0, 0px, 0px); //$splitterHandleD; //ceil($splitterD / 2) + ceil($splitterHandleD / 2);
150+
$hi: splitterHandleInset($splitterD, $splitterHandleD);
151+
$paneExpandedOffset: $hi + $splitterHandleD + $uePaneMiniTabW;
152152
top: $bodyMargin + ($ueTopBarH - $uePaneMiniTabH)/2;
153-
/*
154-
* The left anchor is able to move with its parent,
155-
* but the right one can't and must have a anim
156-
* or transition
157-
*/
158153

159154
&.toggle-tree.anchor-left.collapsed,
160155
&.toggle-inspect.anchor-right:not(.collapsed) {

platform/commonUI/themes/snow/res/sass/_constants.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ $scrollbarThumbColorOverlayHov: $scrollbarThumbColorHov;
193193
// Splitter
194194
// All splitterD* values MUST both be either odd or even numbers
195195
$splitterD: 16px;
196-
$splitterDSm: 14px; // Smaller splitter, used inside elements like a Timeline view
196+
$splitterDSm: 10px; // Smaller splitter, used inside elements like a Timeline view
197197
$splitterHandleD: 2px;
198198
$colorSplitterBaseBg: $colorBodyBg;
199199
$colorSplitterBg: pullForward($colorSplitterBaseBg, 15%);

0 commit comments

Comments
 (0)