@hyperbook/markdown 0.44.1 → 0.46.0

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.
@@ -33,6 +33,43 @@ side-drawer {
33
33
  width: 500px;
34
34
  }
35
35
 
36
+ /* Hide side-drawer when JavaScript is disabled */
37
+ .no-js side-drawer {
38
+ display: none;
39
+ }
40
+
41
+ /* Hide mobile nav toggle when JavaScript is disabled */
42
+ .no-js .mobile-nav .toggle {
43
+ display: none;
44
+ }
45
+
46
+ /* Hide TOC toggle when JavaScript is disabled */
47
+ .no-js #toc-toggle {
48
+ display: none;
49
+ }
50
+
51
+ /* Hide search button when JavaScript is disabled */
52
+ .no-js #search-toggle {
53
+ display: none;
54
+ }
55
+
56
+ /* Hide share button when JavaScript is disabled */
57
+ .no-js #share-button {
58
+ display: none;
59
+ }
60
+
61
+ /* Hide QR code button when JavaScript is disabled */
62
+ .no-js #qrcode-open {
63
+ display: none;
64
+ }
65
+
66
+ /* Hide export/import/reset links when JavaScript is disabled */
67
+ .no-js .export-icon,
68
+ .no-js .import-icon,
69
+ .no-js .reset-icon {
70
+ display: none;
71
+ }
72
+
36
73
  #nav-drawer {
37
74
  background: var(--color-nav);
38
75
  border-right-color: var(--color-nav-border);
@@ -588,7 +625,7 @@ nav li+li {
588
625
  margin-top: 4px;
589
626
  }
590
627
 
591
- .section>.name {
628
+ .section summary.name {
592
629
  display: flex;
593
630
  text-decoration: none;
594
631
  padding: 10px;
@@ -596,48 +633,44 @@ nav li+li {
596
633
  border-style: solid;
597
634
  width: 100%;
598
635
  user-select: none;
636
+ cursor: pointer;
637
+ list-style: none;
599
638
  }
600
639
 
601
- .section>.name>.label {
640
+ .section summary.name::-webkit-details-marker {
641
+ display: none;
642
+ }
643
+
644
+ .section summary.name::marker {
645
+ display: none;
646
+ }
647
+
648
+ .section summary.name>.label {
602
649
  flex: 1;
603
650
  text-decoration: none;
604
651
  }
605
652
 
606
- .section>.name>.toggle {
607
- text-align: right;
608
- background: none;
609
- border: none;
610
- font-size: 13px;
653
+ .section.empty summary.name {
654
+ cursor: default;
611
655
  }
612
656
 
613
- .collapsible {
614
- cursor: pointer;
657
+ .section.empty summary.name .label {
658
+ font-style: italic;
615
659
  }
616
660
 
617
- .collapsible:after {
661
+ .section summary.name:after {
618
662
  content: "\002B";
619
663
  width: 1.2rem;
620
664
  color: var(--color-text);
621
665
  font-weight: bold;
622
666
  text-align: right;
623
- float: right;
624
667
  margin-left: 5px;
625
668
  }
626
669
 
627
- .collapsible.expanded:after {
670
+ .section[open] summary.name:after {
628
671
  content: "\2212";
629
672
  }
630
673
 
631
- .collapsible-content {
632
- display: none;
633
- opacity: 0;
634
- }
635
-
636
- .collapsible.expanded+.collapsible-content {
637
- display: block;
638
- opacity: 1;
639
- }
640
-
641
674
  .section .section {
642
675
  margin-left: 16px;
643
676
  margin-bottom: 0px;
@@ -2,7 +2,7 @@
2
2
  * @type {import("dexie").Dexie}
3
3
  */
4
4
  var store = new Dexie("Hyperbook");
5
- store.version(1).stores({
5
+ store.version(2).stores({
6
6
  currentState: `
7
7
  id,
8
8
  path,
@@ -30,6 +30,7 @@ store.version(1).stores({
30
30
  textinput: `id,text`,
31
31
  custom: `id,payload`,
32
32
  multievent: `id,state`,
33
+ typst: `id,code`,
33
34
  });
34
35
  var sqlIdeDB = new Dexie("SQL-IDE");
35
36
  sqlIdeDB.version(0.1).stores({