From 3e7da73c616f6bfa7fc7e48732610c41518e5cc3 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Fri, 13 Oct 2023 07:08:23 +0800 Subject: [PATCH] update --- src/sass/gtk/_drawing.scss | 6 +++--- src/sass/gtk/apps/_libadwaita.scss | 32 +++++++++++++++--------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/sass/gtk/_drawing.scss b/src/sass/gtk/_drawing.scss index 9ef821ac..8fe61d4c 100644 --- a/src/sass/gtk/_drawing.scss +++ b/src/sass/gtk/_drawing.scss @@ -494,7 +494,7 @@ box-shadow: none; // } -@mixin undershoot($p, $c: $wm_shadow, $neighbor: false) { +@mixin undershoot($p, $c: $wm_shadow, $neighbor: false, $style: default) { // // undershoot // @@ -525,9 +525,9 @@ } @else { @error "Unknown position #{$p}" } - + #{$_selector} undershoot.#{$p} { - box-shadow: inset $_border_pos $borders_color; + box-shadow: if($style == 'default', none, inset $_border_pos $borders_color); background: linear-gradient(to $_direction, gtkalpha($c, .25), transparent 6px); } } diff --git a/src/sass/gtk/apps/_libadwaita.scss b/src/sass/gtk/apps/_libadwaita.scss index 74b58ed3..380a8c40 100644 --- a/src/sass/gtk/apps/_libadwaita.scss +++ b/src/sass/gtk/apps/_libadwaita.scss @@ -527,30 +527,30 @@ toolbarview.undershoot-bottom scrolledwindow { } toolbarview.undershoot-top scrolledwindow { - @include undershoot(top); + @include undershoot(top, $style: 'compact'); } toolbarview.undershoot-bottom scrolledwindow { - @include undershoot(bottom); + @include undershoot(bottom, $style: 'compact'); } scrolledwindow { &.undershoot-top { - @include undershoot(top); + @include undershoot(top, $style: 'compact'); } &.undershoot-bottom { - @include undershoot(bottom) + @include undershoot(bottom, $style: 'compact'); } &.undershoot-start { - &:dir(ltr) { @include undershoot(left); } - &:dir(rtl) { @include undershoot(right); } + &:dir(ltr) { @include undershoot(left, $style: 'compact'); } + &:dir(rtl) { @include undershoot(right, $style: 'compact'); } } &.undershoot-end { - &:dir(ltr) { @include undershoot(right); } - &:dir(rtl) { @include undershoot(left); } + &:dir(ltr) { @include undershoot(right, $style: 'compact'); } + &:dir(rtl) { @include undershoot(left, $style: 'compact'); } } } @@ -597,30 +597,30 @@ toolbarview.undershoot-bottom scrolledwindow { } toolbarview.undershoot-top scrolledwindow { - @include undershoot(top); + @include undershoot(top, $style: 'compact'); } toolbarview.undershoot-bottom scrolledwindow { - @include undershoot(bottom); + @include undershoot(bottom, $style: 'compact'); } scrolledwindow { &.undershoot-top { - @include undershoot(top); + @include undershoot(top, $style: 'compact'); } &.undershoot-bottom { - @include undershoot(bottom) + @include undershoot(bottom, $style: 'compact'); } &.undershoot-start { - &:dir(ltr) { @include undershoot(left); } - &:dir(rtl) { @include undershoot(right); } + &:dir(ltr) { @include undershoot(left, $style: 'compact'); } + &:dir(rtl) { @include undershoot(right, $style: 'compact'); } } &.undershoot-end { - &:dir(ltr) { @include undershoot(right); } - &:dir(rtl) { @include undershoot(left); } + &:dir(ltr) { @include undershoot(right, $style: 'compact'); } + &:dir(rtl) { @include undershoot(left, $style: 'compact'); } } }