-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
94 lines (83 loc) · 1.52 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
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;500;600;700;800&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Oxanium', cursive;
}
body {
text-align: center;
background: linear-gradient(to bottom, #6ab7f5, #fff);
min-height: 100vh;
user-select: none;
}
main {
display: inline-block;
margin-top: 2%;
padding: 15px;
position: relative;
}
.pokedex {
width: 100%;
max-width: 425px;
}
.pokemon_image {
position: absolute;
bottom: 53%;
left: 35%;
transform: translate(-63%, 20);
height: 15%;
}
.pokemon_data {
position: absolute;
font-weight: 600;
color: #aaa;
top: 54.5%;
right: 27%;
font-size: clamp(8px, 5vw, 25px);
}
.pokemon_name {
color: #3a444d;
text-transform: capitalize;
}
.form {
position: absolute;
width: 65%;
top: 65%;
left: 13.5%;
}
.input_search {
width: 100%;
padding: 4%;
outline: none;
border: 2px solid #333;
border-radius: 5px;
font-weight: 600;
color: #3a444d;
font-size: clamp(8px, 5vw, 1rem);
box-shadow: -3px 4px 0 #888, -5px 7px 0 #333;
}
.buttons {
position: absolute;
bottom: 10%;
left: 50%;
width: 65%;
transform: translate(-57%, 0);
display: flex;
gap: 20px;
}
.button {
width: 50%;
padding: 4%;
border: 2px solid #000;
font-size: clamp(5px, 5vw, 1rem);
font-weight: 600;
color: #fff;
background-color: #444;
box-shadow: -2px 3px 0 #222, -4px 6px 0 #000;
cursor: pointer;
}
.button:active {
box-shadow: inset -4px 4px 0 #222;
font-size: 0.9rem;
}