Skip to content

Commit 3a95bb1

Browse files
authored
Redesign testimonial layout for small screens (#113)
1 parent 6575ad0 commit 3a95bb1

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

src/.vuepress/components/Testimonials.vue

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,33 @@ export default {
2828
border: 0;
2929
}
3030
.testimonial {
31-
position: relative;
32-
padding: 1rem 0;
31+
display: flex;
32+
flex-direction: row;
33+
align-items: center;
34+
padding: 1.5rem 0;
35+
margin: 0 0 0 30px;
3336
}
3437
.testimonial .logo {
35-
position: absolute;
36-
left: 30px;
37-
top: 20px;
3838
border-radius: 50%;
39-
width: 64px;
40-
height: 64px;
39+
width: 76px;
40+
height: 76px;
4141
border: 1px solid #fff;
4242
box-shadow: 0 0 0 1px #007acc;
4343
}
4444
.testimonial p {
45-
margin: 0 40px 0 110px;
45+
margin: 0 30px 0 30px;
4646
text-align: justify;
4747
}
4848
@media only screen and (max-width: 720px) {
49+
.testimonial {
50+
flex-direction: column;
51+
}
4952
.testimonial .logo {
50-
position: relative;
51-
float: left;
52-
top: 3px;
53-
left: 0;
54-
right: 0;
55-
width: 48px;
56-
height: 48px;
57-
margin: 0 10px 0 0;
53+
width: 90px;
54+
height: 90px;
5855
}
5956
.testimonial p {
60-
margin: 0;
57+
margin: 30px 0 10px 0;
6158
}
6259
}
6360
</style>

0 commit comments

Comments
 (0)