108 lines
2.1 KiB
SCSS
Raw Normal View History

2021-04-08 22:59:05 +08:00
/* Search */
2021-04-09 11:45:08 +08:00
%search-section-content-item {
border-radius: $bt_radius;
padding: $base_padding;
transition-duration: 100ms;
text-align: center;
&:focus,
&:hover,
&:selected {
background-color: $light_divider_color;
transition-duration: 200ms;
}
&:active,
&:checked {
background-color: $light_track_color;
}
}
2021-04-13 19:42:12 +08:00
// search overview container
#searchResultsContent {
max-width: 1024px;
spacing: $base_margin * 2;
2021-05-07 10:18:53 +08:00
@include font(body-1);
2021-04-13 19:42:12 +08:00
}
2021-04-08 22:59:05 +08:00
// search results sections "the boxes"
.search-section {
// This should be equal to #searchResultsContent spacing
spacing: $base_margin * 2;
// separator
.search-section-separator {
2021-04-09 10:59:02 +08:00
height: 0;
2021-04-08 22:59:05 +08:00
background-color: $light_divider_color;
}
}
// content
.search-section-content { // This is the space between the provider icon and the results container
2021-04-09 10:59:02 +08:00
spacing: $base_margin * 2;
2021-04-09 11:45:08 +08:00
border-radius: $modal_radius;
2021-04-09 10:59:02 +08:00
padding: $base_padding * 3;
2021-04-08 22:59:05 +08:00
border: none;
box-shadow: none;
2021-04-09 10:59:02 +08:00
background: $light_divider_color;
2021-04-08 22:59:05 +08:00
text-shadow: none;
color: $light_alt_fg_color;
}
// "no results" text
.search-statustext {
2021-04-09 11:45:08 +08:00
font-size: 2em;
font-weight: bold;
color: $light_hint_fg_color;
}
.grid-search-results {
spacing: $base_spacing * 6;
2021-04-08 22:59:05 +08:00
}
2021-04-13 19:42:12 +08:00
// Search results with icons
.grid-search-result {
@extend %app-well-app;
2021-04-08 22:59:05 +08:00
}
// search result provider
.search-provider-icon {
2021-04-09 11:45:08 +08:00
@extend %search-section-content-item;
2021-04-08 22:59:05 +08:00
// content
.list-search-provider-content {
2021-04-09 11:45:08 +08:00
spacing: $base_spacing * 2;
2021-04-08 22:59:05 +08:00
// provider labels
.list-search-provider-details {
width: 120px;
margin-top: 0;
color: $light_hint_fg_color;
// font-weight: bold;
}
}
}
2021-04-13 19:42:12 +08:00
// search results list
.list-search-results {
spacing: $base_spacing;
}
// search result listitem
.list-search-result {
@extend %search-section-content-item;
// content
.list-search-result-content {
spacing: $base_padding;
}
// list item title (with leading icon)
.list-search-result-title {
spacing: $base_spacing * 2;
// font-weight: bold;
}
// list item description
.list-search-result-description { color: $light_alt_fg_color; }
}