There are no notes for this item.
<div class="slab slab--bg-offwhite">
<div class="wrap">
<h2 class="h3 slab__title">This is an offwhite slab</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</div>
{{ spaceless }}
{% set classString = '' %}
{% for modifier in modifiers %}
{% set classString = classString ~ ' slab--' ~ modifier %}
{% endfor %}
{% if background %}
{% set classString = classString ~ ' slab--bg-' ~ background %}
{% endif %}
<div class="slab{{ classString }}">
<div class="wrap">
<h2 class="h3 slab__title">{{ text }}</h2>
<p>{{ loremLong }}</p>
</div>
</div>
{{ endspaceless }}
.slab {
position: relative;
$border-color: $grey--light;
padding: $spacing-4xl 0;
z-index: 0;
&__title {
margin-top: $spacing-md;
}
&__header {
margin-top: -#{$spacing-4xl};
}
//--
&--border-bottom {
border-bottom: 1px solid $border-color;
}
&--border-top {
border-bottom: 1px solid $border-color;
}
//--
@each $name, $value in $slab-bg-colors {
&--bg-#{$name} {
background-color: #{$value};
@if (choose-contrast-color($value) == white) {
color: white;
}
}
}
}