abdullahtarawneh.com/assets/scss/index/testimonials.scss

52 lines
877 B
SCSS

.testimonials {
display: flex;
flex-flow: row wrap;
gap: 2em;
justify-content: center;
}
.testimonial {
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto auto;
grid-gap: 1em;
margin-bottom: 1em;
flex-basis: 18em;
}
.avatar {
margin-left: 1em;
width: 4em;
height: 4em;
border-radius: 100em;
background: #212121;
}
.name {
align-self: center;
}
.bubble {
background-color: #212121;
color: white;
padding: 0.5em;
border-radius: 0.5em;
position: relative;
grid-column: span 2;
min-height: 80px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
line-height: 1.4;
z-index: -1;
}
.bubble:after {
content: '';
position: absolute;
top: 0;
left: 3em;
width: 0;
height: 0;
border: 0.5em solid transparent;
border-bottom-color: #212121;
border-top: 0;
margin-left: -0.5em;
margin-top: -0.5em;
}