Skip to content

Commit

Permalink
update example page
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Jul 31, 2023
1 parent 220c6d7 commit 0832a13
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion demo/code.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

pre code.hljs {
display: block;
overflow-x: auto;
max-height: 40rem;
overflow: auto;
padding: 1em;
}

Expand Down Expand Up @@ -91,6 +92,7 @@ code.hljs {
.hljs-selector-id,
.hljs-string,
.hljs-template-tag,
.hljs-attribute,
.hljs-type {
color: var(--code-accent-2);
}
Expand Down
12 changes: 10 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ <h2>No Theme</h2>
<p>
By default, the included styles only cover the most basic
functionality such as collapsing and indentation. You can
assign your CSS classes to the rendered elements as well as
fully customize the render function. Without any theming,
assign your own CSS classes to the rendered elements as well
as fully customize the render function. Without any theming,
the generated tree looks as follows. In addition to that,
the basic styles are controlled by
<a
Expand All @@ -242,6 +242,14 @@ <h2>No Theme</h2>
</p>
<demo-embed name="unstyled"></demo-embed>
<div id="tree-unstyled"></div>

<h2>Custom Theme</h2>
<p>
The theme that is used here on this example page can be
found in the repository and serves as a good boiler plate
for custom themes.
</p>
<script src="https://marcantondahmen.github.io/emgithub/embed-v2.js?target=https%3A%2F%2Fgithub.com%2Fmarcantondahmen%2Fsortable-tree%2Fblob%2Fmaster%2Fdemo%2Ftree.less%3Fts%3D2&style=dark&type=code&showLineNumbers=on&showFullPath=on&showCopy=on"></script>
</main>
</div>
</body>
Expand Down

0 comments on commit 0832a13

Please sign in to comment.