Skip to content

Commit

Permalink
docs(health-index): format demos
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Jun 17, 2024
1 parent e02d5bd commit 210d5b0
Showing 1 changed file with 55 additions and 56 deletions.
111 changes: 55 additions & 56 deletions elements/rh-health-index/demo/rh-health-index.html
Original file line number Diff line number Diff line change
@@ -1,71 +1,70 @@
<ul class="demo">
<li>
<h2>SM</h2>
<div><rh-health-index grade="A" size="sm">A</rh-health-index></div>
<div><rh-health-index grade="B" size="sm">B</rh-health-index></div>
<div><rh-health-index grade="C" size="sm">C</rh-health-index></div>
<div><rh-health-index grade="D" size="sm">D</rh-health-index></div>
<div><rh-health-index grade="E" size="sm">E</rh-health-index></div>
<div><rh-health-index grade="F" size="sm">F</rh-health-index></div>
</li>
<li>
<h2>Default</h2>
<div><rh-health-index grade="A">A</rh-health-index></div>
<div><rh-health-index grade="B">B</rh-health-index></div>
<div><rh-health-index grade="C">C</rh-health-index></div>
<div><rh-health-index grade="D">D</rh-health-index></div>
<div><rh-health-index grade="E">E</rh-health-index></div>
<div><rh-health-index grade="F">F</rh-health-index></div>
</li>

<li>
<h2>LG</h2>
<div><rh-health-index grade="A" size="lg">A</rh-health-index></div>
<div><rh-health-index grade="B" size="lg">B</rh-health-index></div>
<div><rh-health-index grade="C" size="lg">C</rh-health-index></div>
<div><rh-health-index grade="D" size="lg">D</rh-health-index></div>
<div><rh-health-index grade="E" size="lg">E</rh-health-index></div>
<div><rh-health-index grade="F" size="lg">F</rh-health-index></div>
</li>

<li>
<h2>XL</h2>
<div><rh-health-index grade="A" size="xl">A</rh-health-index></div>
<div><rh-health-index grade="B" size="xl">B</rh-health-index></div>
<div><rh-health-index grade="C" size="xl">C</rh-health-index></div>
<div><rh-health-index grade="D" size="xl">D</rh-health-index></div>
<div><rh-health-index grade="E" size="xl">E</rh-health-index></div>
<div><rh-health-index grade="F" size="xl">F</rh-health-index></div>
</li>
</ul>
<li>
<h2>SM</h2>
<rh-health-index grade="A" size="sm">A</rh-health-index>
<rh-health-index grade="B" size="sm">B</rh-health-index>
<rh-health-index grade="C" size="sm">C</rh-health-index>
<rh-health-index grade="D" size="sm">D</rh-health-index>
<rh-health-index grade="E" size="sm">E</rh-health-index>
<rh-health-index grade="F" size="sm">F</rh-health-index>
</li>

<li>
<h2>Default</h2>
<rh-health-index grade="A">A</rh-health-index>
<rh-health-index grade="B">B</rh-health-index>
<rh-health-index grade="C">C</rh-health-index>
<rh-health-index grade="D">D</rh-health-index>
<rh-health-index grade="E">E</rh-health-index>
<rh-health-index grade="F">F</rh-health-index>
</li>

<li>
<h2>LG</h2>
<rh-health-index grade="A" size="lg">A</rh-health-index>
<rh-health-index grade="B" size="lg">B</rh-health-index>
<rh-health-index grade="C" size="lg">C</rh-health-index>
<rh-health-index grade="D" size="lg">D</rh-health-index>
<rh-health-index grade="E" size="lg">E</rh-health-index>
<rh-health-index grade="F" size="lg">F</rh-health-index>
</li>

<li>
<h2>XL</h2>
<rh-health-index grade="A" size="xl">A</rh-health-index>
<rh-health-index grade="B" size="xl">B</rh-health-index>
<rh-health-index grade="C" size="xl">C</rh-health-index>
<rh-health-index grade="D" size="xl">D</rh-health-index>
<rh-health-index grade="E" size="xl">E</rh-health-index>
<rh-health-index grade="F" size="xl">F</rh-health-index>
</li>
</ul>

<script type="module">
import '@rhds/elements/rh-surface/rh-surface.js';
import '@rhds/elements/rh-health-index/rh-health-index.js';
import '@rhds/elements/rh-surface/rh-surface.js';
import '@rhds/elements/rh-health-index/rh-health-index.js';
</script>

<style>
.demo {
.demo {
margin: 2rem;
padding: 0;
list-style: none;
width: 800px;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 2rem;
}
& h2 {
font-size: var(--rh-font-size-body-text-lg, 1.125rem);
}
& li {
display: flex;
flex-flow: column;
gap: var(--rh-space-lg, 16px);
margin: 0;
padding: 0;
}
}
</style>

.demo h2 {
font-size: var(--rh-font-size-body-text-lg, 1.125rem);
}

.demo li {
margin: 0;
padding: 0;
}

.demo rh-surface,
.demo div {
margin-block-end: 1rem;
}
</style>

0 comments on commit 210d5b0

Please sign in to comment.