HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URL's added here will be added as <link>
s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
If the stylesheet you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="wporg-header">
<div class="prototype-controls">
<button data-section="home" class="section-toggle prototype-controls__home">Home</button>
<button data-section="search" class="section-toggle prototype-controls__search">Search</button>
<button data-section="details" class="section-toggle prototype-controls__details">Details</button>
<button class="modal-toggle">Modal</button>
</div>
</div>
<div id="copy-pattern-details" class="modal">
<div class="modal__contents">
<button class="modal__close">
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z" />
</SVG>
</button>
<div class="modal__contents-inner">
<div class="copy-pattern-details__instructions">
<h3 class="modal__title">How to use patterns on your WordPress site.</h3>
<p>Patterns are really just text. And, just like you can copy and paste text, you can copy and paste patterns. Its really easy!</p>
<ol>
<li><p>Open any post or page in the WordPress block editor.</p></li>
<li><p>Place your cursor where you want to add the pattern.</p></li>
<li><p>Paste the contents of your clipboard by pressing both the <span class="keyboard-shortcut">⌘</span> and <span class="keyboard-shortcut">v</span> keys, or right-clicking and choose "Paste" from the menu.</p></li>
</ol>
</div>
<div class="copy-pattern-details__demo">
<img src="https://shaunandrews.com/wp-content/uploads/2021/03/pattern-paste-demo-2.gif" />
</div>
</div>
</div>
<div class="modal__scrim"></div>
</div>
<div id="home" class="section is-current">
<div class="section-header">
<div class="wrapper__max-width hstack">
<div class="section-header__primary">
<h2>WordPress Patterns</h2>
<p class="large">Add a beautifully designed, ready to go layout to any WordPress site with a simple copy/paste.</p>
</div>
<div class="section-header__secondary">
<h3>Create and share patterns</h3>
<p>Build your own patterns and share them with the WordPress world.</p>
<a href="#">Learn more</a>
</div>
<div class="section-header__secondary is-signed-in" style="display:none;">
<h3>My patterns <small><a href="#">View all</a></small></h3>
<p>You’ve created <strong>6 patterns</strong> and have recieved <strong>392 favorites</strong>.</p>
<p class="secondary__pending">1 pattern is pending review.</p>
<button>Create new pattern</button>
</div>
</div>
</div>
<div class="section-navigation">
<div class="wrapper__max-width hstack">
<div class="navigation__sorter popover">
<button class="popover-toggle sorter__current">
Featured
<SVG class="popover-toggle__icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" />
</SVG>
</button>
<div class="popover-content sorter__options">
<div class="sort-by is-current">
Featured
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z" />
</SVG>
</div>
<div class="sort-by">Most popular</div>
<div class="sort-by">Newest</div>
</div>
</div>
<ul class="navigation__categories">
<li><a class="is-current" href="#new">All</a></li>
<li><a href="#">Header</a></li>
<li><a href="#">Sidebar</a></li>
<li><a href="#">Footer</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Media</a></li>
<li><a href="#">Ecommerce</a></li>
<li class="popover">
<button class="popover-toggle more-categories__toggle">
<SVG class="popover-toggle__icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" />
</SVG>
</button>
<div class="popover-content more-categories__popover">
<h4 class="popover-content__title">More categories</h4>
<ul class="more-categories__list">
<li><a href="#">Quote</a></li>
<li><a href="#">Reservations</a></li>
<li><a href="#">Video</a></li>
<li><a href="#">Appointments</a></li>
<li><a href="#">Social</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Donation</a></li>
<li><a href="#">Calendar</a></li>
<li><a href="#">Newsletter</a></li>
<li><a href="#">Chart</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">FAQs</a></li>
<li><a href="#">Location</a></li>
<li><a href="#">Logos</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Quote</a></li>
<li><a href="#">Reservations</a></li>
<li><a href="#">Video</a></li>
<li><a href="#">Appointments</a></li>
<li><a href="#">Social</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Donation</a></li>
<li><a href="#">Calendar</a></li>
<li><a href="#">Newsletter</a></li>
<li><a href="#">Chart</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">FAQs</a></li>
<li><a href="#">Location</a></li>
<li><a href="#">Logos</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Pricing</a></li>
</ul>
<a class="more-categories__all-button" href="#">View all categories</a>
</div>
</li>
</ul>
<div class="navigation__search">
<input type="search" placeholder="Search patterns" />
</div>
</div>
</div>
<div class="patterns-grid wrapper__max-width">
<div class="pattern">
<div class="pattern__preview" style="height: 218px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Talk to the Host</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 149px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">About Me</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 87px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Email Subscription</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 132px"></div>
<div class="pattern__actions">
<span class="pattern__title">Pattern title goes here</span>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 176px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Quote and Logos</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 98px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">List with Images</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
</div>
<div class="pager wrapper__max-width">
<ol class="pager__pages">
<li class="pager__current">1</li>
<li><a class="pager__page" href="#">2</a></li>
<li><a class="pager__page" href="#">3</a></li>
<li><a class="pager__page" href="#">4</a></li>
<li class="pager__truncation">…</li>
<li><a class="pager__page" href="#">32</a></li>
<li><a class="pager__page" href="#">33</a></li>
</ol>
<a class="pager__next" href="#">Next</a>
<a class="pager__previous" href="#">Previous</a>
</div>
</div>
<div id="search" class="section">
<div class="section-header is-small">
<div class="wrapper__max-width hstack">
<ol class="section-header__breadcrumbs">
<li><a href="#">All patterns</a></li>
<li>Search results for "Pricing"</li>
</ol>
<ul class="section-header__secondary-navigation">
<li><a href="#">Create pattern</a></li>
<li><a href="#">My patterns</a></li>
</ul>
</div>
</div>
<div class="section-navigation">
<div class="wrapper__max-width hstack">
<div class="navigation__sorter popover">
<button class="popover-toggle sorter__current">
Featured
<SVG class="popover-toggle__icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" />
</SVG>
</button>
<div class="popover-content sorter__options">
<div class="sort-by is-current">
Featured
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z" />
</SVG>
</div>
<div class="sort-by">Most popular</div>
<div class="sort-by">Newest</div>
</div>
</div>
<ul class="navigation__categories">
<li><a href="#new">All</a></li>
<li><a href="#">Header</a></li>
<li><a href="#">Sidebar</a></li>
<li><a href="#">Footer</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Media</a></li>
<li><a href="#">Ecommerce</a></li>
<li class="popover">
<button class="popover-toggle more-categories__toggle">
<SVG class="popover-toggle__icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" />
</SVG>
</button>
<div class="popover-content more-categories__popover">
<h4 class="popover-content__title">More categories</h4>
<ul class="more-categories__list">
<li><a href="#">Quote</a></li>
<li><a href="#">Reservations</a></li>
<li><a href="#">Video</a></li>
<li><a href="#">Appointments</a></li>
<li><a href="#">Social</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Donation</a></li>
<li><a href="#">Calendar</a></li>
<li><a href="#">Newsletter</a></li>
<li><a href="#">Chart</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">FAQs</a></li>
<li><a href="#">Location</a></li>
<li><a href="#">Logos</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Quote</a></li>
<li><a href="#">Reservations</a></li>
<li><a href="#">Video</a></li>
<li><a href="#">Appointments</a></li>
<li><a href="#">Social</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Donation</a></li>
<li><a href="#">Calendar</a></li>
<li><a href="#">Newsletter</a></li>
<li><a href="#">Chart</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">FAQs</a></li>
<li><a href="#">Location</a></li>
<li><a href="#">Logos</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Pricing</a></li>
</ul>
<a class="more-categories__all-button" href="#">View all categories</a>
</div>
</li>
</ul>
<div class="navigation__search is-current">
<input type="search" placeholder="Search patterns" value="Pricing" />
</div>
</div>
</div>
<div class="filter-details">
<h3 class="filter-details__description">8 patterns found for "<strong>Pricing</strong>"</h3>
<div class="filter-details__secondary">
<h4>Related categories</h4>
<a href="#">Ecommerce</a>
<a href="#">Columns</a>
<a href="#">Marketing</a>
</div>
</div>
<div class="patterns-grid wrapper__max-width">
<div class="pattern">
<div class="pattern__preview" style="height: 218px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Talk to the Host</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 149px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">About Me</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 87px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Email Subscription</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 132px"></div>
<div class="pattern__actions">
<span class="pattern__title">Pattern title goes here</span>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 176px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Quote and Logos</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 98px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">List with Images</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
</div>
</div>
<div id="details" class="section">
<div class="section-header is-small">
<div class="wrapper__max-width hstack">
<ol class="section-header__breadcrumbs">
<li><a href="#">All patterns</a></li>
<li>Pattern details</li>
</ol>
<ul class="section-header__secondary-navigation">
<li><a href="#">Create pattern</a></li>
<li><a href="#">My patterns</a></li>
</ul>
</div>
</div>
<div class="pattern-description wrapper__max-width">
<h2>Intro section with text and spot images</h2>
<p>A two-column layout with whimsical dots in the background. Great for an about page or to introduce a product or topic.</p>
<div class="pattern-description__actions">
<button class="copy-button">Copy pattern</button>
<button class="favorite-button has-label">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
<span class="favorite-label">Add to favorites</span>
</button>
</div>
<div class="notice success is-hidden notice__pattern-copied">
<p><strong>Pattern copied!</strong> Now you can paste it into any WordPress post or page.</p>
<button class="notice__action">Learn more</button>
</div>
</div>
<div class="pattern-live-preview">
<div class="pattern-live-preview__canvas">
<div class="canvas__drag-handle left"></div>
<div class="canvas__drag-handle right"></div>
</div>
<div class="pattern-meta wrapper__max-width">
<div class="pattern-categories">
<h4>Categories</h4>
<a href="#">Ecommerce</a>
<a href="#">Columns</a>
<a href="#">Marketing</a>
</div>
<div class="pattern-report"><a href="#">Report this pattern</a></div>
</div>
</div>
<div class="explore wrapper__max-width">
<h3>More from this designer</h3>
<div class="explore__meta">
<h4>Designer</h4>
<a href="#">Bill Brasky</a>
<h4>Website</h4>
<a href="#">billbrasky.com/wp-patterns/</a>
</div>
<div class="designers-patterns patterns-grid">
<div class="pattern">
<div class="pattern__preview" style="height: 218px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Talk to the Host</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 149px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">About Me</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 87px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Email Subscription</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 132px"></div>
<div class="pattern__actions">
<span class="pattern__title">Pattern title goes here</span>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 176px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Quote and Logos</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 98px;"></div>
<div class="pattern__actions">
<h4 class="pattern__title">List with Images</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
</div>
<h3>Patterns with similar categories</h3>
<div class="explore__meta">
<h4>Related categories</h4>
<a href="#">Pricing</a>
<a href="#">Media</a>
<a href="#">Intro</a>
</div>
<div class="similar-patterns patterns-grid">
<div class="pattern">
<div class="pattern__preview" style="height: 150px"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Talk to the Host</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 350px"></div>
<div class="pattern__actions">
<h4 class="pattern__title">About Me</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 50px"></div>
<div class="pattern__actions">
<h4 class="pattern__title">Email Subscription</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 230px"></div>
<div class="pattern__actions">
<h4 class="pattern__title">About Me</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
<div class="pattern">
<div class="pattern__preview" style="height: 150px"></div>
<div class="pattern__actions">
<h4 class="pattern__title">About Me</h4>
<button class="copy-button is-small">Copy</button>
<button class="favorite-button">
<svg class="favorite-outline" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.915c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.394 6.855-8.537 11.518l-.013.012-1.45 1.32-1.45-1.31-.04-.036C5.384 15.17 2 12.095 2 8.325c0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09zm0 13.56l.1-.1c4.76-4.31 7.9-7.16 7.9-10.05 0-2-1.5-3.5-3.5-3.5-1.54 0-3.04.99-3.56 2.36h-1.87c-.53-1.37-2.03-2.36-3.57-2.36-2 0-3.5 1.5-3.5 3.5 0 2.89 3.14 5.74 7.9 10.05l.1.1z" fill="#000" />
</svg>
<svg class="favorite-filled" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.941 21.175l-1.443-1.32c-5.124-4.67-8.508-7.75-8.508-11.53 0-3.08 2.408-5.5 5.473-5.5 1.732 0 3.394.81 4.478 2.09 1.085-1.28 2.747-2.09 4.478-2.09 3.065 0 5.473 2.42 5.473 5.5 0 3.78-3.383 6.86-8.508 11.54l-1.443 1.31z" fill="#000" />
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="wporg-footer">Code is poetry</div>
<script>
var home = new Macy({
container: '#home .patterns-grid',
mobileFirst: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
},
});
var search = new Macy({
container: '#search .patterns-grid',
mobileFirst: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
},
});
var detailsDesigner = new Macy({
container: '#details .designers-patterns',
mobileFirst: true,
// trueOrder: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
},
});
var detailsSimilar = new Macy({
container: '#details .similar-patterns',
mobileFirst: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
},
});
</script>
$color-blue: #0073aa;
$color-gray-900: #191e23;
$color-gray-800: #23282d;
$color-gray-600: #d7dade;
$color-gray-300: #edeff0;
$color-text: $color-gray-900;
$color-links: $color-blue;
$color-borders: $color-gray-600;
body {
font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
font-size: 16px;
color: $color-text;
line-height: 1;
p {
line-height: 1.4;
}
a {
color: $color-blue;
text-decoration: none;
&:hover {
color: lighten($color-links, 10%);
}
}
button {
cursor: pointer;
font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
font-size: 16px;
border: none;
background: none;
padding: 0;
line-height: 1;
outline: none;
}
.wrapper__max-width {
max-width: 960px;
margin: auto;
}
.hstack {
display: flex;
align-items: center;
}
.popover {
position: relative;
.popover-toggle {
}
.popover-toggle__icon {
transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.popover-content {
position: absolute;
z-index: 100000;
min-width: 280px;
background: rgba(white, 0.85);
backdrop-filter: blur(10px);
padding: 18px;
border-radius: 2px;
box-shadow: 0 2px 3px rgba($color-gray-900, 0.2);
opacity: 0;
transform-origin: top left;
transform: scale(0.9) translatey(-30px);
pointer-events: none;
transition: all 0.075s ease-in-out;
}
.popover-content__title {
font-size: 12px;
text-transform: uppercase;
}
&.is-visible {
.popover-toggle__icon {
transform: rotate(180deg);
}
.popover-content {
display: block;
opacity: 1;
transform: translatey(0) scale(1) rotate(0);
pointer-events: auto;
}
}
}
}
.prototype-controls {
display: flex;
padding: 12px;
position: relative;
z-index: 20000;
button {
font-size: 12px;
padding: 6px 12px;
background: white;
border-radius: 2px;
margin-right: 12px;
box-shadow: inset 0 0 0 1px rgba(black, 0.3), 0 2px 2px rgba(black, 0.4);
}
}
.notice.is-prototype {
display: none;
}
.wporg-header {
background: $color-gray-800;
height: 120px;
}
.wporg-footer {
text-align: center;
padding: 240px 0 120px;
font-size: 20px;
background: $color-gray-300;
text-transform: uppercase;
font-weight: bold;
color: rgba(black, 0.3);
text-shadow: 0 1px 0 white;
}
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 999;
.modal__contents {
opacity: 0;
position: relative;
z-index: 1001;
max-width: 380px;
margin: 20% auto;
border-radius: 6px;
background: white;
transform: scale(1.1) translatey(-30px);
overflow: hidden;
transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow: 0 2px 3px rgba(black, 0.4);
padding: 24px;
.modal__close {
position: absolute;
z-index: 1;
top: 12px;
right: 12px;
height: 32px;
width: 32px;
padding: 6px;
border-radius: 2px;
transition: all 0.075s ease-in-out;
&:hover {
background: white;
}
}
.modal__title {
font-size: 24px;
font-weight: 600;
margin: 0 24px 18px 0;
}
}
.modal__scrim {
position: fixed;
z-index: 1000;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(black, 0.2);
backdrop-filter: blur(3px);
opacity: 0;
transition: all 0.05s linear;
}
pointer-events: none;
&.is-visible {
pointer-events: auto;
.modal__contents {
opacity: 1;
transform: scale(1) translatey(0);
}
.modal__scrim {
opacity: 1;
}
}
}
#copy-pattern-details {
.modal__contents {
padding: 0;
}
.modal__contents-inner {
display: flex;
flex-direction: column;
}
.copy-pattern-details__instructions {
padding: 36px;
order: 2;
.keyboard-shortcut {
background: $color-gray-300;
box-shadow: 0 0 0 1px $color-borders;
padding: 1px;
font-weight: 600;
min-width: 20px;
display: inline-block;
text-align: center;
border-radius: 2px;
}
}
.copy-pattern-details__demo {
order: 1;
border-radius: 2px 2px 0 0;
transform: scale(1.1);
background: #D2DCD8;
height: 150px;
overflow: hidden;
padding-top: 36px;
border-bottom: 1px solid $color-borders;
img {
width: 80%;
display: block;
margin: auto;
}
}
p {
margin-bottom: 18px;
}
ol {
list-style: decimal;
margin-left: 18px;
}
li {
&::marker {
font-weight: bold;
display: inline-block;
outline: 1px solid red;
margin-right: 12px;
}
&:last-child p {
margin-bottom: 0;
}
}
}
.section {
display: none;
&.is-current {
display: block;
}
}
.section-header {
background: #0073aa;
color: white;
padding: 60px 0;
&.is-small {
padding: 18px 0;
}
.section-header__primary {
padding: 0 24px 0 0;
h2 {
font-size: 48px;
font-weight: 300;
}
p.large {
font-size: 20px;
margin: 12px 0 24px 0;
}
}
.section-header__secondary {
background: white;
color: $color-text;
padding: 18px;
box-shadow: 10px 10px 0 0 rgba(black, 0.2);
h3 {
font-size: 20px;
font-weight: 600;
margin-bottom: 12px;
}
p {
margin-bottom: 12px;
}
a {
text-decoration: underline;
}
}
.section-header__breadcrumbs {
display: flex;
flex-grow: 1;
font-size: 13px;
padding-left: 12px;
a {
color: white;
}
li {
&:after {
content: "/";
display: inline-block;
padding: 0 12px;
}
&:last-child {
font-weight: 600;
margin-right: 0;
&:after {
display: none;
}
}
}
}
.section-header__secondary-navigation {
display: flex;
font-size: 13px;
a {
color: white;
}
li {
margin-right: 18px;
&:last-child {
margin-right: 0;
}
}
}
}
.section-navigation {
background: $color-gray-300;
border-bottom: 1px solid $color-borders;
margin-bottom: 24px;
.navigation__sorter {
margin: 12px 0;
.sorter__current {
cursor: pointer;
line-height: 1;
font-size: 14px;
background: white;
box-shadow: 0 0 0 1px $color-borders inset;
border-radius: 2px;
padding: 11px 32px 11px 12px;
position: relative;
&:active {
background: $color-gray-300;
box-shadow: 0 0 0 1px darken($color-borders, 15) inset,
0 2px 0 0 $color-borders inset;
}
svg {
position: absolute;
top: calc(50% - 9px);
right: 9px;
height: 18px;
width: 18px;
}
}
.sorter__options {
min-width: 160px;
padding: 6px;
font-size: 14px;
top: 42px;
.sort-by {
position: relative;
cursor: pointer;
padding: 9px 24px 9px 12px;
svg {
height: 18px;
width: 18px;
position: absolute;
top: calc(50% - 9px);
right: 9px;
}
&.is-current {
font-weight: 600;
}
&:hover {
background: $color-gray-300;
}
}
}
}
.navigation__categories {
display: flex;
flex-grow: 1;
margin: 0 18px;
a {
display: inline-block;
padding: 22px 9px;
text-decoration: none;
&:hover {
color: lighten($color-links, 10%);
border-bottom-color: $color-links;
}
&.is-current {
position: relative;
color: $color-text;
font-weight: bold;
border-bottom-color: $color-links;
&:after {
content: "";
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 3px;
background: $color-blue;
}
}
}
.more-categories__toggle {
cursor: pointer;
display: inline-block;
margin: 12px 0 12px 12px;
padding: 8px 9px;
background: white;
box-shadow: 0 0 0 1px $color-borders inset;
border-radius: 2px;
&:active {
background: $color-gray-300;
box-shadow: 0 0 0 1px darken($color-borders, 15) inset,
0 2px 0 0 $color-borders inset;
}
svg {
height: 18px;
width: 18px;
}
}
.more-categories__popover {
left: 12px;
top: 54px;
}
.more-categories__list {
font-size: 14px;
margin: 12px -12px;
columns: 3;
column-gap: 18px;
li {
}
a {
border-radius: 2px;
display: block;
padding: 12px;
&:hover {
// background: $color-gray-300;
}
}
}
.more-categories__all-button {
display: block;
font-size: 14px;
background: $color-gray-900;
color: white;
text-align: center;
padding: 18px;
margin: 0 -18px -18px -18px;
border-radius: 0 0 2px 2px;
}
}
.navigation__search {
margin: 12px 0;
input {
line-height: 1;
font-size: 14px;
background: white;
border: none;
box-shadow: 0 0 0 1px $color-borders inset;
border-radius: 2px;
padding: 10px 12px 10px 12px;
&:active,
&:focus {
box-shadow: 0 0 0 1px darken($color-borders, 15) inset,
0 2px 0 0 $color-borders inset;
}
}
&.is-current {
input {
box-shadow: 0 0 0 2px $color-gray-900 inset;
}
}
}
}
.filter-details {
background: $color-gray-300;
border-radius: 2px;
margin: 24px auto;
max-width: calc(960px - 36px);
padding: 18px;
font-size: 14px;
display: flex;
.filter-details__description {
flex-grow: 1;
strong {
font-weight: 600;
}
}
.filter-details__secondary {
display: flex;
align-items: baseline;
h4 {
text-transform: uppercase;
font-weight: 600;
font-size: 12px;
}
a {
text-decoration: none;
color: $color-links;
margin-left: 12px;
&:hover {
color: lighten($color-links, 10);
}
}
}
}
.patterns-grid {
}
.pager {
padding-bottom: 36px;
display: flex;
.pager__pages {
display: flex;
flex-grow: 1;
order: 2;
justify-content: center;
li {
margin-right: 6px;
}
}
.pager__current {
min-width: 20px;
background: $color-gray-900;
color: white;
text-align: center;
border-radius: 2px;
padding: 6px;
}
.pager__page {
display: block;
text-align: center;
min-width: 20px;
box-shadow: 0 0 0 1px $color-borders;
border-radius: 2px;
padding: 6px;
transition: all 0.1s ease-in-out;
&:active {
background: $color-gray-300;
box-shadow: 0 0 0 1px darken($color-borders, 15),
inset 0 1px 0 $color-borders;
}
}
.pager__truncation {
padding: 0 6px;
font-weight: bold;
color: rgba(black, 0.3);
}
.pager__next,
.pager__previous {
display: block;
text-align: center;
min-width: 80px;
box-shadow: 0 0 0 1px $color-borders;
border-radius: 2px;
padding: 6px 6px;
transition: all 0.1s ease-in-out;
&:active {
background: $color-gray-300;
box-shadow: 0 0 0 1px darken($color-borders, 15),
inset 0 1px 0 $color-borders;
}
}
.pager__next {
order: 3;
}
.pager__previous {
order: 1;
margin-right: 6px;
}
}
.pattern {
position: relative;
display: inline-block;
min-height: 54px;
padding: 1px;
border-radius: 2px;
transition: all 0.075s ease-in-out;
.pattern__preview {
background-image: linear-gradient(45deg, #ffffff 48.39%, #737373 48.39%, #737373 50%, #ffffff 50%, #ffffff 98.39%, #737373 98.39%, #737373 100%);
background-size: 43.84px 43.84px;
img {
display: block;
max-height: 100%;
max-width: 100%;
border-radius: 2px;
}
}
.pattern__actions {
position: absolute;
right: 1px;
bottom: 1px;
left: 1px;
display: flex;
align-items: center;
padding: 6px;
// border-radius: 2px;
background: rgba(white, 0.8);
backdrop-filter: blur(3px);
// border-top: 1px solid $color-borders;
opacity: 0;
transform: translatey(6px);
transition: all 0.075s ease-in-out;
.pattern__title {
flex-grow: 1;
padding: 0 6px 0 12px;
font-size: 12px;
pointer-events: none;
}
.copy-button {
order: 3;
}
.favorite-button {
margin-right: 6px;
}
}
&:after {
pointer-events: none;
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 2px;
box-shadow: 0 0 0 1px $color-borders inset;
transition: all 0.075s ease-in-out;
}
&:hover {
&:after {
// box-shadow: 0 0 0 1.5px $color-blue inset;
}
.pattern__actions {
opacity: 1;
transform: translatey(0);
}
}
&.is-copied {
outline: 4px solid red;
}
}
.pattern-description {
padding: 36px 0 18px 0;
h2 {
font-size: 38px;
margin-bottom: 12px;
}
p {
line-height: 1.8;
max-width: 720px;
margin-bottom: 18px;
}
.pattern-description__actions {
margin-bottom: 18px;
}
.copy-button {
margin-right: 18px;
}
}
.notice {
display: flex;
align-items: baseline;
border-radius: 2px;
font-size: 14px;
max-height: 60px;
overflow: hidden;
transform: translatey(0);
transition: all 0.15s ease-in-out;
&.is-hidden {
max-height: 0;
transform: translatey(30px);
}
&.success {
background: #DBF1E0;
}
p, .notice__action {
// display: none;
}
p {
max-width: 100%;
margin: 6px 6px 6px 18px;
flex-grow: 1;
strong {
font-weight: 600;
}
}
.notice__action {
font-size: 14px;
background: $color-gray-300;
box-shadow: 0 0 0 1px $color-borders inset,
0 -2px 0 0 $color-borders inset;
border-radius: 2px;
padding: 12px 18px;
margin: 6px;
&:active {
background: darken($color-gray-300, 5);
box-shadow: 0 0 0 1px darken($color-borders, 15) inset,
0 2px 0 0 $color-borders inset;
}
}
}
.copy-button {
background: $color-blue;
color: white;
font-size: 14px;
padding: 12px 36px;
border-radius: 2px;
transition: all 0.075s ease-in-out;
box-shadow: inset 0 0 0 1px rgba(black, 0.3),
inset 0 -2px 0 0 rgba(black, 0.4);
&.is-small {
font-size: 12px;
padding: 12px;
}
&.is-copying {
}
&:active {
background: darken($color-blue, 6);
box-shadow: inset 0 0 0 1px rgba(black, 0.3),
inset 0 2px 0 0 rgba(black, 0.4);
}
strong {
font-weight: 600;
}
}
.favorite-button {
position: relative;
font-size: 14px;
height: 36px;
width: 36px;
border-radius: 2px;
color: #6c7781;
svg {
position: absolute;
top: calc(50% - 12px);
left: calc(50% - 12px);
height: 24px;
width: 24px;
transition: all 0.15s ease-out;
path {
fill: #6c7781;
}
}
.favorite-outline {
}
.favorite-filled {
opacity: 0;
}
&:hover {
color: $color-text;
svg path {
fill: $color-text;
}
}
&.is-favorited {
color: $color-text;
svg path {
fill: #d94f4f;
}
.favorite-outline {
opacity: 0;
transform: scale(2.8);
}
.favorite-filled {
opacity: 1;
}
&:hover .favorite-filled {
animation: 0.9s infinite HeartBeat;
}
}
&.has-label {
padding: 12px 18px 12px 38px;
height: auto;
width: auto;
svg {
top: calc(50% - 12px);
left: 9px;
}
}
}
@keyframes HeartBeat {
0% {
transform: scale(1);
}
25% {
transform: scale(1.2);
}
40% {
transform: scale(1);
}
60% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
.pattern-live-preview {
background: $color-gray-300;
padding: 18px 30px;
margin-bottom: 42px;
box-shadow: 0 2px 6px rgba(black, 0.1) inset;
.pattern-live-preview__canvas {
position: relative;
background: white;
min-height: 500px;
max-width: 1200px;
border-radius: 6px;
margin: 0 auto 18px auto;
box-shadow: 0 2px 6px rgba(black, 0.2);
&:hover {
// box-shadow: 0 0 0 1.5px $color-blue,
// 0 2px 6px rgba(black, 0.2);
}
.canvas__drag-handle {
display: block;
content: "";
cursor: ew-resize;
position: absolute;
top: calc(50% - 6px);
width: 12px;
height: 12px;
border-radius: 10px;
background: white;
box-shadow: 0 0 0 1.5px $color-blue;
transition: all 0.1s ease-in-out;
&.left {
left: -6px;
}
&.right {
right: -6px;
}
&:hover {
box-shadow: 0 0 0 3px $color-blue;
transform: scale(1.4);
}
}
}
}
.pattern-meta {
display: flex;
font-size: 14px;
.pattern-categories {
flex-grow: 1;
display: flex;
align-items: baseline;
h4 {
font-size: 12px;
text-transform: uppercase;
}
a {
margin: 0 0 0 18px;
}
}
.pattern-report {
a {
color: #23282d;
text-decoration: underline;
}
}
}
.explore {
h3 {
font-size: 20px;
font-weight: 600;
margin-bottom: 18px;
}
.explore__meta {
font-size: 14px;
margin-bottom: 18px;
display: flex;
align-items: baseline;
h4 {
font-size: 12px;
margin-right: 18px;
text-transform: uppercase;
}
a {
margin-right: 18px;
}
}
.patterns-grid {
margin-bottom: 42px;
}
}
function setCurrentSection(section) {
$(".section.is-current").removeClass("is-current");
$("#" + section).addClass("is-current");
}
$(function () {
$(".popover-toggle").click(function () {
var popover = $(this).parent();
popover.toggleClass("is-visible");
});
$(".prototype-controls .section-toggle ").click(function () {
var section = $(this).data("section");
setCurrentSection(section);
var home = new Macy({
container: "#home .patterns-grid",
mobileFirst: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
}
});
var search = new Macy({
container: '#search .patterns-grid',
mobileFirst: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
},
});
var detailsDesigner = new Macy({
container: "#details .designers-patterns",
mobileFirst: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
}
});
var detailsSimilar = new Macy({
container: "#details .similar-patterns",
mobileFirst: true,
columns: 1,
margin: 24,
breakAt: {
960: 3,
520: 2,
400: 1
}
});
});
$(".prototype-controls .modal-toggle, .pattern-description .notice__action").click(function () {
$(".modal").toggleClass("is-visible");
});
$(".modal__scrim, .modal__close").click(function () {
$(".modal").removeClass("is-visible");
});
$(".favorite-button").click(function () {
var button = $(this),
label = $(".favorite-label", button);
if (button.hasClass("is-favorited")) {
label.html("Add to favorites");
button.removeClass("is-favorited");
} else {
label.html("Favorited");
button.addClass("is-favorited");
}
});
$(".pattern-description .copy-button").click(function () {
var button = $(this);
$(".notice__pattern-copied").toggleClass("is-hidden");
});
$(".pattern .copy-button").click(function () {
var button = $(this);
button.html("Copied!");
setTimeout( function() {
button.html("Copy");
}, 1500 );
});
});
Also see: Tab Triggers