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

52 lines
877 B
SCSS
Raw Normal View History

2020-10-10 19:47:58 +00:00
.testimonials {
display: flex;
flex-flow: row wrap;
2021-01-31 15:36:51 +00:00
gap: 2em;
2020-10-10 19:47:58 +00:00
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;
2021-01-27 13:10:13 +00:00
width: 4em;
height: 4em;
border-radius: 100em;
2020-10-10 19:47:58 +00:00
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;
2021-01-27 13:10:13 +00:00
min-height: 80px;
2020-10-10 19:47:58 +00:00
display: flex;
justify-content: center;
align-items: center;
text-align: center;
2021-01-27 13:10:13 +00:00
line-height: 1.4;
z-index: -1;
2020-10-10 19:47:58 +00:00
}
.bubble:after {
content: '';
position: absolute;
top: 0;
2021-01-27 13:10:13 +00:00
left: 3em;
2020-10-10 19:47:58 +00:00
width: 0;
height: 0;
border: 0.5em solid transparent;
border-bottom-color: #212121;
border-top: 0;
margin-left: -0.5em;
margin-top: -0.5em;
}