1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/components/Search.module.scss
Mike Surowiec d8b4383dc6 Improve Search styling (#21295)
* fix: improve search highlight contrast
2021-09-03 16:20:23 +00:00

68 lines
1.1 KiB
SCSS

.resultsContainer mark {
background: none;
color: inherit;
}
.searchResultTitle mark {
color: var(--color-text-link);
}
.searchResultIntro mark {
border-bottom: 1px solid currentColor;
}
.searchResultContent mark {
text-decoration: none;
border-bottom: 1px dotted currentColor;
}
.searchResultTitle em {
font-style: normal;
text-decoration: underline;
}
.resultsContainerOverlay {
display: none;
position: absolute;
top: 0;
right: 0;
width: 0;
border-radius: 3px;
background: var(--color-bg-primary);
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.resultsContainerOverlay {
width: 60vw;
max-width: 760px;
}
.searchInput {
transition: width 0.3s ease-in-out;
}
.searchInputOverlay {
max-width: 690px;
width: 256px;
}
.searchInputExpanded {
width: 55vw;
position: absolute;
right: 0;
top: 0;
}
.searchOverlayOpen {
background: var(--color-bg-backdrop);
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
}