-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (57 loc) · 2.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Gazable web components</title>
<style type="text/css">
html {
font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
}
body {
background-color: #2e2d2d;
display: grid;
grid-template-columns: auto auto auto auto auto auto;
grid-column-gap: 2vw;
grid-row-gap: 2vw;
}
gazable-square-button.accent-main {
--button-dwell-color: rgb(62, 133, 247); /* #3e85f7 */
--button-inner-background-color: rgb(62, 133, 247);
--button-activation-color-rgb: 62, 133, 247;
--button-disabled-inner-color: rgb(62, 133, 247);
--button-disabled-text-color: #fafafa;
--button-inner-border-color: rgb(62, 133, 247);
--button-focused-inner-border-width: 3px;
--button-focused-border-color: #fafafa;
}
gazable-square-button.white {
--button-dwell-color: rgb(62, 133, 247); /* #3e85f7 */
--button-activation-color-rgb: 62, 133, 247;
--button-inner-background-color: #fafafa; /* #fafafa */
--button-disabled-inner-color: #fafafa;
--button-text-color: #111;
--button-disabled-text-color: #888;
--button-focused-inner-border-width: 3px;
--button-focused-border-color: rgb(62, 133, 247);
}
</style>
</head>
<body>
<!-- Runs custom element -->
<gazable-square-button onclick="console.log('dark button')">Dark button</gazable-square-button>
<gazable-square-button onclick="console.log('dark button')" disabled>Disabled button</gazable-square-button>
<gazable-square-button class="white" onclick="console.log('light button')"
>Light white button</gazable-square-button
>
<gazable-square-button class="white" onclick="console.log('light button')" disabled
>Disabled white button</gazable-square-button
>
<gazable-square-button class="accent-main" onclick="console.log('accent-main button')"
>Accent main button</gazable-square-button
>
<gazable-square-button class="accent-main" onclick="console.log('accent-main button')" disabled
>Disabled accent main button</gazable-square-button
>
<script src="dist/web-components/gazable-square-button.js" type="module"></script>
</body>
</html>