1
0
mirror of synced 2026-01-10 09:02:35 -05:00
Files
docs/components/Search.module.scss
Grace Park 5bf39459ca Updating Search using Primer Components (#22677)
* updating search icon

* remove no fill

* update fill color

* using ActionList and Overlay

* update to ActionList, Overlay, add Label to Breadcrumbs, and change Mark

* add search-results test data and move header search results to right

* make search results scrollable and fix max-width in header search

* update header search and styling updates

* add highlight

* update styling

* styling and lint errors

* fix lint error and fetch

* Update components/Search.tsx

* update label color

* remove bottom margin

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-11-12 12:25:47 -08:00

67 lines
1.0 KiB
SCSS

.resultsContainer mark {
background: none;
color: inherit;
}
.searchResultContent {
max-height: 4rem;
}
.searchResultContent mark {
color: var(--color-fg-default);
background-color: var(--color-attention-subtle);
}
.searchResultTitle em {
font-style: normal;
text-decoration: underline;
}
.resultsContainerHeader {
display: none;
position: absolute;
top: 0;
right: 0;
width: 0;
border-radius: 3px;
background: var(--color-canvas-default);
box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
transition: width 0.3s ease-in-out;
padding-top: 64px;
}
.resultsContainerOpen {
display: block;
}
.resultsContainerOpen.resultsContainerHeader {
width: 60vw;
max-width: 760px;
}
.searchInput {
transition: width 0.3s ease-in-out;
}
.searchInputHeader {
max-width: 690px;
width: 256px;
}
.searchInputExpanded {
width: 53vw;
position: absolute;
right: 0;
top: 0;
}
.headerSearchOpen {
background: var(--color-primer-canvas-backdrop);
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
}