-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
121 lines (102 loc) · 1.98 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
@font-face {
font-family: "Figtree";
src: url("/assets/fonts/static/Figtree-ExtraBold.ttf") format("truetype");
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: "Figtree";
src: url("/assets/fonts/static/Figtree-SemiBold.ttf") format("truetype");
font-weight: 600;
font-style: normal;
}
:root {
--yellow: #f4d04e;
--gray-950: #111111;
--gray-500: #6b6b6b;
--white: #ffffff;
--figtree-extrabold: "Figtree ExtraBold", sans-serif;
--figtree-semibold: "Figtree SemiBold", sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
font-family: var(--figtree-extrabold);
line-height: 150%;
letter-spacing: 0px;
}
body {
background-color: var(--yellow);
}
.main-section {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.main-section__inner {
width: 384px;
height: 522px;
background-color: var(--white);
border-radius: 20px;
padding: 24px;
}
.main-section__image {
margin-bottom: 24px;
border-radius: 10px;
}
.description__category {
background-color: var(--yellow);
padding: 8px 12px;
border-radius: 4px;
font-weight: bold;
display: inline-block;
margin-bottom: 12px;
}
.description__category--highlighted {
font-family: var(--figtree-extrabold);
color: var(--gray-950);
}
.description__date,
.description__title,
.description__text {
margin-bottom: 12px;
}
.description__title {
font-family: var(--figtree-extrabold);
font-weight: 800;
font-size: 1.5em;
}
.description__title:hover {
color: var(--yellow);
}
.description__date,
.description__text {
font-family: var(--figtree-semibold);
}
.description__date {
font-size: 0.875em;
color: var(--gray-950);
}
.description__text {
color: var(--gray-500);
}
.details {
display: flex;
align-items: center;
}
.details__avatar {
width: 32px;
height: 32px;
margin: 0;
padding: 0;
margin-right: 12px;
}
.details__author {
font-family: var(--figtree-semibold);
font-weight: 600;
}