Skip to content

Commit

Permalink
thanks gtk css for being stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Nov 4, 2022
1 parent d1121b2 commit b09299a
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions Helium/gtk-4.0/_tauos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,7 @@ $colors: (
.navigation-rail {
background: none;
}
.navigation-rail-button,
.navigation-rail-button.toggle {
.navigation-rail-button {
background: none;

& image {
Expand All @@ -685,12 +684,45 @@ $colors: (
}
&:checked image {
background: gtkmix($view_bg_color, $accent_bg_color, 25%);
color: gtkmix($view_fg_color, $accent_bg_color, 50%);
color: gtkmix($view_bg_color, $accent_bg_color, 50%);
box-shadow: none;
}
&:hover:checked image {
background: gtkmix($view_bg_color, $accent_bg_color, 50%);
color: $view_bg_color;
box-shadow: none;
}
}
.navigation-rail-button.toggle {
background: none;

& image {
margin-bottom: 4px;
border-radius: 999px;
min-height: 32px;
min-width: 56px;
background: none;
}
& label {
color: $view_fg_color;
font-weight: 500;
}
&:checked label {
font-weight: 700;
}
&:hover image {
background: gtkmix($view_bg_color, $accent_bg_color, 50%);
color: $view_fg_color;
box-shadow: none;
}
&:checked image {
background: gtkmix($view_bg_color, $accent_bg_color, 25%);
color: gtkmix($view_bg_color, $accent_bg_color, 50%);
box-shadow: none;
}
&:hover:checked image {
background: gtkmix($view_bg_color, $accent_bg_color, 50%);
color: $view_bg_color;
box-shadow: none;
}
}

0 comments on commit b09299a

Please sign in to comment.