-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
189 lines (163 loc) · 2.82 KB
/
styles.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
* {
margin: 0;
box-sizing: border-box;
font-family: "Potta One", cursive;
}
h1 {
font-size: 32px;
font-weight: 700;
margin: 16px 0px;
}
main {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(
270deg,
#e3e2f2 0%,
#f3daec 29.69%,
#f4d3e9 73.96%,
#e3e2f2 100%
);
}
section {
display: flex;
align-items: center;
flex-direction: column;
height: 550px;
}
.container {
width: 100%;
display: flex;
flex-direction: column;
border-radius: 20px;
}
canvas {
border-bottom: 0px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(40px);
border-radius: 20px;
}
.options {
display: flex;
color: #222;
text-align: center;
flex-direction: column;
position: absolute;
padding-top: 16px;
padding-left: 16px;
grid-template-columns: repeat(5, 1fr);
}
.options input {
width: 48px;
height: 48px;
border: 0;
margin-bottom: 16px;
}
.options span {
font-size: 32px;
font-weight: 700;
line-height: 30px;
margin-bottom: 16px;
}
.options button {
cursor: pointer;
margin-bottom: 16px;
outline: none;
border: 0;
width: 48px;
height: 48px;
font-size: 20px;
font-weight: 700;
text-align: center;
border-radius: 5px;
color: #fff;
background: #8079f3;
text-transform: uppercase;
transform-style: preserve-3d;
transition: all 175ms cubic-bezier(0, 0, 1, 1);
}
.options button::before {
position: absolute;
content: "";
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #7168f2;
border-radius: inherit;
transform: translate3d(0, 6px, -1px);
transition: all 150ms cubic-bezier(0, 0, 1, 1);
}
.options button:hover,
.options button:focus {
background: #9d97f2;
transform: translate(0, 0.375em);
}
.options button:hover::before {
transform: translate3d(0, 0px, -4px);
}
.options button:active {
transform: translate(0px, -2px);
}
.options button:active::before {
transform: translate3d(0, 0, -1px);
}
.options button:last-child {
background: #f05c5c;
}
.options button:last-child::before {
background: #b74848;
}
@media (max-width: 1176px) {
section {
height: auto;
}
canvas {
width: 800px;
height: 374px;
}
}
@media (max-width: 900px) {
h1 {
font-size: 24px;
}
canvas {
width: 80vw;
height: 80vh;
}
.options {
align-items: center;
font-size: 12px;
}
.options input {
width: 24px;
height: 24px;
margin-bottom: 8px;
}
.options span {
font-size: 16px;
line-height: auto;
margin-bottom: 8px;
}
.options button {
width: 24px;
height: 24px;
font-size: 16px;
margin-bottom: 8px;
}
.options svg {
width: 12px;
height: 12px;
}
}
@media (max-width: 340px) {
h1 {
font-size: 16px;
}
}