No notes defined.
<div class="tic">
<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>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>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 but <strong>not floated</strong>, so if longer than the image, it will <strong>wrap around the image like this</strong> (resize to smaller screen to see more accentuated), but still be subject to the standard <strong>maximum
line-length</strong>.</p>
<a href="#" class="button button--xs button--tertiary">All SSW artwork</a>
</div>
</div>
<div class="tic">
<div class="tic__title">
<h3 class="text-color-tertiary">{{ title ?: '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">
{% if content %}
{{ content }}
{% else %}
<p>{{ lorem }}</p>
<p>{{ lorem }}</p>
<p><strong>Note that</strong> the content area is contained but <strong>not floated</strong>, so if longer than the image, it will <strong>wrap around the image like this</strong> (resize to smaller screen to see more accentuated), but still be subject to the standard <strong>maximum
line-length</strong>.</p>
<a href="#" class="button button--xs button--tertiary">All SSW artwork</a>
{% endif %}
</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;
}
}
}
}