Skip to content

Commit

Permalink
_tauos.scss - Fix OverlayButton shadow elevation hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Aug 21, 2023
1 parent 55ea602 commit b1bd602
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Helium/gtk-4.0/_tauos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ $colors: (
border-radius: rem(999px);
background: bg-color(0);
color: $accent_color;
box-shadow: shadow(3);
box-shadow: shadow(1);

&:disabled {
background: gtkalpha($view_fg_color, 0.12);
Expand All @@ -553,66 +553,66 @@ $colors: (
&:hover {
background: bg-color(2);
color: $accent_color;
box-shadow: shadow(4);
box-shadow: shadow(3);
}

&:active {
background: bg-color(4);
color: $accent_color;
box-shadow: shadow(3);
box-shadow: shadow(2);
}

&.primary {
background: image($accent_container_bg_color);
color: $accent_color;
box-shadow: shadow(3);
box-shadow: shadow(1);

&:hover {
background: linear-gradient(0deg, gtkalpha($accent_color, 0.08), gtkalpha($accent_color, 0.08)), image($accent_container_bg_color);
color: $accent_color;
box-shadow: shadow(4);
box-shadow: shadow(3);
}

&:active {
background: linear-gradient(0deg, gtkalpha($accent_color, 0.14), gtkalpha($accent_color, 0.14)), image($accent_container_bg_color);
color: $accent_color;
box-shadow: shadow(3);
box-shadow: shadow(2);
}
}

&.secondary {
background: image($suggested_container_bg_color);
color: $suggested_color;
box-shadow: shadow(3);
box-shadow: shadow(1);

&:hover {
background: linear-gradient(0deg, gtkalpha($suggested_color, 0.08), gtkalpha($suggested_color, 0.08)), image($suggested_container_bg_color);
color: $suggested_color;
box-shadow: shadow(4);
box-shadow: shadow(3);
}

&:active {
background: linear-gradient(0deg, gtkalpha($suggested_color, 0.14), gtkalpha($suggested_color, 0.14)), image($suggested_container_bg_color);
color: $suggested_color;
box-shadow: shadow(3);
box-shadow: shadow(2);
}
}

&.tertiary {
background: image($success_container_bg_color);
color: $success_color;
box-shadow: shadow(3);
box-shadow: shadow(1);

&:hover {
background: linear-gradient(0deg, gtkalpha($success_color, 0.08), gtkalpha($success_color, 0.08)), image($success_container_bg_color);
color: $success_color;
box-shadow: shadow(4);
box-shadow: shadow(3);
}

&:active {
background: linear-gradient(0deg, gtkalpha($success_color, 0.14), gtkalpha($success_color, 0.14)), image($success_container_bg_color);
color: $success_color;
box-shadow: shadow(3);
box-shadow: shadow(2);
}
}

Expand Down

0 comments on commit b1bd602

Please sign in to comment.