feat: add code-group title

pull/1969/head
Lave Coral 4 years ago committed by GitHub
parent 1ac7b24507
commit f727322c4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,3 +86,18 @@
.vp-code-group div[class*='language-'].active {
display: block;
}
.vp-code-group .caption {
text-align: center;
margin-bottom: 16px;
}
.vp-code-group .caption span {
border-bottom: 1px solid var(--vp-c-divider);
padding: 0.25em 2em 0.5em;
display: inline-block;
max-width: 100%;
}
.vp-doc .vp-code-group:has(> .caption) div[class*='language-'] {
margin-bottom: 0
}

Loading…
Cancel
Save