aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2019-03-08 15:07:59 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2019-03-08 15:07:59 +0100
commitcef864a7be9abe6e53810a83f6a577e83433cc66 (patch)
tree9702d5aee3fa889ef41258ce4f5a3d654b5fad5f /css
parentb6e136776ac73319140bea81e68a4e03c5269dc0 (diff)
downloadperl-software-in-gnu-guix-cef864a7be9abe6e53810a83f6a577e83433cc66.tar
perl-software-in-gnu-guix-cef864a7be9abe6e53810a83f6a577e83433cc66.tar.gz
highlight plugin updates; support for line numbers and highlighting specific lines
Diffstat (limited to 'css')
-rw-r--r--css/reveal.css17
-rw-r--r--css/reveal.scss24
2 files changed, 40 insertions, 1 deletions
diff --git a/css/reveal.css b/css/reveal.css
index 335fe82..12a1d43 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -1437,6 +1437,23 @@ body {
visibility: hidden; }
/*********************************************
+ * CODE HIGHLGIHTING
+ *********************************************/
+.reveal .hljs table {
+ margin: initial; }
+
+.reveal .hljs.highlight-lines 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; }
+
+/*********************************************
* ROLLING LINKS
*********************************************/
.reveal .roll {
diff --git a/css/reveal.scss b/css/reveal.scss
index 8c14529..2592f4a 100644
--- a/css/reveal.scss
+++ b/css/reveal.scss
@@ -1549,7 +1549,6 @@ $controlsArrowAngleActive: 36deg;
}
-
/*********************************************
* PLAYBACK COMPONENT
*********************************************/
@@ -1571,6 +1570,29 @@ $controlsArrowAngleActive: 36deg;
/*********************************************
+ * CODE HIGHLGIHTING
+ *********************************************/
+
+.reveal .hljs table {
+ margin: initial;
+}
+
+.reveal .hljs.highlight-lines 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;
+}
+
+
+/*********************************************
* ROLLING LINKS
*********************************************/