-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
141 lines (130 loc) · 2.16 KB
/
index.css
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@-ms-viewport {
width: device-width;
}
body {
width: 100%;
margin: 0;
padding: 0;
font-family: sans-serif;
}
header {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 250px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
header h1 {
font-size: 36px;
margin: 0;
}
header p {
text-align: center;
font-size: 18px;
}
main {
position: relative;
width: 100%;
display: flex;
margin: 50px 0;
min-height: 62vmin;
padding: 0;
justify-content: center;
align-items: center;
overflow: hidden;
font-family: sans-serif;
}
canvas {
display: block;
width: 62vmin;
height: 62vmin;
border: 1rem solid white;
box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.1);
}
overlay- {
position: absolute;
display: flex;
align-items: center;
min-height: 62vmin;
top: 16px;
left: 0;
width: 100%;
pointer-events: none;
}
overlay- img {
display: block;
width: 62vmin;
height: 62vmin;
margin-left: calc(50% - 31vmin);
pointer-events: none;
background: #f2f2f2;
flex: none;
}
overlay- img.active {
background: transparent;
}
overlay- img:not(.active) {
transform: scale(0.618);
}
button {
border: 0;
padding: 1rem 2rem;
background: #eee;
font-size: 22px;
font-weight: bold;
outline: none;
color: #999;
margin: 30px 0 30px 0;
}
button:hover {
color: #666;
}
controls- {
text-align: center;
bottom: 0;
left: 0;
padding: 50px 0px;
width: 100%;
}
.upload {
position: relative;
text-align: center;
margin: 50px 0 0 0;
z-index: 10;
}
.upload-area {
z-index: 999;
padding: 30px 20px;
width: 60%;
margin: 0 auto;
border: 1px dashed rgb(202, 202, 202);
border-width: 5px;
border-spacing: 10px;
font-size: 20px;
color: rgb(54, 54, 54);
}
#file-upload {
display: block;
z-index: 1000 !important;
font-size: 24px;
width: 100%;
position: relative;
}
.download {
color: #1793b3;
border: 1px solid #1793b3;
background-color: #fff;
border-radius: 50px;
display: block;
margin: 30px auto;
}
.download:hover {
color: white;
background-color: #1793b3;
}
@media screen and (max-width: 768px) {
.upload-area {
width: calc(90% - 40px);
}
}