This commit is contained in:
vinceliuice
2024-04-17 08:14:42 +08:00
parent 2949b6a79e
commit 1cf28eac20
2 changed files with 39 additions and 12 deletions

View File

@@ -7,6 +7,19 @@
@return unquote("alpha(#{$c}, #{$a})"); @return unquote("alpha(#{$c}, #{$a})");
} }
@function gtkmix($c1,$c2,$r) {
$ratio: 1 - $r / 100%; // match SCSS mix()
@return unquote("mix(#{$c1},#{$c2},#{$ratio})");
}
@function gtkshade($c,$s) {
@return unquote("shade(#{$c},#{$s})");
}
@function gtkcolor($c) {
@return unquote("@#{$c}");
}
@function on($color, $state: 'primary') { @function on($color, $state: 'primary') {
// Allow 'light' or 'dark' to $color // Allow 'light' or 'dark' to $color
@if ($color == 'light') { $color: $white; } @if ($color == 'light') { $color: $white; }

View File

@@ -3543,19 +3543,33 @@ frame {
statusbar & > border { border: none; } // for backward compatibility statusbar & > border { border: none; } // for backward compatibility
} }
actionbar > revealer > box { actionbar {
padding: $space-size; &.toolbar { // reset
border-spacing: 0; background-color: transparent;
box-shadow: inset 0 1px $border; padding: 0;
background-color: $base; border-spacing: 0;
background-clip: border-box; border: none;
border: none; box-shadow: none;
button, entry, > revealer > box {
menubutton, menubutton > button, background-color: $base-alt;
splitbutton, splitbutton > button, }
spinbutton { }
margin: 0;
> revealer > box {
padding: $space-size;
border-spacing: 0;
box-shadow: inset 0 1px $border;
background-color: $base;
background-clip: border-box;
border: none;
button, entry,
menubutton, menubutton > button,
splitbutton, splitbutton > button,
spinbutton {
margin: 0;
}
} }
} }