No background for <code> in <pre>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
diff --git a/themes/prism-coy.css b/themes/prism-coy.css
index dbfd66d..1e05a8e 100644
--- a/themes/prism-coy.css
+++ b/themes/prism-coy.css
@@ -52,6 +52,10 @@ pre[class*="language-"] {
}
}
+pre[class*="language-"] > code {
+ background: none;
+}
+
code[class*="language"] {
max-height: inherit;
height: 100%;
diff --git a/themes/prism-dark.css b/themes/prism-dark.css
index 3c956f5..dac6023 100644
--- a/themes/prism-dark.css
+++ b/themes/prism-dark.css
@@ -49,6 +49,10 @@ pre[class*="language-"] {
box-shadow: 1px 1px .5em black inset;
}
+pre[class*="language-"] > code {
+ background: none;
+}
+
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .15em .2em .05em;
diff --git a/themes/prism-okaidia.css b/themes/prism-okaidia.css
index 676b070..2a72b13 100644
--- a/themes/prism-okaidia.css
+++ b/themes/prism-okaidia.css
@@ -35,6 +35,10 @@ pre[class*="language-"] {
border-radius: 0.3em;
}
+pre[class*="language-"] > code {
+ background: none;
+}
+
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #272822;
diff --git a/themes/prism-tomorrow.css b/themes/prism-tomorrow.css
index a4e7873..03bcc13 100644
--- a/themes/prism-tomorrow.css
+++ b/themes/prism-tomorrow.css
@@ -34,6 +34,10 @@ pre[class*="language-"] {
overflow: auto;
}
+pre[class*="language-"] > code {
+ background: none;
+}
+
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d2d2d;
diff --git a/themes/prism-twilight.css b/themes/prism-twilight.css
index 09b8dff..5893ce9 100644
--- a/themes/prism-twilight.css
+++ b/themes/prism-twilight.css
@@ -51,6 +51,10 @@ pre[class*="language-"]::selection {
background: hsl(200, 4%, 16%); /* #282A2B */
}
+pre[class*="language-"] > code {
+ background: none;
+}
+
/* Text Selection colour */
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
diff --git a/themes/prism.css b/themes/prism.css
index 2918f11..960ee3e 100644
--- a/themes/prism.css
+++ b/themes/prism.css
@@ -53,6 +53,10 @@ pre[class*="language-"] {
overflow: auto;
}
+pre[class*="language-"] > code {
+ background: none;
+}
+
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;