-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (31 loc) · 1011 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./public/tester-styles.css">
<title>cn-dice Test</title>
</head>
<body>
<section>
<h1>Basic dice styles</h1>
<div class="flex-row">
<div class="d4 die">
<span>4</span>
</div>
</div>
<section>
<h1>All basic dice</h1>
<div style="display:flex;gap:0.5rem;flex-wrap: nowrap; height: 10rem;">
<cn-dice sides="4"></cn-dice>
<cn-dice sides="6"></cn-dice>
<cn-dice sides="8"></cn-dice>
<cn-dice sides="10"></cn-dice>
<cn-dice sides="12"></cn-dice>
<cn-dice sides="20"></cn-dice>
</div>
</section>
<p>Here is a d20 <cn-dice sides="20" value="7"></cn-dice>, within a paragraph. The testing css has <code>--cn-dice-size: 24px;</code> where 24px is the line-height of <code>p</code></p>
<script type="module" src="/src/cn-dice.ts"></script>
</body>
</html>