<div class="news-container common-template__news-container">
<div style="border: 2px dashed grey; height: 100px;">
<p>This content will be replaced when using the row container. This is for illustration purposes only</p>
</div>
<div style="border: 2px dashed grey; height: 100px;"></div>
<div style="border: 2px dashed grey; height: 100px;"></div>
</div>
All the styles relating to .news-container
have been extracted into a corresponding sass file, ideally we would split away from the need for common-template__
naming, but this isn’t currently supported. To do so, we can:
static/src/library/pages/common-template/common-template.scss
app.scss
/* No context defined. */
.common-template__news-container, //TODO: We should look to phase this class out
.news-container {
display: grid;
grid-template-columns: 1fr;
row-gap: $spacing-xxl;
margin: 4rem auto;
padding: 0 $spacing-m;
.cta {
margin-left: auto;
margin-right: auto;
}
@media screen and (min-width: $mq-large) {
max-width: 95.2rem;
padding: 0;
}
}
<div class="news-container common-template__news-container">
{{title}}
{{#> @partial-block}}
<div style="border: 2px dashed grey; height: 100px;">
<p>This content will be replaced when using the row container. This is for illustration purposes only</p>
</div>
<div style="border: 2px dashed grey; height: 100px;"></div>
<div style="border: 2px dashed grey; height: 100px;"></div>
{{/ @partial-block}}
</div>