@helping-ai-workflow/md2doc 2.3.0 → 2.3.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.
- package/lib/md2doc.js +14 -0
- package/package.json +1 -1
package/lib/md2doc.js
CHANGED
|
@@ -572,6 +572,20 @@ const html = `<!DOCTYPE html>
|
|
|
572
572
|
body[data-toc-collapsed] #toc-collapse-toggle {
|
|
573
573
|
transform: rotate(180deg);
|
|
574
574
|
}
|
|
575
|
+
/* In the 36px collapsed rail only the restore toggle remains: hide the
|
|
576
|
+
TOC-list buttons (no list to act on) and shrink padding so the toggle
|
|
577
|
+
fits inside the rail instead of being clipped by overflow:hidden. */
|
|
578
|
+
body[data-toc-collapsed] #toc-expand-all,
|
|
579
|
+
body[data-toc-collapsed] #toc-collapse-all {
|
|
580
|
+
display: none;
|
|
581
|
+
}
|
|
582
|
+
body[data-toc-collapsed] .toc {
|
|
583
|
+
padding: 12px 3px;
|
|
584
|
+
}
|
|
585
|
+
body[data-toc-collapsed] .toc-header {
|
|
586
|
+
margin-bottom: 0;
|
|
587
|
+
justify-content: center;
|
|
588
|
+
}
|
|
575
589
|
#toc-collapse-toggle {
|
|
576
590
|
margin-left: 0;
|
|
577
591
|
padding: 2px 8px;
|