@hyperbook/markdown 0.24.0 → 0.24.2

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.
@@ -81,6 +81,7 @@ var hyperbook = (function () {
81
81
  function search() {
82
82
  const resultsEl = document.getElementById("search-results");
83
83
  resultsEl.innerHTML = "";
84
+ const searchInputEl = document.querySelector("#search-input");
84
85
  const query = searchInputEl.value;
85
86
  const idx = window.lunr.Index.load(LUNR_INDEX);
86
87
  const documents = SEARCH_DOCUMENTS;
@@ -1,4 +1,4 @@
1
- .directive-collapsible button {
1
+ .directive-collapsible > button {
2
2
  width: 100%;
3
3
  text-align: left;
4
4
  border-style: solid;
@@ -11,13 +11,13 @@
11
11
  margin-bottom: 10px;
12
12
  }
13
13
 
14
- .directive-collapsible button.expanded {
14
+ .directive-collapsible > button.expanded {
15
15
  border-bottom-left-radius: 0px;
16
16
  border-bottom-right-radius: 0px;
17
17
  margin-bottom: 0px;
18
18
  }
19
19
 
20
- .directive-collapsible button:after {
20
+ .directive-collapsible > button:after {
21
21
  content: "\02795";
22
22
  /* Unicode character for "plus" sign (+) */
23
23
  font-size: 13px;
@@ -25,7 +25,7 @@
25
25
  margin-left: 5px;
26
26
  }
27
27
 
28
- .directive-collapsible button.expanded:after {
28
+ .directive-collapsible > button.expanded:after {
29
29
  content: "\2796";
30
30
  /* Unicode character for "minus" sign (-) */
31
31
  }
@@ -39,7 +39,7 @@
39
39
  display: none;
40
40
  }
41
41
 
42
- .directive-collapsible button.expanded+.collapsible-content {
42
+ .directive-collapsible > button.expanded+.collapsible-content {
43
43
  display: block;
44
44
  border-style: solid;
45
45
  border-width: 1px;
@@ -51,13 +51,13 @@
51
51
  border-bottom-right-radius: 4px;
52
52
  }
53
53
 
54
- .directive-collapsible button {
54
+ .directive-collapsible > button {
55
55
  color: var(--color-text);
56
56
  border-color: var(--color-spacer);
57
57
  background-color: var(--color-nav);
58
58
  }
59
59
 
60
- .directive-collapsible button:after {
60
+ .directive-collapsible > button:after {
61
61
  color: var(--color-text);
62
62
  }
63
63