-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_zen-doodle.html
71 lines (64 loc) · 1.39 KB
/
_zen-doodle.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
<style>
:host {
display: flex;
flex-direction: column;
}
.canvas-container {
position: relative;
flex: 1;
margin: 0 24px;
}
.canvas-container canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.buttons {
padding: 16px;
display: flex;
justify-content: space-around;
min-height: 0;
}
.buttons button,
.buttons .wrapper {
padding: 8px 16px;
border-radius: 12px;
border: solid 2px black;
font-family: var(--gotham);
background: white;
font-weight: bold;
text-transform: uppercase;
cursor: pointer;
}
.buttons button:hover,
.buttons button:focus {
border: solid 2px black;
box-shadow: 2px 2px 8px rgba(0, 0, 0, .4);
}
.buttons .wrapper input {
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
border: none;
font-size: 20px;
}
.buttons .wrapper input::-webkit-color-swatch-wrapper {
padding: 0;
}
</style>
<div class="canvas-container" role="img" alt="drawing canvas">
<canvas class="output" as="canvas"></canvas>
</div>
<div class="buttons">
<button as="saveButton">Save</button>
<button as="resetButton">Reset</button>
<button as="undoButton">Undo</button>
<div class="wrapper" as="colorWrapper">
Ink:
<input type="color" as="color" value="#CD8ED4">
</div>
</div>
<a as="download" hidden></a>