From cfc2f9cf9c09be971a70803db49bf0de704cd877 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 12 Mar 2019 13:21:27 +0100 Subject: line number styling tweaks --- css/reveal.scss | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'css/reveal.scss') diff --git a/css/reveal.scss b/css/reveal.scss index 9b0ddd6..3b4b05c 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -1577,19 +1577,21 @@ $controlsArrowAngleActive: 36deg; margin: initial; } -.reveal .hljs[data-line-numbers]:not([data-line-numbers=""]) tr:not(.highlight-line) { - opacity: 0.25; -} - .reveal .hljs-ln-code, .reveal .hljs-ln-numbers { padding: 0; border: 0; } -.reveal .hljs-ln-numbers { - padding-right: 10px; +.reveal .hljs-ln-numbers { + opacity: 0.6; + padding-right: 0.75em; text-align: right; + vertical-align: top; +} + +.reveal .hljs[data-line-numbers]:not([data-line-numbers=""]) tr:not(.highlight-line) { + opacity: 0.25; } -- cgit v1.2.3