Tiles
Basis
.tiles
A tile is a blockelement which is 'painted'. It would normally be used as the first direct decendant of a `.grid__unit', but it's not necessary. It defines it's padding, it's shade and it's color (including gradients).
Markup
<div class="grid" data-controller="generic/ui/ResponsiveGrid">
<!-- Start of element markup -->
<div class="grid__unit s-4-4 m-6-12 l-4-12">
<div class="tile {{modifier_class}}">
<div class="tile__content">
<div class="tile__bannerContent">
<h2>NS Calling action</h2>
</div>
<div class="tile__footer">
<a href="javascript:void(0)" class="button button--arrowRight" title="Voorleestitel uit bannerinhoud in het CMS">
Call to Action
</a>
</div>
</div>
</div>
</div>
</div>
Examples of usage
Tile graphic
Top 5 wandelingen
- Fort de Roovere 12.6 km
- De Bretten 11 km
- Park Lingezegen 7 km
- Beerschoten 6 km
This component has a icon placed in the top right corner. This is done with the class .tile--tilegraphic
.
If you wish to position it the same way, make sure to use this class.
In this example we are only displaying one icon type.
To add a new icon and/or color make sure to place it in the $bg-tilegraphs:()
variable. This will automatically prefix your color and/or icon with tilegraphic--
.
Therefor when using you have to use it with the prefix.
the $bg-tilegraphs:()
has a key value relation. Which is where the name of the icon suits as the key and the color as the value.
Here is an example of the usage:
$bg-tilegraphs:('hike-large':('nsBlue'));
Markup
<div class="grid" data-controller="generic/ui/ResponsiveGrid">
<div class="grid__unit s-4-4 m-6-12">
<div class="tile tile--tilegraphic">
<div class="tile__title">
<h3 class="tile__heading headingM">
Top 5 wandelingen
<span class="tile__graphic tilegraphic tilegraphic--products-large tilegraphic--nsBlue"></span>
</h3>
</div>
<div class="tile__content">
<ul class="list list--specs">
<li class="list__item">
<a href="eropuit_wandeling-detail.shtml" class="arrowLink">Fort de Roovere</a>
<span class="list__spec">12.6 km</span>
</li>
<li class="list__item">
<a href="eropuit_wandeling-detail.shtml" class="arrowLink">De Bretten</a>
<span class="list__spec">11 km</span>
</li>
<li class="list__item">
<a href="eropuit_wandeling-detail.shtml" class="arrowLink">Park Lingezegen</a>
<span class="list__spec">7 km</span>
</li>
<li class="list__item">
<a href="eropuit_wandeling-detail.shtml" class="arrowLink">Beerschoten</a>
<span class="list__spec">6 km</span>
</li>
</ul>
</div>
</div>
</div>
</div>