-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
125 lines (123 loc) · 2.42 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: radial-gradient(gray,black);
min-height: 100vh;
}
fieldset{
justify-content: center;
margin-top: 5rem;
width: 50%;
border: none;
}
input, select{
background: linear-gradient(90deg, yellow, gray);
border-radius: 5px;
}
option{
background-color: yellow;
}
.inputs-container{
display: flex;
gap: 1rem;
}
#container{
display: flex;
gap: 1rem;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 5rem 0;
}
.pokemon-card {
border-radius: 25px;
border: 1px solid black;
width: 15rem;
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
padding: 1em;
background: linear-gradient(45deg, gray, yellow, gray, yellow, gray);
box-shadow: 0px 5px 12px black;
}
.pokemon-card:hover{
cursor: pointer;
transform:perspective(400px) rotateY(-15deg);
z-index: 1;
background: linear-gradient(45deg, gray, yellow, aqua, gray, yellow);
background-size: 400% 400%;
animation: bg 1.4s ease-in-out infinite;
scale: 1.2;
transition: .5s;
}
@keyframes bg {
from{
background-position: 0% 100%;
}
50%{
rotate: -5deg;
transform:perspective(400px) rotateY(15deg)}
to{
background-position: 100% 0%;
}
}
.pokemon-card:not(hover){
z-index: 0;
transition: .5s;
}
.pokemon-card>div>p{
margin: 1px;
border: 2px solid darkblue;
border-radius: 0 0 5px 5px;
background-color: red;
color: darkblue;
font-weight: 600;
}
.pokemon-card>div>p:first-child{
background-color: greenyellow;
font-weight: 600;
}
.pokemon-card>div>p:last-child{
background-color: gray;
}
.pokemon-card>img{
width: 100%;
height: 17em;
object-fit: cover;
border: 12px solid darkblue;
border-radius: 5px 5px 0px 0px;
font-weight: 600;
}
.pokemon-card:hover>img{
animation: img 1.4s ease-in-out infinite alternate;
transition: .25s;
}
@keyframes img {
from{
filter:brightness(100%) ;
}
50%{
filter:brightness(130%) ;
}
to{
filter:brightness(100%) ;
}
}
.flex{
display: flex;
}
.col{
flex-direction: column;
}
.between{
justify-content: space-between;
}