No notes defined.
<div class="tic tic--reverse">
<div class="tic__title">
<h3 class="text-color-tertiary">TIC: Title, Image, Content!</h3>
<p class="strong">Garry Winogrand | American, 1928-1984</p>
</div>
<figure class="tic__figure">
<img class="tic__img" src="https://designs.hs.to/ssw/img/card/4.jpg" alt="" />
</figure>
<div class="tic__content">
<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>
<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>
<p><strong>Note that</strong> the content area is contained <strong>and floated at wider widths</strong>, so if longer than the image, it will <strong>maintain a margin to the left</strong> like this.</p>
<a href="#" class="button button--xs button--tertiary">All SSW artwork</a>
</div>
</div>
<div class="tic tic--reverse">
<div class="tic__title">
<h3 class="text-color-tertiary">TIC: Title, Image, Content!</h3>
<p class="strong">Garry Winogrand | American, 1928-1984</p>
</div>
<figure class="tic__figure">
<img class="tic__img" src="https://designs.hs.to/ssw/img/card/{{ random(5) }}.jpg" alt=""/>
</figure>
<div class="tic__content">
<p>{{ loremLong }}</p>
<p>{{ lorem }}</p>
<p><strong>Note that</strong> the content area is contained <strong>and floated at wider widths</strong>, so if longer than the image, it will <strong>maintain a margin to the left</strong> like this.</p>
<a href="#" class="button button--xs button--tertiary">All SSW artwork</a>
</div>
</div>
// For a 'Title, image, content' block
@use "sass:math";
.tic {
@include clearfix;
$tic__smallWidth: calc(33% - math.div($grid-gutter-large, 2));
$tic__fullWidth: calc(50% - math.div($grid-gutter-large, 2));
$tic__smallWidth-breakpoint: $third-breakpoint;
$tic__fullWidth-breakpoint: $quart-breakpoint;
margin: 0 0 $spacing-lg;
&__title {
margin-top: 0;
margin-bottom: $spacing-md;
> * {
margin: 0 0 $spacing-xs;
}
@media (min-width: $tic__fullWidth-breakpoint) {
float: left;
width: $tic__fullWidth;
}
}
&__figure {
margin: 0 0 $spacing-lg;
@media (min-width: $tic__smallWidth-breakpoint) {
float: right;
clear: right;
max-width: $tic__smallWidth;
box-sizing: border-box;
margin-right: 0;
margin-top: $spacing-xs;
margin-left: $grid-gutter-large;
margin-bottom: $spacing-md;
}
@media (min-width: $tic__fullWidth-breakpoint) {
max-width: $tic__fullWidth;
}
}
&__content {
clear: left;
}
// reversed version
&--reverse {
.tic__title {
@media (min-width: $tic__fullWidth-breakpoint) {
float: right;
width: $tic__fullWidth;
}
}
.tic__figure {
@media (min-width: $tic__smallWidth-breakpoint) {
float: left;
clear: none;
max-width: $tic__smallWidth;
box-sizing: border-box;
margin-left: 0;
margin-top: $spacing-xs;
margin-right: $grid-gutter-large;
margin-bottom: $spacing-md;
}
@media (min-width: $tic__fullWidth-breakpoint) {
max-width: $tic__fullWidth;
}
}
.tic__content {
clear: right;
@media (min-width: $tic__fullWidth-breakpoint) {
float: right;
width: $tic__fullWidth;
}
}
}
}