Purpose of z-index
in Prism?
#3580
-
I understand the general purpose of I just ran into a situation where some of my drop-down menus were coming down behind a Prism code block. I know how to work around that, but I'm curious why Prism felt the need to set a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
Ah, those darn, buggy, problematic Coy shadows again. I've turned them off discussed in #2164 and #2170. In any case I added a really big |
Beta Was this translation helpful? Give feedback.
We only have 2 themes that use
z-index
.Coy needs
z-index: 1
because of its shadows. Here's how it looks like without the z index (orz-index: auto
):Twilight does a little trickery with Line Highlight. It places its tokens above the highlighting box to use it as a background.
The Toolbar and Previewers plugins also use
z-index
to make their elements appear above code blocks.