-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
142 lines (117 loc) · 2.4 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@200;300;400;500;600;700;800&display=swap');
/* flex:shrink - para adaptar minha div na div principal */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Oxanium', cursive;
}
body{
text-align: center;
min-height: 100vh;
background: linear-gradient(to bottom,#6ab7f5,#fff);
}
main{
position: relative;
display: inline-block;
padding: 15px;
margin-top: 2%;
}
.pokedex{
width: 100%;
max-width: 425px;
}
.pokemon{
position: absolute;
bottom: 51%;
left: 50%;
transform: translate(-63%,0);
height: 18%;
}
.data_pokemon{
position: absolute;
color: rgb(112, 112, 112);
font-weight: 600;
bottom: 40%;
right: 27%;
font-size: clamp(8px,5vw, 25px);
}
.pokemon_name{
/* apenas a primeira letra em maiusculo */
text-transform: capitalize;
color: #3a444d;
}
.form{
position: absolute;
width: 65%;
bottom: 28%;
left: 13.5%;
}
.search_pokemon{
padding: 4%;
width: 100%;
outline: none;
border: 2px solid #333;
border-radius: 10px;
box-shadow: -2px 3px 0 #888,-4px 5px 0 #333;
font-weight: 600;
color: #3a444d;
font-size: clamp(8px,5vw, 15px);
}
.butons{
position: absolute;
bottom: 18%;
left: 50%;
width: 65%;
transform: translate(-57.5%,0);
display: flex;
gap: 20px;
}
.exit{
position: absolute;
visibility: hidden;
bottom: 30.5%;
right: 20%;
border: 2px solid #333;
background-color: #444;
font-size: clamp(8px,5vw,15px);
padding: 2px 8px;
color: white;
}
.exit:active{
box-shadow: inset -4px 4px 0 #222;
/* font-size: 0.9rem; */
}
.button{
width: 50%;
padding: 4%;
font-size: clamp(8px,5vw,13px);
border-radius: 10%;
border: 2px solid #333;
box-shadow: -2px 2px 0 #222,-4px 3px 0 #000;
color: white;
background-color: #444;
}
.button:active{
box-shadow: inset -4px 4px 0 #222;
font-size: 0.9rem;
}
.ativo{
position: absolute;
visibility: hidden;
bottom: 15%;
left: 11.5%;
background-color: #e3e3e3;
border-radius: 5px;
border: 2px solid #333;
box-shadow: -2px 3px 0 #888,-4px 5px 0 #333;
width: 70%;
}
.texto{
display: block;
margin-top: 1%;
margin-bottom: 2%;
margin-left: 2%;
text-align: left;
text-transform: capitalize;
}