Below you will find the different definitions and options to create your generic cards
Each generic card is based on a global CSS class called “msds-generic-card”
. It is important to include this class first as it is the main CSS class of the component. Without this HTML class, you cannot utilize component.
There are 2 types of generic cards:
Generic Cards come in two different sizes, large (default) and small media cards.
When using large generic cards, make use of the bootstrap column col-md-4
.
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--vertical-aligned">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-2by1">
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
</div>
When using small generic cards, make use of the bootstrap column col-md-3
and the HTML modifier class = "generic-card--small"
.
<div class="row card-row">
<div class="col-12 col-md-3">
<div class="msds-generic-card msds-generic-card--small msds-generic-card--vertical-aligned">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-2by1">
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
</div>
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--media">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-16by9">
<div class="msds-generic-card__media-container">
<div class="msds-generic-card__floating-icon-container">
<svg class="msds-generic-card__floating-icon">
<use class="msds-generic-card__floating-icon"
href="../../../msds-spritemap.svg#play" />
</svg>
</div>
</div>
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<p class="msds-generic-card__body-text-above-headline">
MIPS 2020
</p>
<div class="msds-generic-card__body-heading">
Orchestration - The Future of Open Platforms lorem ipsum dolorem sit malesuada
</div>
</div>
</a>
<div class="msds-generic-card__media-info">
<div class="msds-generic-card__media-type">
<svg class="msds-generic-card__media-icon">
<use href="../../../msds-spritemap.svg#article" />
</svg>
Article
</div>
<div class="msds-generic-card__media-duration">
<svg class="msds-generic-card__media-icon">
<use href="../../../msds-spritemap.svg#clock" />
</svg>
6 min. read
</div>
</div>
</div>
</div>
</div>
Generic cards can be setup to use two different types of aspect ratios
class = "embed-responsive-2by1"
class = "embed-responsive-16by9"
<div class="row card-row">
<div class="col-12 col-md-4">
<h1>Cards Aspect 16 by 9</h1>
</div>
<div class="col-12 col-md-4">
<h1>Cards Aspect 2 by 1</h1>
</div>
<div class="col-12 col-md-4">
</div>
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--vertical-aligned">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-16by9">
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--vertical-aligned">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-2by1">
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
</div>
Generic cards can use SVG images instead of the default jpg or png images
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--vertical-aligned msds-generic-card--svg">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-2by1 msds-bg-gray-gradient-1">
<div class="msds-generic-card__frame-image embed-responsive-item msds-no-backup"></div>
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
</div>
Generic Cards have two different themes
Light theme cards are setup as the default card
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--vertical-aligned msds-generic-card--svg">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-2by1 msds-bg-gray-gradient-1">
<div class="msds-generic-card__frame-image embed-responsive-item msds-no-backup"></div>
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
</div>
To use a dark themed card add the CSS class “msds-generic-card--dark-theme
“
<div class="row card-row">
<div class="col-12 col-md-4">
<div
class="msds-generic-card msds-generic-card--vertical-aligned msds-generic-card--dark-theme msds-generic-card--svg">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-2by1 msds-bg-gray-gradient-1">
<div class="msds-generic-card__frame-image embed-responsive-item msds-no-backup"></div>
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
</div>
Below is an example of the default Generic Card
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--vertical-aligned">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-2by1">
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<h3 class="msds-generic-card__body-heading">
Headline lorem ipsum
</h3>
<p class="msds-generic-card__body-description">
Malesuada vestibulum morbi aliquam commodo. Rhoncus id semper pellentesque. Nibh conseqtetuer eros nullam.
</p>
</div>
</a>
</div>
</div>
</div>
Generic Media Cards have two different options, the first option is the default Generic Media card. The second option displays the media type of the generic card.
Below we have an example of the default Generic Media Card
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--media msds-generic-card--vertical-aligned">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-16by9">
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<p class="msds-generic-card__body-text-above-headline">
MIPS 2020
</p>
<div class="msds-generic-card__body-heading">
Orchestration - The Future of Open Platforms lorem ipsum dolorem sit malesuada
</div>
</div>
</a>
<div class="msds-generic-card__media-info">
<div class="msds-generic-card__media-type">
<svg class="msds-generic-card__media-icon">
<use href="../../../msds-spritemap.svg#article" />
</svg>
Article
</div>
<div class="msds-generic-card__media-duration">
<svg class="msds-generic-card__media-icon">
<use href="../../../msds-spritemap.svg#clock" />
</svg>
6 min. read
</div>
</div>
</div>
</div>
</div>
Generic Media Cards have two different options, the first option is the default Generic Media card. The second option displays the media type of the generic card.
Below we have an example of the Generic Media Card with a floating icon to display the media card type
<div class="row card-row">
<div class="col-12 col-md-4">
<div class="msds-generic-card msds-generic-card--media">
<a href="#" class="msds-generic-card--link">
<div class="msds-generic-card__frame embed-responsive embed-responsive-16by9">
<div class="msds-generic-card__media-container">
<div class="msds-generic-card__floating-icon-container">
<svg class="msds-generic-card__floating-icon">
<use class="msds-generic-card__floating-icon"
href="../../../msds-spritemap.svg#play" />
</svg>
</div>
</div>
<img class="msds-generic-card__frame-image embed-responsive-item" src=../../../src/demo-img/xprotect.jpg
alt="Card image">
</div>
<div class="msds-generic-card__body">
<p class="msds-generic-card__body-text-above-headline">
MIPS 2020
</p>
<div class="msds-generic-card__body-heading">
Orchestration - The Future of Open Platforms lorem ipsum dolorem sit malesuada
</div>
</div>
</a>
<div class="msds-generic-card__media-info">
<div class="msds-generic-card__media-type">
<svg class="msds-generic-card__media-icon">
<use href="../../../msds-spritemap.svg#article" />
</svg>
Article
</div>
<div class="msds-generic-card__media-duration">
<svg class="msds-generic-card__media-icon">
<use href="../../../msds-spritemap.svg#clock" />
</svg>
6 min. read
</div>
</div>
</div>
</div>
</div>