blob: 2bd5fdd3e2d5b68efcbf93f1c57bec073ff5e5ab [file] [log] [blame]
/*
* Copyright 2021 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
.SearchResults {
margin: 0 auto;
max-width: 60em;
padding: 2rem 0;
}
.SearchResults-header {
font-size: 1.875rem;
margin: 0 0 1.5rem 0;
}
.SearchResults-resultCount {
display: flex;
gap: 0 1rem;
}
.SearchResults-footer {
display: flex;
}
.SearchResults-emptyContentMessage {
text-align: center;
}
.SearchSnippet {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 0 0 2.5rem 0;
}
.SearchSnippet:last-of-type {
padding: 0 0 2rem 0;
}
.SearchSnippet-synopsis {
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
}
.SearchSnippet-infoLabel {
display: flex;
flex-wrap: wrap;
font-size: 0.875rem;
gap: 0.5rem 2rem;
}
.SearchSnippet-sub {
align-items: center;
display: flex;
flex-wrap: wrap;
font-size: 0.875rem;
gap: 0.5rem;
}
.SearchSnippet-sub a[data-hidden] {
display: none;
}
.SearchSnippet-breadcrumb {
color: var(--color-text-subtle);
font-size: 0.75rem;
}
.SearchSnippet-version {
font-size: 0.75rem;
}
.SearchSnippet-headerContainer {
align-items: baseline;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.SearchSnippet-header {
font-size: 1.5rem;
}
.SearchSnippet-header-path {
color: var(--color-text-subtle);
font-size: 1rem;
}
.SearchSnippet-symbol {
background: var(--blue);
border-radius: 1rem;
padding: 0 0.375rem;
}
.Pagination-nav {
display: flex;
}
.Pagination-navInner {
display: flex;
flex: 1;
justify-content: space-between;
}
.Pagination-previous[aria-disabled='true'],
.Pagination-next[aria-disabled='true'] {
color: var(--color-text-subtle);
}
.Pagination-number {
color: var(--color-text);
padding: 0 0.375rem;
}
.SearchResults .Pagination-nav,
.SearchResults-help,
.SearchResults-resultCount {
flex-wrap: wrap;
font-size: 0.875rem;
}
@media only screen and (min-width: 50rem) {
.SearchResults .Pagination-nav,
.SearchResults-help,
.SearchResults-resultCount {
flex-wrap: wrap;
font-size: 1.125rem;
}
.Pagination-navInner {
max-width: 25rem;
}
.Pagination-previous {
margin-right: 0.75rem;
}
.Pagination-next {
margin-left: 0.75rem;
}
}