No notes defined.
<!-- Default -->
<div class=" avatar">
<img class="avatar__photo" src="/media/dossier-1.jpg" alt="Jane Doe" />
<div class="avatar__info">
<h2 class="avatar__name">
Jane Doe
</h2>
<div class="avatar__title">
Executive Vice President of Operations
</div>
</div>
</div>
<!-- Horizontal -->
<div class="avatar -horizontal ">
<img class="avatar__photo" src="/media/dossier-1.jpg" alt="Jane Doe" />
<div class="avatar__info">
<h2 class="avatar__name">
Jane Doe
</h2>
<div class="avatar__title">
Executive Vice President of Operations
</div>
</div>
</div>
@mixin avatar {
$b: &;
align-items: center;
display: flex;
width: 16rem;
flex-direction: column;
text-align: center;
&__content {
padding: $thin-padding;
}
&__name {
margin-bottom: .25rem;
font-size: 1.25rem;
font-weight: bold;
}
&.-horizontal {
align-items: center;
flex-direction: row;
height: 10rem;
text-align: left;
width: auto;
#{$b}__photo {
max-height: 100%;
}
#{$b}__name {
margin-top: 0;
}
}
}
.avatar {
@include avatar;
}