@farberg/reveal-template 1.1.21 → 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 +13 -0
- package/package.json +1 -1
- package/plugins/reveal-plugin-show-title.js +11 -2
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
|
@@ -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/>
|