Skip to content

Commit 58d2337

Browse files
committed
Fix coy theme shadows
This patch removes max-height from the pre tag in the coy theme, because this height limitation is inconsistent with the other themes. The above change causes a bug in the shadows of the coy theme. Adding max-height: 13em to the ::before and ::after selector fixes the shadow bug.
1 parent 7501ceb commit 58d2337

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

themes/prism-coy.css

+1-6
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ pre[class*="language-"] {
4747
padding: 0;
4848
}
4949

50-
@media screen {
51-
pre[class*="language-"] {
52-
max-height: 30em;
53-
}
54-
}
55-
5650
code[class*="language"] {
5751
max-height: inherit;
5852
height: 100%;
@@ -96,6 +90,7 @@ pre[class*="language-"]:after {
9690
left: 0.18em;
9791
width: 40%;
9892
height: 20%;
93+
max-height: 13em;
9994
-webkit-box-shadow: 0px 13px 8px #979797;
10095
-moz-box-shadow: 0px 13px 8px #979797;
10196
box-shadow: 0px 13px 8px #979797;

0 commit comments

Comments
 (0)