-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (89 loc) · 1.55 KB
/
Copy pathstyle.css
File metadata and controls
106 lines (89 loc) · 1.55 KB
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
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');
* {
box-sizing: border-box;
}
body {
background-color: #f7f8fc;
font-family: 'Open Sans', sans-serif;
/* Inhalt zentral ausrichten */
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
/* PLatz zwischen den einzelnen Cards */
gap: 20px;
width: 940px;
margin: auto;
}
.card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
overflow: hidden;
width: 300px;
}
.card-header img {
/* Images sollen alle die selbe größe haben */
width: 100%;
height: 200px;
object-fit: cover;
}
.card-body {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 20px;
min-height: 250px;
}
.tag {
background: #777;
border-radius: 50px;
font-size: 12px;
margin: 0;
color: #fff;
padding: 2px 10px;
text-transform: uppercase;
}
.tag-teal {
background-color: #92d4e4;
}
.tag-purple {
background-color: #3d1d94;
}
.tag-pink {
background-color: #c62bcb;
}
.card-body h4 {
margin: 10px 0;
}
.card-body p {
font-size: 13px;
margin: 0 0 40px;
}
.user {
display: flex;
margin-top: auto;
}
.user img {
border-radius: 50%;
width: 40px;
height: 40px;
margin-right: 10px;
}
.user-info h5 {
margin: 0;
}
.user-info small {
color: #888785;
}
@media (max-width: 940px) {
.container {
grid-template-columns: 1fr;
justify-items: center;
}
}