Add shadow to announcement bar #7827
Answered
by
slorber
Samrose-Ahmed
asked this question in
Q&A
-
|
I'm having some difficulty adding a shadow to the Docusaurus announcement bar. It doesn't show, it seems its overlaid oddly with the subsequent navbar, but I can't quite tell what's going on. Has anyone added CSS to add shadow to the announcement bar? |
Beta Was this translation helpful? Give feedback.
Answered by
slorber
Aug 9, 2022
Replies: 1 comment 3 replies
-
|
Apparently, you have to add a z-index that makes it display on top of the navbar (which has a z-index) This works: I'll try to do this by default and replace our announcementBar border-bottom by a shadow |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Samrose-Ahmed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Apparently, you have to add a z-index that makes it display on top of the navbar (which has a z-index)
This works:
z-index: calc(var(--ifm-z-index-fixed) + 1);I'll try to do this by default and replace our announcementBar border-bottom by a shadow