Create style.css
Browse files
style.css
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
* {
|
2 |
+
box-sizing: border-box;
|
3 |
+
padding: 0;
|
4 |
+
margin: 0;
|
5 |
+
font-family: sans-serif
|
6 |
+
}
|
7 |
+
|
8 |
+
html,
|
9 |
+
body {
|
10 |
+
height: 100%
|
11 |
+
}
|
12 |
+
|
13 |
+
body {
|
14 |
+
padding: 16px 32px
|
15 |
+
}
|
16 |
+
|
17 |
+
body,
|
18 |
+
#container,
|
19 |
+
#upload-button {
|
20 |
+
display: flex;
|
21 |
+
flex-direction: column;
|
22 |
+
justify-content: center;
|
23 |
+
align-items: center
|
24 |
+
}
|
25 |
+
|
26 |
+
h1 {
|
27 |
+
text-align: center
|
28 |
+
}
|
29 |
+
|
30 |
+
#container {
|
31 |
+
position: relative;
|
32 |
+
width: 640px;
|
33 |
+
height: 420px;
|
34 |
+
max-width: 100%;
|
35 |
+
max-height: 100%;
|
36 |
+
border: 2px dashed #D1D5DB;
|
37 |
+
border-radius: .75rem;
|
38 |
+
overflow: hidden;
|
39 |
+
margin-top: 1rem;
|
40 |
+
background-size: 100% 100%;
|
41 |
+
background-position: center;
|
42 |
+
background-repeat: no-repeat
|
43 |
+
}
|
44 |
+
|
45 |
+
#mask-output {
|
46 |
+
position: absolute;
|
47 |
+
width: 100%;
|
48 |
+
height: 100%;
|
49 |
+
pointer-events: none
|
50 |
+
}
|
51 |
+
|
52 |
+
#upload-button {
|
53 |
+
gap: .4rem;
|
54 |
+
font-size: 18px;
|
55 |
+
cursor: pointer
|
56 |
+
}
|
57 |
+
|
58 |
+
#upload {
|
59 |
+
display: none
|
60 |
+
}
|
61 |
+
|
62 |
+
svg {
|
63 |
+
pointer-events: none
|
64 |
+
}
|
65 |
+
|
66 |
+
#example {
|
67 |
+
font-size: 14px;
|
68 |
+
text-decoration: underline;
|
69 |
+
cursor: pointer
|
70 |
+
}
|
71 |
+
|
72 |
+
#example:hover {
|
73 |
+
color: #2563eb
|
74 |
+
}
|
75 |
+
|
76 |
+
canvas {
|
77 |
+
position: absolute;
|
78 |
+
width: 100%;
|
79 |
+
height: 100%
|
80 |
+
}
|
81 |
+
|
82 |
+
#status {
|
83 |
+
min-height: 16px;
|
84 |
+
margin: 8px 0
|
85 |
+
}
|
86 |
+
|
87 |
+
input[type=range] {
|
88 |
+
position: absolute;
|
89 |
+
top: 10px;
|
90 |
+
right: 10px;
|
91 |
+
z-index: 1
|
92 |
+
}
|
93 |
+
|
94 |
+
#drop-zone {
|
95 |
+
display: none;
|
96 |
+
position: absolute;
|
97 |
+
top: 0;
|
98 |
+
left: 0;
|
99 |
+
width: 100%;
|
100 |
+
height: 100%;
|
101 |
+
justify-content: center;
|
102 |
+
align-items: center;
|
103 |
+
font-size: 20px;
|
104 |
+
background-color: rgba(0, 0, 0, 0.5);
|
105 |
+
color: white;
|
106 |
+
}
|
107 |
+
|
108 |
+
#container.drag-over #drop-zone {
|
109 |
+
display: flex;
|
110 |
+
}
|