Hoppa till huvudinnehåll

Echo Helpers

There are a couple of helpers built in to Snowfire to make it simple to keep the same content width and breakpoints throughout blocks.

Uppdaterad för mer än en vecka sedan

There are a couple of helpers built in to Snowfire to make it simple to keep the same content width and breakpoints throughout blocks.

Container

Users can apply container classes to divs with these specifications:

Class

Width

echo-container-xs

430px

echo-container-sm

730px

echo-container-md

1170px

echo-container-lg

1440px

> Recommendation: Most default blocks are using the md size, and the sm size for text content.

Example

<div class="echo-container-md">
<sf-text id=":1"></sf-text>
</div>

Breakpoints

CSS breakpoint helper using SCSS syntax:

.my-class {
display: flex;

@include echo-breakpoint-down(xs) {
display: block;
}
}

Breakpoint Sizes

Breakpoint

Width

Device

xs

567px

Phones

sm

768px

Portrait tablets

md

992px

Landscape tablets

lg

1200px

Laptops

Fick du svar på din fråga?