theme: dash, tidy the sass

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/904
This commit is contained in:
Sam Hewitt 2019-12-19 14:11:59 -05:00 committed by Florian Müllner
parent fb3e5a4495
commit d713d78745

View File

@ -43,9 +43,9 @@ $dash_border_radius: $modal_radius * 1.5;
border:none; border:none;
box-shadow:0 0 0 1px $osd_outer_borders_color; box-shadow:0 0 0 1px $osd_outer_borders_color;
color: $osd_fg_color; color: $osd_fg_color;
margin-top: $base_margin + 4px;
padding: $base_padding $base_padding + 2px; padding: $base_padding $base_padding + 2px;
text-align: center; text-align: center;
margin-top: $base_margin + 4px;
-x-offset: $base_margin * 2; // distance from the dash edge -x-offset: $base_margin * 2; // distance from the dash edge
} }
@ -59,26 +59,30 @@ $dash_border_radius: $modal_radius * 1.5;
color: $osd_fg_color; color: $osd_fg_color;
} }
&:hover .overview-icon, &:hover,
&:focus .overview-icon, &:focus,
&:selected .overview-icon { &:selected {
.overview-icon {
background-color: transparentize($osd_fg_color,0.9); background-color: transparentize($osd_fg_color,0.9);
color: $osd_fg_color; color: $osd_fg_color;
} }
}
&:drop .overview-icon { &:drop .overview-icon {
background-color: transparentize($selected_bg_color,.15); background-color: transparentize($selected_bg_color,.15);
} }
&:active .overview-icon, &:active, &:checked {
&:checked .overview-icon { .overview-icon {
background-color: darken($osd_bg_color,10%); background-color: darken($osd_bg_color,10%);
} }
}
&:checked .show-apps-icon, &:checked, &:focus {
&:focus .show-apps-icon { .show-apps-icon {
color: $fg_color; color: $fg_color;
transition-duration: 100ms; transition-duration: 100ms;
} }
} }
}