6 utility Utility
Utility components are specialized components that are often used to easily fix complex CSS problems.
styles.scss, line 133
6.1 utility.clearfix Clearfix
Allows the bottom of an element to extend to the bottom of all floated child elements. See http://nicolasgallagher.com/micro-clearfix-hack/
Markup: utility/clearfix/clearfix.twig
<div class="clearfix">
<div style="float: left; height: 50px; width: 50%;">A floated item.</div>
</div>
utility/clearfix/_clearfix.scss, line 1
6.2 utility.inline-sibling Inline sibling
An element that needs to appear inline with the content that follows.
A Heading
A normal paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Markup: utility/inline-sibling/inline-sibling.twig
<h4 class="inline-sibling {{modifier_class}}">A Heading</h4>
<p>A normal paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
utility/inline-sibling/_inline-sibling.scss, line 1
6.3 utility.print-none Do not print
Removes an element from the print version of the web site.
By importing these CSS rules in a file marked as media "all", we allow these print rules to be aggregated with other stylesheets, for improved front-end performance.
This item will not be printed.
Markup: utility/print-none/print-none.twig
<p class="print-none">
This item will not be printed.
</p>
utility/print-none/_print-none.scss, line 1
6.4 utility.responsive-video Responsive video
Using a wrapper div, embedded videos can be made responsive so that their
intrinsic aspect ratio is preserved at any screen width. The
responsive-video__embed class is optional if the embed is an iframe.
Markup: utility/responsive-video/responsive-video.twig
<div class="responsive-video {{modifier_class}}">
<iframe class="responsive-video__embed" width="560" height="315" src="https://www.youtube.com/embed/8N_tupPBtWQ" frameborder="0" allowfullscreen></iframe>
</div>
utility/responsive-video/_responsive-video.scss, line 1