-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (108 loc) · 1.92 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
*
{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body
{
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
overflow: none;
background-image: linear-gradient(180deg, #6ab7f5, #fff);
font: 400 1em "Arial", sans-serif;
font-size: clamp(1em, 5vw, 1em);
text-align: center;
}
main
{
display: inline-block;
position: relative;
padding: 15px;
}
img.search-book__pokemon
{
width: 100%;
max-width: 500px;
}
img.image__pokemon
{
display: block;
position: absolute;
top: 33%;
left: 36.5%;
width: 17%;
}
div.info__pokemon
{
position: absolute;
right: 27%;
bottom: 41%;
max-width: 80%;
color: #afafaf;
font-size: clamp(1em, 5vw, 1.5em);
text-align: right;
text-transform: capitalize;
}
span.name__pokemon
{
font-weight: 600;
}
form.form
{
position: absolute;
width: 65%;
left: 13.5%;
bottom: 27%;
}
input.search__pokemon
{
width: 100%;
padding: 5%;
background-color: white;
outline: none;
border: none;
border-radius: 5px;
box-shadow: -3px 3px #afafaf, -5px 5px #333;
font-size: clamp(0.8em, 3vw, 1.5em);
color: #555;
}
input.search__pokemon::placeholder
{
color: #aaa;
font-size: clamp(.5em, 3vw, 1em);
}
div.buttons
{
position: absolute;
display: flex;
justify-content: space-evenly;
width: 82%;
bottom: 15%;
}
.btn
{
background-color: white;
box-shadow: -2px 2px #afafaf, -3px 4px #333;
font-size: clamp(.9em, 5vw, 1em);
font-weight: 600;
color: #333;
padding: 10px;
border-radius: 5px;
border: none;
outline: none;
user-select: none;
}
.btn:active
{
box-shadow: inset -3px 3px #888, -2px 3px #333;
font-size: clamp(.95em, 1vw, .97em);
color: #333 !important;
}
.btn:focus
{
color: black;
}