@farberg/reveal-template 1.1.34 → 1.1.36

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
@@ -19,6 +19,9 @@ html.dim-background-strong .slide-background {
19
19
  opacity: 0.05 !important;
20
20
  }
21
21
 
22
+
23
+
24
+
22
25
  /*********************************************
23
26
  * GLOBAL STYLES
24
27
  *********************************************/
@@ -782,4 +785,8 @@ ul.dirtree ul ul ul li {
782
785
  padding: 0;
783
786
  }
784
787
 
785
- /** Dirtree plugin: end */
788
+ /** Dirtree plugin: end */
789
+
790
+ .reveal .flow-around ul {
791
+ display: block;
792
+ }
@@ -29,6 +29,11 @@ docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t yourusern
29
29
  npm.html
30
30
  </pre>
31
31
 
32
+ <pre class="dirtree" style="margin-left: 40px;">
33
+ 00 - Introduction.md
34
+ npm.html
35
+ </pre>
36
+
32
37
  ---
33
38
  ## Mermaid Example
34
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farberg/reveal-template",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "homepage": "https://github.com/pfisterer/reveal-template",
5
5
  "description": "Reveal.js template for Dennis' lectures",
6
6
  "main": "index.js",
@@ -38,6 +38,12 @@ const dirTreeFactory = ({ zip, strToU8 }) => ({
38
38
  position: relative !important;
39
39
  }
40
40
 
41
+ /* Without a download button there is nothing to clear at the top,
42
+ so drop the reserved space the button would otherwise occupy. */
43
+ .dirtree-container.no-download {
44
+ padding-top: 14px;
45
+ }
46
+
41
47
  ul.dirtree {
42
48
  list-style: none !important;
43
49
  padding: 0 !important;
@@ -814,6 +820,9 @@ const dirTreeFactory = ({ zip, strToU8 }) => ({
814
820
  btn.href = '#zip/' + zipName;
815
821
  btn.addEventListener('click', e => { e.preventDefault(); download(files, zipName); });
816
822
  container.appendChild(btn);
823
+ } else {
824
+ // No button means no need to reserve top padding for it.
825
+ container.classList.add('no-download');
817
826
  }
818
827
 
819
828
  const ul = document.createElement('ul');