From 58d2337d1e73ae3452fb51ae395dec74b453691b Mon Sep 17 00:00:00 2001 From: Andreas Rohner Date: Sun, 24 Jan 2016 04:01:16 +0100 Subject: [PATCH] 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. --- themes/prism-coy.css | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/themes/prism-coy.css b/themes/prism-coy.css index 96ed146c85..147b59b9b6 100644 --- a/themes/prism-coy.css +++ b/themes/prism-coy.css @@ -47,12 +47,6 @@ pre[class*="language-"] { padding: 0; } -@media screen { - pre[class*="language-"] { - max-height: 30em; - } -} - code[class*="language"] { max-height: inherit; height: 100%; @@ -96,6 +90,7 @@ pre[class*="language-"]:after { left: 0.18em; width: 40%; height: 20%; + max-height: 13em; -webkit-box-shadow: 0px 13px 8px #979797; -moz-box-shadow: 0px 13px 8px #979797; box-shadow: 0px 13px 8px #979797;