-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
106 lines (104 loc) · 1.89 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
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@500;800&display=swap");
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--background: hsl(47, 88%, 63%);
--card-background: hsl(0, 0%, 100%);
--grey: hsl(0, 0%, 50%);
--black: hsl(0, 0%, 7%);
}
body {
font-size: 16px;
font-family: "Figtree", sans-serif;
background: var(--background);
padding: 2rem 1rem;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.card {
background: var(--card-background);
/* max-width: 360px; */
max-width: 22.5rem;
margin: 0px auto;
padding: 20px;
border: 2px solid var(--black);
border-radius: 1rem;
box-shadow: 10px 10px 0px black;
}
.card img {
display: block;
width: 100%;
border-radius: 12px;
}
.card-content .detail {
color: var(--grey);
margin-bottom: 20px;
}
.button {
display: inline-block;
background: var(--background);
padding: 10px 15px;
border-radius: 6px;
border: none;
text-decoration: none;
color: var(--black);
font-weight: 800;
margin-top: 20px;
margin-bottom: 20px;
}
.card-content .title {
font-size: 1.4rem;
font-weight: 600;
padding: 20px 0;
}
.card-content .title a {
text-decoration: none;
color: var(--black);
}
.card-content .title a:hover {
color: var(--background);
cursor: pointer;
}
.author {
display: flex;
align-items: center;
gap: 1rem;
}
.author img {
width: 15%;
}
.author span {
color: var(--black);
font-weight: 800;
}
/* FOOTER */
.attribution {
font-size: 11px;
text-align: center;
margin-top: 20px;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
@media (min-width: 768px) {
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100svh;
}
.card {
/* max-width: 400px; */
max-width: 25rem;
}
.card img {
/* max-width: 384px; */
max-width: 24rem;
}
}