* fix(docsearch-css): use correct size and position `position: absolute` makes the element absolute relative to its parent If the parent is not sized/positioned as desired, then the children suffer. `position: fixed` makes this element no longer depend on parent positioning. The height units are changed to more reliable/modern units to get the desired behavior. * fix(docksearch-css): prevent mobile body scrolling On initial modal open, the body is scrollable. Prevent this as suggested on SO --------- Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build-css.js | ||
| package.json | ||
| README.md | ||
@docsearch/css
Style package for DocSearch, the best search experience for docs.
Installation
yarn add @docsearch/css@3
# or
npm install @docsearch/css@3
If you don’t want to use a package manager, you can use a standalone endpoint:
<script src="https://cdn.jsdelivr.net/npm/@docsearch/css@3"></script>
Get started
import '@docsearch/css';