Commit b42f3b0b135938e3a11ea60f6a317f11a8395305

Jannik Zschiesche 2014-07-22T15:25:27

Fix hidden line numbers The issue is that the `<code>` element needs the `overflow: scroll` (since the code block has a `max-height`). So the line numbers container, which is positioned absolutely using a negative left position is hidden. This is fixed by changing the way the `<code>` element is positioned: not with a margin and a small size, but with the padding & a larger container.

diff --git a/themes/prism-coy.css b/themes/prism-coy.css
index 5992337..47f90eb 100644
--- a/themes/prism-coy.css
+++ b/themes/prism-coy.css
@@ -41,14 +41,13 @@ pre[class*="language-"] {
   background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
   background-size: 3em 3em;
   background-origin:content-box;
-  overflow:visible;
+  overflow: scroll;
   max-height:30em;
 }
 
 code[class*="language"] {
   max-height:29em;
   display:block;
-  overflow:scroll;
 }
 
 /* Margin bottom to accomodate shadow */
@@ -189,3 +188,17 @@ pre[class*="language-"]:after {
 .token.lf:before {
   color: #e0d7d1;
 }
+
+
+/* Plugin styles: Line Numbers */
+pre[class*="language-"].line-numbers {
+    padding-left: 0;
+}
+
+pre[class*="language-"].line-numbers code {
+    padding-left: 3.8em;
+}
+
+pre[class*="language-"].line-numbers .line-numbers-rows {
+    left: 0;
+}