Create index.css
Browse files
index.css
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
h3 {
|
28 |
+
text-align: center;
|
29 |
+
}
|
30 |
+
|
31 |
+
#container {
|
32 |
+
position: relative;
|
33 |
+
width: 640px;
|
34 |
+
height: 420px;
|
35 |
+
max-width: 100%;
|
36 |
+
max-height: 100%;
|
37 |
+
border: 2px dashed #d1d5db;
|
38 |
+
border-radius: 0.75rem;
|
39 |
+
overflow: hidden;
|
40 |
+
cursor: pointer;
|
41 |
+
margin-top: 1rem;
|
42 |
+
background-size: 100% 100%;
|
43 |
+
background-position: center;
|
44 |
+
background-repeat: no-repeat;
|
45 |
+
}
|
46 |
+
|
47 |
+
#mask-output {
|
48 |
+
position: absolute;
|
49 |
+
width: 100%;
|
50 |
+
height: 100%;
|
51 |
+
pointer-events: none;
|
52 |
+
}
|
53 |
+
|
54 |
+
#upload-button {
|
55 |
+
gap: 0.4rem;
|
56 |
+
font-size: 18px;
|
57 |
+
cursor: pointer;
|
58 |
+
opacity: 0.2;
|
59 |
+
}
|
60 |
+
|
61 |
+
#upload {
|
62 |
+
display: none;
|
63 |
+
}
|
64 |
+
|
65 |
+
svg {
|
66 |
+
pointer-events: none;
|
67 |
+
}
|
68 |
+
|
69 |
+
#example {
|
70 |
+
font-size: 14px;
|
71 |
+
text-decoration: underline;
|
72 |
+
cursor: pointer;
|
73 |
+
pointer-events: none;
|
74 |
+
}
|
75 |
+
|
76 |
+
#example:hover {
|
77 |
+
color: #2563eb;
|
78 |
+
}
|
79 |
+
|
80 |
+
canvas {
|
81 |
+
position: absolute;
|
82 |
+
width: 100%;
|
83 |
+
height: 100%;
|
84 |
+
opacity: 0.6;
|
85 |
+
}
|
86 |
+
|
87 |
+
#status {
|
88 |
+
min-height: 16px;
|
89 |
+
margin: 8px 0;
|
90 |
+
}
|
91 |
+
|
92 |
+
.icon {
|
93 |
+
height: 16px;
|
94 |
+
width: 16px;
|
95 |
+
position: absolute;
|
96 |
+
transform: translate(-50%, -50%);
|
97 |
+
}
|
98 |
+
|
99 |
+
#controls > button {
|
100 |
+
padding: 6px 12px;
|
101 |
+
background-color: #3498db;
|
102 |
+
color: white;
|
103 |
+
border: 1px solid #2980b9;
|
104 |
+
border-radius: 5px;
|
105 |
+
cursor: pointer;
|
106 |
+
font-size: 16px;
|
107 |
+
}
|
108 |
+
|
109 |
+
#controls > button:disabled {
|
110 |
+
background-color: #d1d5db;
|
111 |
+
color: #6b7280;
|
112 |
+
border: 1px solid #9ca3af;
|
113 |
+
cursor: not-allowed;
|
114 |
+
}
|
115 |
+
|
116 |
+
#information {
|
117 |
+
margin-top: 0.25rem;
|
118 |
+
font-size: 15px;
|
119 |
+
}
|