improve toc demo

This commit is contained in:
Philipp Kühn
2020-12-01 23:45:01 +01:00
parent d89c2a4d42
commit 1513f8ccc2
2 changed files with 7 additions and 5 deletions

View File

@@ -63,7 +63,9 @@ export default {
margin-top: 0.75em; margin-top: 0.75em;
} }
} }
</style>
<style lang="scss" scoped>
.toc { .toc {
opacity: 0.75; opacity: 0.75;
border-radius: 0.5rem; border-radius: 0.5rem;

View File

@@ -27,15 +27,15 @@ export default {
], ],
content: ` content: `
<toc></toc> <toc></toc>
<h2>heading</h2> <h2>1 heading</h2>
<p>paragraph</p> <p>paragraph</p>
<h3>heading</h3> <h3>1.1 heading</h3>
<p>paragraph</p> <p>paragraph</p>
<h3>heading</h3> <h3>1.2 heading</h3>
<p>paragraph</p> <p>paragraph</p>
<h2>heading</h2> <h2>2 heading</h2>
<p>paragraph</p> <p>paragraph</p>
<h3>heading</h3> <h3>2.1 heading</h3>
<p>paragraph</p> <p>paragraph</p>
`, `,
}) })