-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
101 lines (83 loc) · 1.29 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
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Poppins', sans-serif;
}
nav {
height: 70px;
display: flex;
padding: 20px 36px;
box-shadow: 0px 2.98256px 7.4564px rgba(0, 0, 0, 0.1);
}
.bold {
font-weight: bold;
}
.gray {
color: #918E9B;
}
.nav--logo {
max-width: 100px;
}
section {
padding: 20px;
}
.hero {
display: flex;
flex-direction: column;
}
.hero--photo {
max-width: 400px;
align-self: center;
}
.hero--header {
margin-bottom: 16px;
}
.hero--text {
margin-top: 0;
}
.cards-list {
display: flex;
flex-wrap: nowrap;
gap: 20px;
overflow-x: auto;
}
.card {
width: 175px;
font-size: 12px;
flex: 0 0 auto; /* ADD */
display: flex; /* ADD */
flex-direction: column; /* ADD */
position: relative;
}
.card--image {
width: 100%;
border-radius: 9px;
margin-bottom: 9px;
}
/* ADD */
.card--title {
overflow: hidden;
text-overflow: ellipsis;
}
.card--stats {
display: flex;
align-items: center;
}
.card--star {
height: 14px;
}
/* ADD */
.card--price {
margin-top: auto;
}
.card--badge {
position: absolute;
top: 6px;
left: 6px;
background-color: white;
padding: 5px 7px;
border-radius: 2px;
font-weight: bold;
}