-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
114 lines (95 loc) · 1.86 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
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@600;800&display=swap');
:root{
/* ### Primary-color */
--Yellow: hsl(47, 88%, 63%);
/* ### Neutral-color */
--White: hsl(0, 0%, 100%);
--Grey: hsl(0, 0%, 50%);
--Black: hsl(0, 0%, 7%);
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Figtree', sans-serif;
}
body{
background-color: var(--Yellow);
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 16px;
}
.blog__card{
max-width: 350px;
background-color: var(--White);
padding: 18px;
border: 1px solid var(--Black);
border-radius: 20px;
box-shadow: 10px 10px 0;
margin-bottom: 20px;
}
.blog__image img{
width: 100%;
border-radius: 10px;
margin-bottom: 18px;
}
.blog__post button{
background-color: var(--Yellow);
border: none;
width: 70px;
height: 30px;
border-radius: 6px;
font-size: 12px;
font-weight: bold;
margin-bottom: 15px;
cursor: pointer;
transition: background-color 0.4s, color 0.4s;
}
.blog__post button:hover{
background-color: var(--Black);
color: var(--Yellow);
}
.blog__post .date{
font-size: 10px;
font-weight: 800;
margin-bottom: 10px;
color: var(--Grey);
}
.blog__post h1{
font-size: 18px;
color: var(--Black);
cursor: pointer;
transition: color .6s;
}
.blog__post h1:hover{
color: var(--Yellow);
}
.blog__post .details{
color: var(--Grey);
font-size: 11px;
font-weight: 600;
margin-top: 10px;
line-height: 18px;
}
.profiles{
display: flex;
align-items: center;
margin-top: 18px;
margin-bottom: 10px;
}
.profiles img{
width: 30;
height: 30px;
margin-right: 12px;
}
.profiles p{
font-size: 12px;
font-weight: 800;
color: var(--Black);
}
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }