-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
98 lines (93 loc) · 1.53 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
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: #e01a38;
}
/* Container */
main {
background-color: #171821;
width: 90%;
max-width: 500px;
margin: 0 auto;
padding: 3em 2em;
position: absolute;
transform: translateX(-50%);
left: 50%;
right: 50%;
top: 1em;
border-radius: 1em;
}
/* Input */
.input-container {
display: grid;
grid-template-columns: 9fr 3fr;
gap: 1em;
}
input {
padding: 1em 0.5em;
background-color: #3a3939;
color: #ffffff;
border: none;
border-radius: 0.5em;
outline: none;
}
button {
outline: none;
border: none;
background-color: #e01a38;
color: #ffffff;
border-radius: 0.5em;
}
/* Display Container */
.display-container {
padding: 1em;
}
.container-character-image {
background-color: #fff;
padding: 0.5em;
height: 9.37em;
width: 9.37em;
display: block;
margin: auto;
border-radius: 50%;
}
.container-character-image img {
width: 100%;
position: relative;
width: block;
border-radius: 50%;
}
.character-name {
padding: 0.5em 0 0.8em 0;
text-align: center;
color: #fff;
text-transform: uppercase;
font-size: 1.2em;
font-weight: 600;
}
.character-description {
text-align: justify;
color: #a0a0a6;
line-height: 2em;
font-weight: 300;
}
/* List */
.list {
position: absolute;
width: 64%;
background-color: #555;
color: #fff;
z-index: 1;
}
.autocomplete-items {
padding: 0.5em;
}
.autocomplete-items:hover {
background-color: #ddd;
color: #171821;
}