r-lib / pkgdown

Generate static html documentation for an R package
https://pkgdown.r-lib.org/
Other
718 stars 336 forks source link

strip_header causes the navigation bar to overlap content #2199

Closed igordot closed 6 months ago

igordot commented 2 years ago

I noticed that with Bootstrap 5 and strip_header enabled, the content will be overlapping with the navigation bar.

Here is an example with the simplex theme with strip_header: false:

image

And with strip_header: true:

image

This might be more of a Bootstrap bug than a pkgdown one. Is there any way to fix or get around this issue?

maelle commented 2 years ago

:wave: @igordot, thanks for the report.

I'd recommend using the pkgdown-nav-height bslib variable https://pkgdown.r-lib.org/dev/articles/customise.html#bootswatch-themes (at least for a workaround for now)

hadley commented 7 months ago

Since we don't really use or recommend this any more, I think we should remove from the docs.