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})");
}
@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') {
// Allow 'light' or 'dark' to $color
@if ($color == 'light') { $color: $white; }

View File

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