-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
105 lines (93 loc) · 1.56 KB
/
style.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
body {
background-color: orangered;
color: white;
margin: 0;
font-family: poppins;
}
.container {
padding: 40px;
margin: 0 auto;
}
.form {
text-align: center;
}
.form input {
border: none;
outline: none;
border-radius: 15px;
font-size: 18px;
padding: 12px 20px;
text-align: center;
}
.form input[type="text"] {
margin-bottom: 20px;
background: white;
min-width: 300px;
max-width: 100%;
}
h2 {
text-transform: uppercase;
text-align: center;
font-size: 30px;
}
#pokedex {
margin-top: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(470px, 1fr));
grid-gap: 20px;
padding-inline-start: 0;
}
.card {
margin: auto 15px;
list-style: none;
padding: 40px;
background-color: #f4f4f4;
color: #222;
text-align: center;
border-radius: 15px;
}
.card:hover {
animation: bounce 0.5s linear;
}
.card-title {
text-transform: capitalize;
margin-bottom: 0px;
font-size: 32px;
font-weight: normal;
}
.card-subtitle {
margin-top: 5px;
color: #666;
font-weight: lighter;
}
.card-image {
height: 180px;
max-width: 100%;
}
@keyframes bounce {
20% {
transform: translateY(-6px);
}
40% {
transform: translateY(0px);
}
80% {
transform: translateY(-2px);
}
100% {
transform: translateY(0);
}
}
@media screen and (max-width: 450px) {
#pokedex {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
}
@media screen and (max-width: 350px) {
.form input[type="text"] {
margin-bottom: 20px;
background: white;
min-width: 250px;
max-width: 100%;
}
}