-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
142 lines (141 loc) · 2.34 KB
/
main.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
142
@font-face {
font-family: 'Pretendard Variable';
font-weight: 45 920;
font-style: normal;
font-display: swap;
src: local('Pretendard Variable'),
url('./PretendardVariable-subset.woff2') format('woff2-variations');
}
* {
font-family: 'Pretendard Variable';
transition: all 0.5s;
}
body {
opacity: 0;
overflow: hidden;
display: flex;
height: 100vh;
flex-direction: column;
background: black;
justify-content: center;
align-items: center;
color: white;
}
canvas {
opacity: 0;
z-index: 999;
}
#copyCanvas {
display: none;
/* position: absolute; */
}
.controller {
opacity: 0;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 15px;
}
button {
outline: none;
border: none;
padding: 10px 40px;
background-color: rgb(24, 24, 24);
border-radius: 5px;
margin-right: 10px;
color: white;
cursor: pointer;
transition: all 0.5s;
margin-bottom: 10px;
}
#autoBtn {
background-color: rgb(82, 82, 242);
}
#originalBtn,
#resetBtn {
border: 1px solid white;
}
button:hover {
background-color: white !important;
color: black;
}
.filebox label {
display: inline-block;
padding: 1vmax 2vmax;
color: rgb(255, 255, 255);
font-size: inherit;
line-height: normal;
vertical-align: middle;
background-color: #c33232;
cursor: pointer;
border: 1px solid #ebebeb;
border-radius: 0.25em;
}
.filebox label:hover {
color: black;
background-color: white;
}
.filebox input[type='file'] {
/* 파일 필드 숨기기 */
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.mainWrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
}
h1 {
font-size: 4vmax;
margin-bottom: 3vmax;
display: inline-block;
margin-top: 0px;
}
span {
font-size: 4vmax;
}
.mainWrapper.hide {
animation: fadeOut 0.5s forwards;
}
canvas,
.controller.fadeIn {
animation: fadeIn 0.5s forwards;
animation-delay: 0.25s;
}
@keyframes fadeOut {
50% {
opacity: 0.5;
}
100% {
opacity: 0;
z-index: 1;
top: -99999px;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
@media (max-width: 400px) {
button {
padding: 2.72vmin 7.3vmin;
}
input {
width: 50vw;
}
}