-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.scss
87 lines (80 loc) · 1.82 KB
/
main.scss
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
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');
*,*::before,*::after{
box-sizing: border-box;
}
body{
background-color: darkred;
color: white;
text-align: center;
padding: 1.25rem;
font-family: "Roboto", sans-serif;
}
.container{
width: 80%;
margin: 0 auto;
overflow: hidden;
}
.search-container{
width: 80%;
margin: 0 auto;
position: relative;
input{
color: white;
padding: 0.5rem 1.5rem;
font-weight: 700;
width:100%;
background-color: transparent;
border: 3px solid grey;
border-radius: .25rem;
outline: none;
transition: 150ms ease-in-out;
&:hover, &:focus{
border-color: white;
}
}
i{
position: absolute;
top: 0.7rem;
right: 1.5rem;
cursor: pointer;
}
}
.character-list{
width: 80%;
margin: 0 auto;
padding: 1rem 0;
list-style: none;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
// grid-template-columns: repeat(2, 1fr);
grid-gap: 1.5rem;
.character{
color: black;
text-align: left;
background-color: white;
border-radius: .5rem;
display: grid;
grid-template-columns: 3fr 1fr;
grid-template-areas:
'name image'
'house image'
'patronus image';
padding: 1rem 1.75rem;
.name{
grid-area: name;
margin-bottom: -.25rem;
}
.house{
grid-area: house;
margin-bottom: -.25rem;
}
.patronus{
grid-area: patronus;
}
.image{
grid-area: image;
max-height: 100px;
align-self: center;
}
}
}