Components
Max-width wrappers for pages and components.
Version: | 4.0.3 •View source•Changelog•Report issue | |
---|---|---|
Install: | yarn add @thumbtack/thumbprint-scss |
Basic wrapper with a max-width and side padding.
<div class="tp-wrap ba b-green">Your page content goes here.</div>
Deprecated
Wrappers that "snap" and the tp-wrap-snap
class are deprecated in favor of fluid wrappers.
This provides a wrapper around content that “snaps” to fixed max-widths depending on the breakpoint. You can put any content in this wrapper.
The layout of the content inside the wrap-snap
can be adjusted using the provide breakpoint mixins, for example:
.my-component {@include tp-respond-above($tp-breakpoint__medium);}
<div class="tp-wrap-snap ba b-green" className="ba b-green">Your page content goes here.</div>
In some cases you’ll want the wrapper to be full width with no padding at mobile, that is, below the small breakpoint.
<div class="tp-wrap tp-wrap--bleed-below-small ba b-green">Your page content goes here.</div>
<div class="tp-wrap-snap tp-wrap--bleed-below-small ba b-green">Your page content goes here.</div>