1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-22 14:22:53 +02:00

more succinct syntax for code block line highlights

This commit is contained in:
Hakim El Hattab
2019-03-11 15:48:03 +01:00
parent 5adc2032c0
commit 8690858b6f
4 changed files with 11 additions and 18 deletions

View File

@@ -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;
}