Commit fe318d835185998ba7f7ae990d1dd2aeffffa272

Andreas Rohner 2016-01-21T11:59:25

Add @media type for the max-height property in the coy theme, so that it is disabled for printouts.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/themes/prism-coy.css b/themes/prism-coy.css
index 70981ca..dbfd66d 100644
--- a/themes/prism-coy.css
+++ b/themes/prism-coy.css
@@ -43,10 +43,15 @@ pre[class*="language-"] {
 	background-size: 3em 3em;
 	background-origin: content-box;
 	overflow: visible;
-	max-height: 30em;
 	padding: 0;
 }
 
+@media screen {
+	pre[class*="language-"] {
+		max-height: 30em;
+	}
+}
+
 code[class*="language"] {
 	max-height: inherit;
 	height: 100%;