-
Notifications
You must be signed in to change notification settings - Fork 10
/
styles.css
272 lines (244 loc) · 5.45 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
@import url("https://fonts.googleapis.com/css?family=Roboto");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
font-family: "Roboto", sans-serif;
}
body {
background: url("bg.png") no-repeat top center;
width: 100%;
height: 100vh;
background-size: cover;
}
.checkout_form {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 380px;
width: 100%;
background: rgba(225,225,225,0.35);
padding: 30px;
border-radius: 25px;
}
.card_number {
margin-bottom: 25px;
}
input[type="text"] {
padding: 10px;
border-radius: 3px;
font-size: 16px;
border: 2px solid #9e9e9e;
border: 0;
text-align: center;
}
.card_number .input {
width: 100%;
text-align: left;
}
.card_grp {
display: flex;
justify-content: space-between;
margin-bottom: 25px;
}
.expiry_date,
.cvc {
width: 48%;
display: flex;
}
.expiry_date .expiry_input {
width: 60px;
margin-right: 10px;
}
.cvc {
justify-content: flex-end;
align-items: center;
}
.cvc .cvc_input {
width: 80px;
margin-right: 10px;
}
.cvc_img {
border: 2px solid #fff;
width: 25px;
height: 25px;
font-size: 18px;
color: #fff;
font-weight: bold;
border-radius: 50%;
text-align: center;
cursor: pointer;
position: relative;
}
.cvc_img .img {
position: absolute;
width: 100px;
height: 80px;
padding: 10px 10px 5px;
border-radius: 3px;
top: -30px;
right: 33px;
background: #064887;
display: none;
}
.cvc_img .img img {
width: 100%;
height: 100%;
}
.cvc_img:hover .img {
display: block;
}
.btn {
width: 100%;
background: #064887;
color: #fff;
padding: 10px;
border-radius: 3px;
text-align: center;
font-size: 18px;
text-transform: uppercase;
cursor: pointer;
letter-spacing: 5px;
}
::-webkit-input-placeholder {
/* Chrome/Opera/Safari */
color: #064887;
}
::-moz-placeholder {
/* Firefox 19+ */
color: #064887;
}
:-ms-input-placeholder {
/* IE 10+ */
color: #064887;
}
@media screen and (max-width: 420px) {
.card_grp {
flex-direction: column;
}
.expiry_date {
width: 100%;
justify-content: space-between;
margin-bottom: 25px;
}
.expiry_date .expiry_input {
width: 48%;
margin: 0;
}
.cvc {
width: 100%;
justify-content: space-between;
}
.cvc .cvc_input {
width: 48%;
}
.cvc_img .img {
right: 26px;
}
}
/* Credit Card Validator */
#card-container {
position: relative;
width: 100%;
}
#logo {
width: 46px;
height: 30px;
position: absolute;
top: 5px;
right: 7px;
}
.visa {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 0 no-repeat;
}
.mastercard {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -30px no-repeat;
}
.amex {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -60px no-repeat;
}
.diners {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -90px no-repeat;
}
.discover {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -120px no-repeat;
}
.shopping {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -150px no-repeat;
}
.naranja {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -180px no-repeat;
}
.qida {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -210px no-repeat;
}
.clubdia {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -240px no-repeat;
}
.musicred {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -270px no-repeat;
}
.nevada {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -300px no-repeat;
}
.tuya {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -330px no-repeat;
}
.laanonima {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -360px no-repeat;
}
.crediguia {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -390px no-repeat;
}
.patagonia {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -410px no-repeat;
}
.sol {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -440px no-repeat;
}
.cabal {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -470px no-repeat;
}
.cencosud {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -500px no-repeat;
}
.credimas {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -530px no-repeat;
}
.carrefour {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -560px no-repeat;
}
.grupar {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -590px no-repeat;
}
.wishgift {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -610px no-repeat;
}
.unknown {
background: url("https://jscardvalidator-mpccmwdwqf.now.sh/cards_sprite_compressed_30.jpg")
0 -640px no-repeat;
}