-
Notifications
You must be signed in to change notification settings - Fork 0
/
Generator.css
154 lines (151 loc) · 3.11 KB
/
Generator.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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
padding: 0 10px;
min-height: 100vh;
align-items: center;
background: #000000;
justify-content: center;
background-image: url('background.jpg');
background-size: cover;
background-position: center;
}
.wrapper {
height: 265px;
max-width: 410px;
background: linear-gradient(#ffffff, #48b0dc);
border-radius: 7px;
padding: 20px 25px 0;
transition: height 0.2s ease;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
border: 3px solid white;
}
.wrapper.active {
height: 530px;
}
header h1 {
font-size: 21px;
font-weight: 900;
color: rgb(0, 81, 255);
}
.wrapper .form {
margin: 20px 0 25px;
}
.form :where(input, button) {
width: 100%;
height: 55px;
border: none;
outline: none;
border-radius: 5px;
transition: 0.1s ease;
padding: 20px;
border-radius: 5px;
background-color: rgba(255, 255, 255, 0.8);
}
.form input {
font-size: 12px;
padding: 0 17px;
border: 1px solid #999;
}
.form input:focus {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
}
.form input::placeholder {
color: #999;
}
.form button {
color: #fff;
cursor: pointer;
margin-top: 20px;
font-size: 17px;
background: #3498db;
}
.form button:hover {
color: #3498db;
background: #fff;
}
.qr-code {
opacity: 0;
display: flex;
padding: 33px 0;
border-radius: 5px;
align-items: center;
pointer-events: none;
justify-content: center;
border: 1px solid #ccc;
}
.wrapper.active .qr-code {
opacity: 1;
pointer-events: auto;
transition: opacity 0.5s 0.05s ease;
}
.qr-code img {
width: 170px;
}
@media (max-width: 430px) {
.wrapper {
height: 255px;
padding: 16px 20px;
}
.wrapper.active {
height: 510px;
}
.form :where(input, button) {
height: 52px;
}
.qr-code img {
width: 160px;
}
}
:root {
--primary-color: #32a852;
--secondary-color: #ffffff;
--tertiary-color: #999;
}
body {
background: var(--primary-color);
}
.wrapper {
background: linear-gradient(var(--secondary-color), var(--primary-color));
}
header h1 {
color: var(--primary-color);
}
.form input {
border: 1px solid var(--tertiary-color);
}
.form input::placeholder {
color: var(--tertiary-color);
}
.form button {
color: var(--secondary-color);
background: var(--primary-color);
}
.form button:hover {
color: var(--primary-color);
background: var(--secondary-color);
transition: background-color 0.2s ease, color 0.2s ease;
}
@keyframes expand {
0% { height: 265px; }
100% { height: 530px; }
}
.wrapper.active {
animation: expand 0.2s ease-out;
}
button {
transition: background-color 0.3s ease;
}
button:hover {
background-color: #3498db;
color: #fff;
}
footer {
background-color: rgba(255, 255, 255, 0.8);
}