neovim / neovim.github.io

Neovim website
https://neovim.io
MIT License
415 stars 100 forks source link

fix(css): override default bootstrap style for DocSearch #328

Closed shortcuts closed 1 year ago

shortcuts commented 1 year ago

Discussed in https://github.com/neovim/neovim.github.io/issues/310

It seems like the default bootstrap style adds a padding to the mark element, which makes the display of DocSearch results a bit weird (see before). This PR provides an override for the mark element, only if it's a child of the DocSearch class (see after).

Before After
Screenshot 2023-06-27 at 22 46 33 Screenshot 2023-06-27 at 22 47 10