-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
195 lines (165 loc) · 3.16 KB
/
main.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap");
:root {
--violet: hsl(263, 55%, 52%);
--whitesmoke: hsl(213, 44%, 95%);
--dark-grayish-blue: hsl(217, 19%, 35%);
--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%);
}
*,
*::before,
*::after {
padding: 0;
margin: 0;
}
html {
font-size: 62.5%;
text-rendering: optimizeLegibility;
}
body {
font-size: 1.3rem;
font-family: "Barlow Semi Condensed", sans-serif;
font-weight: 500;
background-color: var(--whitesmoke);
color: var(--dark-blackish-blue);
}
blockquote {
color: inherit;
opacity: 70%;
line-height: 1.5;
letter-spacing: 0.2px;
}
strong {
font-weight: 600;
color: inherit;
opacity: 100%;
}
main {
padding: 4vw;
}
article {
padding: 3rem;
margin: 2rem 0;
}
.flex {
display: flex;
}
.rounded-md {
border-radius: 0.8rem;
}
.bg-violet.bg-quote {
background: url(./images/bg-pattern-quotation.svg) no-repeat 80% top
var(--violet);
}
.text-light {
color: var(--white);
}
.text-pale-50 {
opacity: 50%;
}
.text-large {
font-size: 2rem;
margin: 2rem 0;
}
.img-small {
width: 3.2rem;
height: 3.2rem;
margin-right: 1rem;
}
.img-round {
border: solid 0.2rem rgba(207, 207, 207, 0.5);
border-radius: 50%;
}
.bg-grey {
background-color: var(--dark-grayish-blue);
}
.bg-white {
background-color: var(--white);
}
.bg-dark {
background-color: var(--dark-blackish-blue);
}
.attribution {
display: block;
text-align: center;
color: var(--dark-grayish-blue);
}
.link,
.link:visited {
transition: all 0.2s ease-out;
-webkit-text-decoration-color: hsl(216, 100%, 68%);
text-decoration-color: hsl(216, 100%, 68%);
text-decoration-thickness: 0.125em;
text-underline-offset: from-font;
color: hsl(216, 87%, 45%);
padding: 0.1rem;
}
.link:hover,
.link:active {
cursor: pointer;
color: hsl(17, 76%, 56%);
}
.link:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(92, 157, 255, 0.5);
}
.shadow-light {
box-shadow: 10px 18px 24px -11px rgba(0, 0, 0, 0.24);
}
@media only screen and (min-width: 768px) {
body {
height: 100vh;
}
main {
display: flex;
justify-content: center;
align-items: center;
}
article {
margin: 0;
}
.testimonials {
display: grid;
height: auto;
gap: 2rem;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 1fr 0.5fr 1fr;
grid-template-areas:
"daniel daniel jonathan jonathan"
"kira kira kira kira"
"jeanette jeanette patrick patrick";
}
#daniel {
grid-area: daniel;
}
#jonathan {
grid-area: jonathan;
}
#jeanette {
grid-area: jeanette;
}
#patrick {
grid-area: patrick;
}
#kira {
grid-area: kira;
}
}
@media only screen and (min-width: 1000px) {
.testimonials {
display: grid;
gap: 2.5rem;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-template-areas:
"daniel daniel jonathan kira"
"jeanette patrick patrick kira";
}
}
@media only screen and (min-width: 2560px) {
html {
font-size: 100%;
}
}