-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
108 lines (104 loc) · 1.84 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
body{
background-color: hsl(47,88%,63%);
font-family: 'Figtree', sans-serif;
font-weight: 300;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
p{
margin: 8px 0;
}
#card{
position: absolute;
border: 1px solid #000000;
height: 500px;
max-width: 360px;
width: 90%;
background-color: hsl(0,0%,100%);
border-radius: 20px;
box-shadow: 10px 10px 0 0 #000000;
padding: 10px;
}
.card_svg{
position: relative;
left: 50%;
transform: translateX(-50%);
border-radius: 10px;
background-color: hsl(47,88%,63%);
margin: 12px 0;
}
.card_text{
padding-left: 12px;
}
.label{
display: inline-block;
background-color: hsl(47,88%,63%);
width: 20%;
font-weight: 800;
padding: 5px 6px;
font-size: 14px;
border-radius: 4px;
text-align: center;
margin-top: 10px;
}
.date{
display: block;
font-size: 14px;
}
.title {
font-size: 24px;
font-weight: 800;
margin: 10px 0;
background: none;
border: none;
cursor: pointer;
color: inherit;
text-align: left;
padding: 0;
outline: none;
transition: color step-end;
}
.title:hover {
color: hsl(47, 88%, 63%);
}
.description{
color: grey;
font-size: 16px;
line-height: 1.5;
}
.author{
display: flex;
align-items: center;
margin-top: 25px;
}
.author_avatar{
width: 32px
}
.author_name{
font-size: 14px;
font-weight: 800;
margin-left: 10px;
}
/*Media Queries*/
@media (min-width: 375px) and (max-width: 767px) {
#card {
width: 80%;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
#card {
width: 60%;
}
}
@media (min-width: 1024px) and (max-width: 1439px) {
#card {
width: 50%;
}
}
@media (min-width: 1440px) {
#card {
width: 40%;
}
}