forked from averkova-a/rick-and-morty-page
-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
124 lines (105 loc) · 1.94 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
@-moz-document url-prefix() {
html, body{
height: auto !important;
}
header {
padding: 50px;
}
}
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
font-family: 'Nunito', sans-serif;
}
#root {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
}
header {
display: flex;
height: 20%;
justify-content: space-around;
align-items: center;
}
.filter {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.buttons {
padding: 10px;
}
button {
padding: 10px;
height: 30px;
background-color: #ffffff;
border: 2px solid #b7d8eb;;
border-radius: 20px;
cursor: pointer;
line-height: 1px;
}
button:hover {
border: 2px solid #b7d8eb;
background-color: #b7d8eb;
transition: 0.5s;
}
.characters {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
flex-wrap: wrap;
padding: 0 15px;
height: 100%;
max-width: 840px;
}
.character {
display: flex;
flex-direction: column;
padding: 20px;
margin: 5px;
transition: .3s;
}
.character:hover {
box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.06);
cursor: pointer;
}
/* .character-image {
height: 50px;
} */
.name {
align-self: center;
font-size: 21px;
margin-top: 20px;
font-weight: bold;
}
.episode {
max-width: 300px;
min-height: 98px;
}
.episode::before{
content: "Episodes: ";
font-weight: bold;
}
.character * {
padding: 5px 0px;
}
.location::before {
content: "Last location: ";
font-weight: bold;
}
.date::before {
content: "Created: ";
font-weight: bold;
}
.species::before {
content: "Species: ";
font-weight: bold;
}