-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
102 lines (92 loc) · 1.56 KB
/
styles.css
File metadata and controls
102 lines (92 loc) · 1.56 KB
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
* {
box-sizing: border-box;
}
html {
width: 100%;
height: 100%;
}
body {
width: 100%;
height: auto;
}
#page-container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
#pokedex-header {
width: 100%;
max-width: 1200px;
height: 20%;
background-color: white;
}
#pokemon-display {
width: 100%;
max-width: 1200px;
height: 75%;
background-color: white;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.pokemon {
width: 300px;
height: 200px;
display: grid;
grid-template-columns: 1.2fr 0.8fr;
grid-template-rows: 0.9fr 1.1fr;
gap: 5px 5px;
grid-template-areas:
"name id"
"type image";
/* background-color: white; */
margin: 10px;
border-radius: 10px;
}
.pokemon .active {
border: 2px solid red;
}
.pokemon-id {
grid-area: id;
font-size: 2rem;
display: flex;
justify-content: flex-end;
padding: 10px 10px 0 0;
}
.pokemon-name {
grid-area: name;
display: flex;
font-size: 2rem;
padding: 10px 0 0 10px;
}
.pokemon-image {
grid-area: image;
height: 100%;
width: 100%;
}
.pokemon-image > img {
object-fit: cover;
height: 100%;
width: 100%;
}
.pokemon-type {
grid-area: type;
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
}
.pokemon-type > p {
border: 1px solid black;
border-radius: 15px;
font-size: 2rem;
background-color: rgba(0, 0, 0, 0.1);
letter-spacing: 3px;
padding: 0 5px 0 5px;
}