-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
78 lines (77 loc) · 2.21 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>gizmo test</title>
<style>
body,
html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.description{
padding: 20px;
max-width: 300px;
}
.demo-light, .demo-dark{
border: solid 1px #eee;
padding: 30px;
}
.demo-dark{
background-color: black;
}
jscadui-gizmo.color-axes {
--cube-z-color: #00f;
--cube-x-color: #f00;
--cube-y-color: #0f0;
}
jscadui-gizmo.dark {
--cube-line-color: #666;
--cube-bg: #222;
--cube-fg: #aaa;
--cube-bg-hover: #4449;
--cube-fg-hover: #aaa;
}
jscadui-gizmo.dark.color-axes {
--cube-z-color: rgb(24, 65, 153);
--cube-x-color: #900;
--cube-y-color: #090;
}
jscadui-gizmo.custom-names::part(face) {
font-size: 36px;
}
</style>
<script type="module" src="index.demo.js"></script>
</head>
<body>
Press the mouse button down and drag to rotate the cubes
<table class="main">
<tr>
<td class="description">
Example gizmo light(default) and dark theme
</td>
<td class="demo-light"><jscadui-gizmo/></td>
<td class="demo-dark"><jscadui-gizmo class="dark"/></td>
</tr>
<tr>
<td class="description">
Example gizmo light(default) and dark theme with axes colors
</td>
<td class="demo-light"><jscadui-gizmo class="color-axes"/></td>
<td class="demo-dark"><jscadui-gizmo class="dark color-axes"/></td>
</tr>
<tr>
<td class="description">
Example gizmo light(default) and dark theme with axes colors and custom names
</td>
<td class="demo-light"><jscadui-gizmo class="color-axes custom-names"/></td>
<td class="demo-dark"><jscadui-gizmo class="dark color-axes custom-names"/></td>
</tr>
</table>
</body>
</html>