-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
126 lines (104 loc) · 2.03 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
122
123
124
125
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
background: #edf2f8;
font-family: 'Barlow Semi Condensed', sans-serif;
line-height: 1.7;
font-size: 13px;
}
main{
max-width: 1440px;
margin: 100px 150px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.card{
background-color: white;
border-radius: 10px;
padding: 30px;
margin-bottom: 10px;
box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}
.identity{
display: flex;
align-items: center;
margin-bottom: 10px;
line-height: 1.2;
}
.identity h3{
font-size: 15px;
}
.identity p{
opacity: 50%;
}
.profile-picture{
width: 30px;
height: 30px;
border: 2px solid #996ed9;
border-radius: 50%;
margin-right: 15px;
}
.white{
border: white;
}
.gray{
border: hsla(217, 19%, 35%, 0.493);
}
.post-highlight{
font-size: 1rem;
font-weight: 600;
line-height: 1.3;
margin-bottom: 20px;
}
.quote{
font-weight: 500;
line-height: 1.4;
opacity: 50%;
}
.card-purple{
background-color: hsl(263, 55%, 52%);
color: white;
background-image: url('Images/bg-pattern-quotation.svg');
background-repeat: no-repeat;
background-position: top 0px right 100px;
}
.card-gray-blue{
background-color: hsl(217, 19%, 35%);
color: white;
}
.card-black-blue{
background-color: hsl(219, 29%, 14%);
color: white;
}
.card:nth-of-type(1){
grid-column: 1/3;
}
.card:nth-of-type(4){
grid-column: 2/4;
grid-row: 2;
}
.card:nth-of-type(5){
grid-column: 4;
grid-row: 1/3;
}
@media (max-width: 768px){
main{
grid-template-columns: 1fr;
margin: 50px;
}
.card:nth-of-type(1){
grid-column: 1;
}
.card:nth-of-type(4){
grid-column: 1;
grid-row: 4;
}
.card:nth-of-type(5){
grid-column: 1;
grid-row: 5;
}
}