No notes defined.
<div class="box box--padded">
<h2>Padded Box</h2>
<p>Normally the <code>box__content</code> inside the box has the padding (in case we need an image or something to bleed to the edge of the container)</p>
<p>But if it's just got content in it, if you add the <code>box--padded</code>, you don't have to add the extra container inside :)</p>
<p>Lipsum 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 class="box box--padded">
<h2>Padded Box</h2>
<p>Normally the <code>box__content</code> inside the box has the padding (in case we need an image or something to bleed to the edge of the container)</p>
<p>But if it's just got content in it, if you add the <code>box--padded</code>, you don't have to add the extra container inside :)</p>
<p>{{ lorem }}</p>
</div>
$box__border-width: $border-accent-width*2;
.box {
background: $offwhite;
margin-bottom: $spacing-lg;
&__content,
&--padded {
@include box__padding;
> *:first-child {
margin-top: 0;
}
> *:last-child {
margin-bottom: 0;
}
}
&--white {
background: white;
}
&--tertiary {
background: $tertiary;
color: white;
}
&--border-tertiary {
background: white;
border: $box__border-width solid $tertiary;
}
}