This commit is contained in:
vinceliuice 2023-10-13 07:08:23 +08:00
parent a1b1bacc1f
commit 3e7da73c61
2 changed files with 19 additions and 19 deletions

View File

@ -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
//
@ -527,7 +527,7 @@
}
#{$_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);
}
}

View File

@ -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'); }
}
}