Skip to content

Commit

Permalink
Revert changes; Set z-index on pre > code instead
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonweiting committed Oct 24, 2021
1 parent 1c5839c commit 419f9ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions themes/prism-coy.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pre[class*="language-"] {

/* Code blocks */
pre[class*="language-"] {
z-index: 1;
position: relative;
margin: .5em 0;
overflow: visible;
Expand All @@ -38,6 +37,7 @@ pre[class*="language-"] {

pre[class*="language-"] > code {
position: relative;
z-index: 1;
border-left: 10px solid #358ccb;
box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
background-color: #fdfdfd;
Expand Down Expand Up @@ -79,7 +79,6 @@ pre[class*="language-"] {
pre[class*="language-"]:before,
pre[class*="language-"]:after {
content: '';
z-index: -2;
display: block;
position: absolute;
bottom: 0.75em;
Expand Down Expand Up @@ -218,8 +217,3 @@ pre[data-line] code {
pre .line-highlight {
margin-top: 0;
}

/* Plugin styles: Toolbar */
div.code-toolbar > .toolbar.toolbar {
z-index: 2; /* so that the toolbar sits on top of the `pre` which has a z-index of 1 */
}
2 changes: 1 addition & 1 deletion themes/prism-coy.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 419f9ed

Please sign in to comment.