@farberg/reveal-template 1.1.20 → 1.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/dhbw.css CHANGED
@@ -659,6 +659,19 @@ attribution a:visited {
659
659
  -webkit-text-stroke: 0.4px currentColor !important;
660
660
  }
661
661
 
662
+ /* Suppress the browser's blue focus ring left on the link after a mouse
663
+ click, while keeping it for keyboard navigation (:focus-visible). */
664
+ .menubar a:focus:not(:focus-visible) {
665
+ outline: none;
666
+ }
667
+
668
+ /* Slides marked with data-state="hide-menubar" (e.g. the title slide)
669
+ hide the simplemenu strip while they are active. Reveal mirrors the
670
+ data-state value onto <body> as a class while the slide is showing. */
671
+ body.hide-menubar .menubar {
672
+ display: none !important;
673
+ }
674
+
662
675
  .source-code-link {
663
676
  width: 99%;
664
677
  text-align: right;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farberg/reveal-template",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "homepage": "https://github.com/pfisterer/reveal-template",
5
5
  "description": "Reveal.js template for Dennis' lectures",
6
6
  "main": "index.js",
@@ -31,7 +31,7 @@ function showLinkToSlidesAndQrCode(QrCreator, deck, url) {
31
31
  size: 500,
32
32
  }, qrel);
33
33
 
34
- console.log("QR Code for slides generated", qrel, url)
34
+ //console.log("QR Code for slides generated", qrel, url)
35
35
  }
36
36
 
37
37
  let urlElements = deck.getSlidesElement().getElementsByClassName('urlforslides')
@@ -27,13 +27,22 @@ function showTitle(deck, packageJson) {
27
27
  for (let el of deck.getSlidesElement().getElementsByClassName("lecturetitle")) {
28
28
  let slideTitle = el.innerText;
29
29
 
30
+ // Mark the enclosing slide so simplemenu hides on it (handled in dhbw.css
31
+ // via body.hide-menubar) and give it a menu-label for any contexts that
32
+ // still read data-name. Equivalent to writing in the markdown:
33
+ // <!-- .slide: data-state="hide-menubar" -->
34
+ const section = el.closest('section');
35
+ if (section) {
36
+ section.setAttribute('data-state', 'hide-menubar');
37
+ }
38
+
30
39
  el.innerHTML = `
31
40
  <div style="height: 120px;"></div>
32
41
  <h1>${lectureTitle}</h1>
33
42
  <h3>${slideTitle}</h3>
34
-
43
+
35
44
  <div style="height: 170px;"></div>
36
-
45
+
37
46
  <div style="font-size: .7em; font-weight: bold;">
38
47
  ${authorBlock}
39
48
  <br/><br/>