-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
144 lines (113 loc) · 2.72 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
html {
font-size: 13px;
font-family: "Barlow Semi Condensed", Helvetica, sans-serif;
}
body {
background-color: hsl(210, 46%, 95%);
}
h4 {
font-size: 1.4rem;
font-weight: 600;
margin-top: 1%;
z-index: 2;
}
.container {
display: grid;
width: 85%;
margin: 3% auto;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-template-areas: "daniel daniel jonathan kira" "jeanette patrick patrick kira";
grid-gap: 25px;
align-items: stretch;
justify-items: stretch;
transform: scale(0.9);
}
.pic {
border-radius: 50%;
width: 30px;
height: 30px;
}
#quote-img {
position: absolute;
left: 30%;
top: 0%;
z-index: -1;
}
.item {
width: auto;
height: auto;
max-height: fit-content;
border-radius: 7px;
padding: 10px 35px;
line-height: 1.4;
z-index: 0;
}
.quote {
color: hsla(0, 0%, 100%, 0.7);
}
.name {
font-size: 1rem;
font-weight: 600;
display: inline-block;
line-height: 1.2;
}
.name span {
display: inline-block;
font-weight: 500;
color: hsla(0, 0%, 100%, 0.5);
}
.daniel, .jonathan, .patrick {
color:hsl(0, 0%, 100%);
}
.jeanette, .kira {
color: hsl(219, 29%, 14%);
}
.jeanette .name span, .kira .name span {
color: hsla(219, 29%, 14%, 0.5);
}
.jeanette .quote, .kira .quote {
color: hsla(219, 29%, 14%, 0.7);
}
.daniel {
grid-area: daniel;
background-color: hsl(263, 55%, 52%);
}
.daniel .pic {
border: solid 0.7px hsl(0, 0%, 100%);
}
.jonathan {
grid-area: jonathan;
background-color: hsl(217, 19%, 35%);
}
.jeanette {
grid-area: jeanette;
background-color: hsl(0, 0%, 100%);
}
.jeanette h4 {
white-space: pre-line;
}
.patrick {
grid-area: patrick;
background-color: hsl(219, 29%, 14%);
}
.patrick .pic {
border: solid 0.7px hsl(263, 55%, 52%);
}
.kira {
grid-area: kira;
background-color: hsl(0, 0%, 100%);
}
/*Media Queries*/
@media screen and (min-width: 300px) and (max-width: 850px) {
.container {
display: flex;
width: 90%;
height: 85%;
margin: 10px auto;
flex-direction: column;
}
.item {
box-shadow: 5px 2px 10px hsla(217, 19%, 35%, 0.2);
}
}