-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
98 lines (75 loc) · 1.42 KB
/
main.css
File metadata and controls
98 lines (75 loc) · 1.42 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
@font-face {
font-family: Figtree;
src: url("./assets/fonts/Figtree-VariableFont_wght.ttf");
}
:root {
--yellow: hsl(47, 88%, 63%);
--white: hsl(0, 0%, 100%);
--grey: hsl(0, 0%, 50%);
--black: hsl(0, 0%, 07%);
}
body {
background-color: var(--yellow);
font-family: Figtree, sans-serif;
font-size: 16px;
min-height: 100vh;
margin: 0;
display: grid;
place-content: center;
}
.card {
background-color: var(--white);
width: 20em;
padding: 1rem;
border-radius: 1em;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
box-shadow: 10px 10px 0 var(--black);
}
.card-image {
width: inherit;
border-radius: 1em;
margin-bottom: .5rem;
}
.card-tag {
background-color: var(--yellow);
width: fit-content;
padding: .2rem .5rem;
border-radius: .2rem;
font-size: smaller;
font-weight: 800;
margin: 1em 0;
}
.card-date {
font-size: small;
}
.card-title {
margin-bottom: .1em;
font-size: 25px;
}
.card-body {
color: var(--grey);
}
.card-author {
height: 2em;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
}
.card-author img {
height: inherit;
margin-right: .5rem;
}
.card-author span {
font-weight: 800;
}
.attribution {
display: none;
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}