From 8690858b6f314fe56942dc2cdd9cc6984f43b830 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 11 Mar 2019 15:48:03 +0100 Subject: more succinct syntax for code block line highlights --- css/reveal.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'css/reveal.scss') diff --git a/css/reveal.scss b/css/reveal.scss index 2592f4a..9b0ddd6 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -1577,7 +1577,7 @@ $controlsArrowAngleActive: 36deg; margin: initial; } -.reveal .hljs.highlight-lines tr:not(.highlight-line) { +.reveal .hljs[data-line-numbers]:not([data-line-numbers=""]) tr:not(.highlight-line) { opacity: 0.25; } @@ -1589,6 +1589,7 @@ $controlsArrowAngleActive: 36deg; .reveal .hljs-ln-numbers { padding-right: 10px; + text-align: right; } -- cgit v1.2.3