Commit 301cb8e797
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/Collapsible.vue +12 −1
| @@ -13,7 +13,7 @@ const open = ref(false) | |||
| 13 | <summary> | 13 | <summary> |
| 14 | <span v-if="open" class="i-iconoir-nav-arrow-down collapsible-icon" /> | 14 | <span v-if="open" class="i-iconoir-nav-arrow-down collapsible-icon" /> |
| 15 | <span v-else class="i-iconoir-nav-arrow-right collapsible-icon" /> | 15 | <span v-else class="i-iconoir-nav-arrow-right collapsible-icon" /> |
| 16 | {{ title || 'Details' }} | 16 | <h3 class="collapsible-title">{{ title || 'Details' }}</h3> |
| 17 | </summary> | 17 | </summary> |
| 18 | <slot /> | 18 | <slot /> |
| 19 | </details> | 19 | </details> |
| @@ -37,4 +37,15 @@ summary::-webkit-details-marker { | |||
| 37 | height: 1em; | 37 | height: 1em; |
| 38 | flex-shrink: 0; | 38 | flex-shrink: 0; |
| 39 | } | 39 | } |
| 40 | |||
| 41 | .collapsible-title { | ||
| 42 | margin: 0; | ||
| 43 | padding: 0; | ||
| 44 | font-size: inherit; | ||
| 45 | font-weight: inherit; | ||
| 46 | line-height: inherit; | ||
| 47 | color: inherit; | ||
| 48 | letter-spacing: inherit; | ||
| 49 | border: none; | ||
| 50 | } | ||
| 40 | </style>\ No newline at end of file | 51 | </style>\ No newline at end of file |
docs/.vitepress/theme/styles/style.scss +9
| @@ -1636,6 +1636,15 @@ html.reduce-blur-effects { | |||
| 1636 | } | 1636 | } |
| 1637 | } | 1637 | } |
| 1638 | 1638 | ||
| 1639 | /* Collapsible: title="" renders as h3 for search indexing, reset visual styles */ | ||
| 1640 | .details summary h3 { | ||
| 1641 | margin: 0; | ||
| 1642 | font-size: inherit; | ||
| 1643 | font-weight: inherit; | ||
| 1644 | border: none; | ||
| 1645 | text-decoration: none; | ||
| 1646 | } | ||
| 1647 | |||
| 1639 | .vp-doc .vp-card, | 1648 | .vp-doc .vp-card, |
| 1640 | .vp-doc .vp-card:hover, | 1649 | .vp-doc .vp-card:hover, |
| 1641 | .vp-doc .vp-card:focus, | 1650 | .vp-doc .vp-card:focus, |