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.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'css/reveal.css') diff --git a/css/reveal.css b/css/reveal.css index 12a1d43..c6ab0b1 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -1442,7 +1442,7 @@ body { .reveal .hljs table { 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; } .reveal .hljs-ln-code, @@ -1451,7 +1451,8 @@ body { border: 0; } .reveal .hljs-ln-numbers { - padding-right: 10px; } + padding-right: 10px; + text-align: right; } /********************************************* * ROLLING LINKS -- cgit v1.2.3