Skip to content

Commit 192e92d

Browse files
committed
improve testimonial visuals
1 parent 2174e6a commit 192e92d

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

assets/scss/components/_testimonials.scss

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -210,27 +210,36 @@
210210
padding-top: clamp(1.5rem, 4vw, 2rem);
211211
letter-spacing: 0.005em;
212212

213-
&:before {
214-
content: '\201C';
215-
position: absolute;
216-
top: -0.5rem;
217-
left: 50%;
218-
transform: translateX(-50%);
219-
font-size: clamp(3.5rem, 12vw, 5rem);
220-
font-family: 'Merriweather', Georgia, serif;
221-
color: rgba($primary, 0.08);
222-
line-height: 1;
223-
font-style: normal;
224-
font-weight: 700;
225-
}
226-
227213
p {
228214
margin-bottom: 0;
229215
font-size: inherit;
230216
line-height: inherit;
231217
position: relative;
232-
z-index: 1;
233218
font-weight: 300;
219+
220+
&:before {
221+
content: '\201C';
222+
font-size: clamp(3.5rem, 8vw, 3.5rem);
223+
font-family: 'Merriweather', Georgia, serif;
224+
color: rgba($primary, 0.15);
225+
line-height: 0;
226+
font-style: normal;
227+
font-weight: 700;
228+
margin-right: 0.25rem;
229+
vertical-align: -0.4rem;
230+
}
231+
232+
&:after {
233+
content: '\201D';
234+
font-size: clamp(3.5rem, 8vw, 3.5rem);
235+
font-family: 'Merriweather', Georgia, serif;
236+
color: rgba($primary, 0.15);
237+
line-height: 0;
238+
font-style: normal;
239+
font-weight: 700;
240+
margin-left: 0.25rem;
241+
vertical-align: -2.4rem;
242+
}
234243
}
235244
}
236245

@@ -384,7 +393,7 @@
384393
}
385394

386395
.testimonial {
387-
max-width: 53rem;
396+
max-width: 70rem;
388397
}
389398

390399
.swiper-button-next {
@@ -398,7 +407,7 @@
398407
.testimonial-body {
399408
font-size: 1.25rem;
400409
line-height: 1.75;
401-
max-width: 46.875rem;
410+
max-width: 60rem;
402411

403412
&:before {
404413
font-size: 8.5rem;

0 commit comments

Comments
 (0)