theme: Simplify .search-section-content items styling
This reduces duplicate code in .search-provider-icon and .list-search-result by using %search-section-content-item to improve maintainability. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/957
This commit is contained in:
parent
60f12da3cd
commit
fc4dfa11c3
@ -34,6 +34,22 @@
|
|||||||
spacing: 0;
|
spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%search-section-content-item {
|
||||||
|
@extend %icon_tile;
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:hover,
|
||||||
|
&:selected {
|
||||||
|
background-color: transparentize($osd_fg_color, .9);
|
||||||
|
transition-duration: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
background-color: transparentize(darken($osd_bg_color, 10%), .1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// "no results" text
|
// "no results" text
|
||||||
.search-statustext {
|
.search-statustext {
|
||||||
@extend %status_text;
|
@extend %status_text;
|
||||||
@ -46,24 +62,9 @@
|
|||||||
|
|
||||||
// search result provider
|
// search result provider
|
||||||
.search-provider-icon {
|
.search-provider-icon {
|
||||||
@extend %icon_tile;
|
@extend %search-section-content-item;
|
||||||
|
|
||||||
padding: $base_padding;
|
|
||||||
spacing: 0;
|
|
||||||
margin-right: $base_margin * 2;
|
margin-right: $base_margin * 2;
|
||||||
|
|
||||||
&:focus,
|
|
||||||
&:selected,
|
|
||||||
&:hover {
|
|
||||||
background-color: transparentize($osd_fg_color,.9);
|
|
||||||
transition-duration: 200ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active,
|
|
||||||
&:checked {
|
|
||||||
background-color: transparentize(darken($osd_bg_color,10%),.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// content
|
// content
|
||||||
.list-search-provider-content {
|
.list-search-provider-content {
|
||||||
spacing: $base_spacing * 2;
|
spacing: $base_spacing * 2;
|
||||||
@ -85,23 +86,7 @@
|
|||||||
|
|
||||||
// search result listitem
|
// search result listitem
|
||||||
.list-search-result {
|
.list-search-result {
|
||||||
@extend %icon_tile;
|
@extend %search-section-content-item;
|
||||||
spacing: 0;
|
|
||||||
padding: $base_padding;
|
|
||||||
color: $osd_fg_color;
|
|
||||||
|
|
||||||
border-radius: $base_border_radius + 2px;
|
|
||||||
|
|
||||||
&:focus,
|
|
||||||
&:selected,
|
|
||||||
&:hover {
|
|
||||||
background-color: transparentize($osd_fg_color,.9);
|
|
||||||
transition-duration: 200ms;
|
|
||||||
}
|
|
||||||
&:active,
|
|
||||||
&:checked {
|
|
||||||
background-color: transparentize(darken($osd_bg_color,10%),.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// content
|
// content
|
||||||
.list-search-result-content {
|
.list-search-result-content {
|
||||||
@ -110,7 +95,6 @@
|
|||||||
|
|
||||||
// list item title
|
// list item title
|
||||||
.list-search-result-title {
|
.list-search-result-title {
|
||||||
color: $osd_fg_color;
|
|
||||||
spacing: $base_spacing * 2;
|
spacing: $base_spacing * 2;
|
||||||
padding-right: $base_padding;
|
padding-right: $base_padding;
|
||||||
// font-weight: bold;
|
// font-weight: bold;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user