1
0
Fork 0
docsearch/packages/docsearch-css
Xavier Ruiz fe03b8e04e
fix: size and background scroll fixes (#2603)
* 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>
2025-06-25 09:21:13 -04:00
..
src fix: size and background scroll fixes (#2603) 2025-06-25 09:21:13 -04:00
build-css.js chore(deps): dependencies 2024-11-04 (#2335) 2024-11-04 18:15:51 +01:00
package.json chore(deps): replace yarn watch with nodemon (#2565) 2025-04-14 23:58:15 +03:00
README.md chore: release v3.0.0 (#1311) 2022-02-22 12:52:15 +01:00

@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 dont 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';

Documentation

Read documentation →