starlight-cannoli-plugins 2.9.1 → 2.10.1

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.
@@ -9,6 +9,10 @@ var CONDITIONAL_CSS = {
9
9
  max-width: 100%;
10
10
  }
11
11
 
12
+ .main-pane details > summary {
13
+ padding-left: 1.1em;
14
+ }
15
+
12
16
  .main-pane details[open] > div.details-wrapper {
13
17
  overflow: auto;
14
18
  max-height: 67vh;
@@ -21,9 +25,9 @@ var CONDITIONAL_CSS = {
21
25
  }
22
26
  `,
23
27
  disabled: css`
24
- .main-pane details > *:not(summary) {
25
- padding: 0 1rem;
26
- margin: 1rem 0;
28
+ .main-pane details {
29
+ padding-left: 1rem;
30
+ padding-right: 1rem;
27
31
  }
28
32
  `
29
33
  }
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-NCXV367P.js";
25
25
  import {
26
26
  starlightDomPatches
27
- } from "./chunk-D3DPYGKF.js";
27
+ } from "./chunk-RHYQUYJ3.js";
28
28
  import "./chunk-4VNS5WPM.js";
29
29
 
30
30
  // src/plugins/starlight-index-sourced-sidebar/index.ts
@@ -1,17 +1,16 @@
1
1
  import "../../chunk-4VNS5WPM.js";
2
2
 
3
3
  // src/plugins/starlight-dom-patches/page-script.ts
4
- var TOC_NAV_SELECTOR = "nav[aria-labelledby='starlight__on-this-page']";
5
4
  function appendToActionPanel(element) {
6
- const tocNav = document.querySelector(TOC_NAV_SELECTOR);
7
- if (!tocNav) return false;
8
- let panel = tocNav.parentElement?.querySelector(
5
+ const starlightToc = document.querySelector("starlight-toc");
6
+ if (!starlightToc) return false;
7
+ let panel = starlightToc.querySelector(
9
8
  ":scope > div.cannoli-actionable"
10
- ) ?? null;
9
+ );
11
10
  if (!panel) {
12
11
  panel = document.createElement("div");
13
12
  panel.className = "cannoli-actionable";
14
- tocNav.parentNode.insertBefore(panel, tocNav);
13
+ starlightToc.prepend(panel);
15
14
  }
16
15
  panel.appendChild(element);
17
16
  return true;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  starlightDomPatches
3
- } from "../chunk-D3DPYGKF.js";
3
+ } from "../chunk-RHYQUYJ3.js";
4
4
  import "../chunk-4VNS5WPM.js";
5
5
  export {
6
6
  starlightDomPatches
@@ -69,10 +69,6 @@ starlight-toc ul > li {
69
69
  padding: 0.5em 0;
70
70
  display: block;
71
71
 
72
- summary {
73
- padding-left: 1.1em;
74
- }
75
-
76
72
  html[data-theme="light"] & {
77
73
  background: rgba(162, 171, 173, 0.08);
78
74
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-cannoli-plugins",
3
3
  "type": "module",
4
- "version": "2.9.1",
4
+ "version": "2.10.1",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",