-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
100 lines (99 loc) · 2.12 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--Moderate-violet: hsl(263, 55%, 52%);
--Very-dark-grayish-blue: hsl(217, 19%, 35%);
--Very-dark-blackish-blue: hsl(219, 29%, 14%);
--White: hsl(0, 0%, 100%);
--Light-gray: hsl(0, 0%, 81%);
--Light-grayish-blue: hsl(210, 46%, 95%);
}
body {
background:var(--Light-grayish-blue) ;
font-size: 13px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.grid {
display: grid;
grid-template-columns: repeat(4,1fr);
grid-template-rows: repeat(2,1fr);
padding: 15px;
width: min(95%, 70rem);
margin: 5% auto;
gap: 20px;
}
.person-1 {
grid-area: 1 / 1 / 2 / 3;
background-color: var(--Moderate-violet);
padding: 20px;
color: var(--White);
background-image: url(images/bg-pattern-quotation.svg);
background-repeat: no-repeat;
background-position: top right 30px;
border-radius: 10px;
}
.summary {
display: flex;
align-items: center;
gap: 20px;
}
img{
border-radius: 50%;
width: 50px;
}
.person-1 .summary .name {
color: var(--White);
}
.job {
color: var(--Light-gray);
opacity: 50%;
padding: 6px 0;
}
h1 {
margin: 20px auto;
font-size: 14px;
line-height: 1.5;
}
.person-2 {
grid-area: 1 / 3 / 2 / 4;
background-color: var(--Very-dark-grayish-blue);
padding: 20px;
color: var(--White);
border-radius: 10px;
}
.person-3 {
grid-area: 2 / 1 / 3 / 2;
background-color: var(--White);
padding: 20px;
color: var(--Very-dark-blackish-blue);
border-radius: 10px;
}
.person-4 {
grid-area: 2 / 2 / 3 / 4;
background-color: var(--Very-dark-blackish-blue);
padding: 20px;
color: var(--White);
border-radius: 10px;
}
.person-5 {
grid-area: 1 / 4 / 3 / 5;
background-color: var(--White);
padding: 20px;
color: var(--Very-dark-grayish-blue);
border-radius: 10px;
}
@media (max-width: 600px) {
.grid {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}