Skip to content
Discussion options

You must be logged in to vote

Based on the screenshot provided, the issue you are experiencing on mobile is a common side effect of how Docusaurus structures its navigation.

The mobile sidebar (.navbar-sidebar) is nested inside the main .navbar container. When you make the .navbar background transparent and apply a backdrop-filter, the mobile sidebar either inherits this transparency or loses its solid background cover. This causes the text of the sidebar to overlap confusingly with the page content underneath it.

The Solution

To fix this, you need to explicitly re-apply a solid background color to the mobile sidebar so the frosted glass effect only applies to the top navigation bar.

Add the following to your custom.css

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kakomonn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants