-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
368 lines (305 loc) Β· 5.71 KB
/
styles.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
:root {
--black-olive: #26271dff;
--white: #ffffffff;
--bondi-blue: #0891b2ff;
--reseda-green: #7c8e67ff;
--clr-primary-400: hsl(66, 14.7%, 13.3%);
/* --clr-primary-400: hsl(75, 14.3%, 5.5%); */
--clr-neutral-100: hsl(0, 0%, 100%);
--clr-neutral-200: hsl(0, 0%, 90.2%);
--clr-background: hsl(191.6, 91.4%, 36.5%);
--clr-hover-shade: hsl(75, 2.3%, 65.5%);
--shadow-color: 0deg 0% 63%;
--shadow-elevation: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
1.5px 2.9px 3.7px -0.4px hsl(var(--shadow-color) / 0.34),
2.7px 5.4px 6.8px -0.7px hsl(var(--shadow-color) / 0.34),
4.5px 8.9px 11.2px -1.1px hsl(var(--shadow-color) / 0.34),
7.1px 14.3px 18px -1.4px hsl(var(--shadow-color) / 0.34),
11.2px 22.3px 28.1px -1.8px hsl(var(--shadow-color) / 0.34),
17px 33.9px 42.7px -2.1px hsl(var(--shadow-color) / 0.34),
25px 50px 62.9px -2.5px hsl(var(--shadow-color) / 0.34);
--box-shadow: 0 0.25em 1.5em rgba(0, 0, 0, 0.15);
--ff-bold: "Playfair Display", serif;
--ff-regular: "Roboto", sans-serif;
--fs-200: 0.75rem;
--fs-300: 1rem;
--fs-400: 1.25rem;
--fs-500: 1.375rem;
--fs-600: 1.75rem;
--fs-900: 2.125rem;
--fw-200: 200;
--fw-300: 300;
--fw-400: 400;
--fw-500: 500;
--fw-600: 600;
--fw-700: 700;
--br: 1rem;
--spacer: 2rem;
}
@media (min-width: 40em) {
:root {
--fs-500: 1.75rem;
--fs-600: 2.125rem;
--fs-900: 4.25rem;
}
}
/* Css Reset */
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
}
body {
line-height: 1;
-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
height: auto;
}
ul[class],
ol[class] {
list-style: none;
}
input,
button,
textarea,
select {
font: inherit;
}
body,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1.2;
overflow-wrap: break-word;
}
body {
color: var(--clr-primary-400);
font-family: var(--ff-regular);
font-size: var(--fs-400);
font-weight: var(--fw-400);
}
/* Utility Classes */
.flow-content > * + * {
margin-top: var(--spacer);
}
.container {
max-width: 70rem;
padding: 0 2rem;
margin: 0 auto;
}
.bg-primary {
color: var(--clr-neutral-100);
background: var(--clr-background);
}
.bg-neutral-100 {
color: var(--clr-primary-400);
background: var(--clr-neutral-100);
}
.split {
display: grid;
gap: calc(var(--br) * 2);
text-wrap: wrap;
}
@media (min-width: 65rem) {
.split {
grid-template-columns: 1fr 2fr;
}
}
.flex {
display: flex;
justify-content: space-between;
gap: var(--br);
}
/* Typography */
.primary-heading {
text-align: center;
}
.section-title {
font-family: var(--ff-bold);
font-size: var(--fs-600);
font-weight: var(--fw-700);
}
.section-subtitle {
font-family: var(--ff-bold);
font-size: var(--fs-400);
font-weight: var(--fw-700);
}
/* General Styles */
/* The background styles of the hero */
.hero-section {
position: relative;
min-height: 300px;
padding-left: 0;
}
.hero-section::before {
content: "";
width: 100%;
height: 600px;
position: absolute;
z-index: -1;
top: -18rem;
background: var(--clr-background);
transform: skewY(-18deg);
}
@media (min-width: 65rem) {
.hero-section {
padding-top: 6rem 0;
}
}
.hero-image-box {
position: relative;
display: flex;
justify-content: center;
}
.hero-image-box::after {
content: "Ashley Williams";
font-weight: bold;
font-family: var(--ff-bold);
font-size: var(--fs-600);
color: var(--clr-neutral-100);
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, 100%);
}
@media (min-width: 65rem) {
.hero-image-box::after {
text-align: center;
width: 100%;
height: 60%;
top: 50%;
left: 55%;
transform: translate(-50%, 70%);
}
}
.hero-text-block {
box-shadow: var(--shadow-elevation);
padding: 2rem;
}
.social-links-container {
display: flex;
flex-direction: column;
}
.social-links {
display: flex;
gap: var(--br);
align-self: center;
}
.social-links .social-icon {
color: var(--clr-primary-400);
font-size: var(--fs-400);
}
.social-links .social-icon:hover,
.social-links .social-icon:focus {
color: var(--clr-hover-shade);
}
.article-preview div:not(:first-child) {
padding: 0 2rem;
}
.article-preview p:last-child {
padding: 0 2rem 3rem 2rem;
}
.article-container {
display: grid;
gap: 2rem;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.contact-section {
padding-bottom: 2rem;
}
.contact-section-split {
display: grid;
gap: 2rem;
}
@media (min-width: 65rem) {
.contact-section-split {
grid-template-columns: 1fr 1fr;
}
}
.contact-flex {
display: flex;
gap: var(--br);
}
.hero img {
object-fit: cover;
width: 100%;
box-shadow: var(--box-shadow);
}
@media (min-width: 65rem) {
.hero-container {
position: relative;
}
.hero img {
object-fit: cover;
width: 24rem;
height: 25rem;
position: absolute;
top: -3rem;
left: 10%;
}
.primary-heading {
text-align: left;
}
.social-links {
align-self: flex-end;
}
}
@media (min-width: 39.99rem) and (max-width: 64.99rem) {
.split {
grid-template-columns: 1fr 1fr;
gap: 0;
}
.hero-image-box::after {
width: 100%;
/* height: 100%; */
top: 90%;
left: 55%;
transform: translate(-50%, -40%);
}
.hero img {
width: 100%;
height: 35rem;
z-index: 0;
}
.hero-text-block {
align-content: center;
}
.primary-heading {
text-align: left;
}
.social-links {
align-self: flex-end;
}
}
article {
box-shadow: var(--shadow-elevation);
}
article img {
object-fit: cover;
height: 12.5rem;
width: 100%;
}
/* Section Styles */
section {
padding: 6rem 0;
}
@media (max-width: 41rem) {
section {
padding: 3rem 0;
}
}