Below you will find the different definitions and options to create your Contact Cards
Each Contact Card is based on a global CSS class called "msds-contact-card"
. It is important to include this class first as it is the main CSS class. Without this HTML class, you cannot utalize component.
There are 3 types of Contact Cards:
Our cards can be rendered in 2 different sizes, large, and small. In order to use small cards, add the following
"col-md-3"
instead of "col-md-4"
"msds-contact-card--small"
to the same group of classes that has "msds-contact-card"
The default Contact Card has the following elements:
The default large Contact Card can be used by wrapping your "msds-contact-card"
block with a "col-md-4"
from Bootstrap.
Below is a example of the Milestone Large Contact Card.
As mentioned before, these Contact Cards are intended to be used in lists.
<div class="container">
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-contact-card msds-contact-card--vertically-aligned">
<div class="msds-contact-card__overlay"></div>
<div class="msds-contact-card__headline">
President & CEO
</div>
<div class="msds-contact-card__caption">
<img class="msds-contact-card__caption-image rounded-circle" src="../../../src/demo-img/contact-card-image.png" alt="Card image">
</div>
<div class="msds-contact-card__body">
<div class="msds-contact-card__body-contact-person">
Lars Thinggaard
</div>
<div class="msds-contact-card__body-contact-position">
President & CEO, Milestone Systems
</div>
<div class="msds-contact-card__body-contact-details">
<div class="msds-contact-card__body-contact-details-wrapper">
<a class="msds-contact-card__link" href="#">
<svg title="email" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#email" />
</svg>
Contact
</a>
<a class="msds-contact-card__link" href="#">
<svg title="linkedin" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#linkedin" />
</svg>
Visit on LinkedIn
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Below is a example of the Milestone Small Themed Contact Card. The small cards have reduced element sizes and reduced padding.
"col-md-3"
and "msds-contact-card--small"
as an extra class at the same level as "msds-contact-card"
.<div class="container">
<div class="row card-row">
<div class="col-12 col-md-3">
<div class="msds-contact-card msds-contact-card--small msds-contact-card--vertically-aligned">
<div class="msds-contact-card__overlay"></div>
<div class="msds-contact-card__headline">
President & CEO
</div>
<div class="msds-contact-card__caption">
<img class="msds-contact-card__caption-image rounded-circle" src="../../../src/demo-img/contact-card-image.png" alt="Card image">
</div>
<div class="msds-contact-card__body">
<div class="msds-contact-card__body-contact-person">
Lars Thinggaard
</div>
<div class="msds-contact-card__body-contact-position">
President & CEO, Milestone Systems
</div>
<div class="msds-contact-card__body-contact-details">
<div class="msds-contact-card__body-contact-details-wrapper">
<a class="msds-contact-card__link" href="#">
<svg title="email" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#email" />
</svg>
Contact
</a>
<a class="msds-contact-card__link" href="#">
<svg title="linkedin" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#linkedin" />
</svg>
Visit on LinkedIn
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
This Contact Card has a different layout to the default Contact Card
The Contact Card without an image has the following elements:
As mentioned before, these Contact Cards are intended to be used in lists.
The large Contact Card without an image can be used by wrapping your "msds-contact-card"
block with a "col-md-4"
from Bootstrap.
Below is a example of the Milestone Large Contact Card.
<div class="container">
<div class="row">
<div class="col-12 col-md-4">
<div class="msds-contact-card msds-contact-card--without-image msds-contact-card--vertically-aligned">
<div class="msds-contact-card__overlay"></div>
<div class="msds-contact-card__headline">
APAC & Corporate
</div>
<div class="msds-contact-card__body">
<div class="msds-contact-card__body-contact-person">
Pernille Larsen
</div>
<div class="msds-contact-card__body-contact-position">
Corporate Communications Manager and PR & Communications Manager APAC
</div>
<div class="msds-contact-card__body-contact-details">
<a class="msds-contact-card__link" href="#">
<svg title="email" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#email" />
</svg>
Contact
</a>
<a class="msds-contact-card__link" href="#">
<svg title="linkedin" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#linkedin" />
</svg>
Visit on LinkedIn
</a>
</div>
</div>
</div>
</div>
</div>
</div>
Below is a example of the Milestone Small Themed Contact Card. The small cards have reduced element sizes and reduced padding.
"col-md-3"
and "msds-contact-card--small"
as an extra class at the same level as "msds-contact-card"
.<div class="container">
<div class="row">
<div class="col-12 col-md-3">
<div class="msds-contact-card msds-contact-card--small-without-image msds-contact-card--vertically-aligned">
<div class="msds-contact-card__overlay"></div>
<div class="msds-contact-card__headline">
APAC & Corporate
</div>
<div class="msds-contact-card__body">
<div class="msds-contact-card__body-contact-person">
Pernille Larsen
</div>
<div class="msds-contact-card__body-contact-position">
Corporate Communications Manager and PR & Communications Manager APAC
</div>
<div class="msds-contact-card__body-contact-details">
<a class="msds-contact-card__link" href="#">
<svg title="email" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#email" />
</svg>
Contact
</a>
<a class="msds-contact-card__link" href="#">
<svg title="linkedin" class="msds-contact-card__icon">
<use href="../../../msds-spritemap.svg#linkedin" />
</svg>
Visit on LinkedIn
</a>
</div>
</div>
</div>
</div>
</div>
</div>
The Content Contact Card has the following elements:
The Content Contact Card can be used by wrapping your adding "msds-contact-card--content"
to the wrapper class containing "msds-contact-card"
.
The Content Contact Card is intended to be used when you want to represent an author of a page or article.
Below is a example of the Milestone Large Contact Card.
<div class="container">
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-contact-card msds-contact-card--content msds-contact-card--vertically-aligned">
<div class="msds-contact-card__caption">
<img class="msds-contact-card__caption-image rounded-circle" src="../../../src/demo-img/contact-card-image.png" alt="Card image">
</div>
<div class="msds-contact-card__body">
<div class="msds-contact-card__body-contact-person">
Lars Thinggaard
</div>
<div class="msds-contact-card__body-contact-position">
President & CEO, Milestone Systems
</div>
<div class="msds-contact-card__body-contact-details">
<div class="msds-contact-card__body-contact-details-wrapper">
<button type="button" class="msds-btn msds-btn--primary msds-btn--icon">
get in contact
<div class="msds-icon"><svg>
<use href="../../../msds-spritemap.svg#email" /></svg></div>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>