docs/components/Search.module.scss

72 строки
1.3 KiB
SCSS

.resultsContainer mark {
font-weight: bolder;
background: none;
color: inherit;
}
.searchResultContent mark {
font-weight: bolder;
}
.searchResultContent {
max-height: 4rem;
}
.resultsContainerHeader {
width: 0;
border-radius: 0 0 0 4px; // primer rounded-1
transition: width 0.3s ease-in-out;
}
.resultsContainerOpen.resultsContainerHeader {
width: 60vw;
max-width: 48rem;
}
.searchInput {
transition: width 0.3s ease-in-out;
}
.searchInputHeader {
width: 16rem;
}
.headerSearchOpen {
background: var(--color-primer-canvas-backdrop);
}
.searchInputExpanded {
width: 54vw;
max-width: 43rem;
}
.headerSearchResults {
max-height: 80vh;
}
.searchWording {
margin: 0.6rem 0 0.5rem 0.5rem;
}
.selectWording {
margin: 0.64rem 0.5rem 0 0;
}
.versionSearchContainer {
overflow: hidden;
}
// The value in the /cb-XXXXX prefix on the URL isn't important. It just
// needs to be unique so the asset can be cached in the CDN beyond
// every prod deployment.
// Just remember to change it if you change the image.
.searchIconBackground24 {
background: var(--color-canvas-default)
url("/assets/cb-303/images/octicons/search-24.svg") no-repeat 12px;
}
.searchIconBackground16 {
background: var(--color-canvas-default)
url("/assets/cb-262/images/octicons/search-16.svg") no-repeat 6px;
}