@@ -178,7 +177,7 @@ There are just a few simple files needed to submit your pattern. All your files
<divclass="row">
<divclass="callout medium-10 medium-push-1">
<h4id="add-layout"class="how-to-subheader">Optional Layout HTML or SCSS files.</h4>
<h4id="add-layout"class="how-to-subheader">Optional Layout HTML file</h4>
{{#markdown}}
If needed, patterns can have an optional layout file that helps you display your patterns preview in a certain way, repeat the component, or inside a container. For example, our Article Card is one single card that fills the width of the container it's in. In order to keep it to a certain width and to repeat it several times without adding a ton of markup to the Article Card itself, we'll add a <code>layout.html</code> file.
...
...
@@ -191,15 +190,6 @@ Example:
Here we used a Block Grid and included our pattern 3 times, one for each column. You can use the Panini handlebars include like this or paste the HTML in.
You may need some CSS to ensure your pattern demo looks as good as possible. In that case you may create a <code>layout.scss</code> file to add custom styles.
Example:
<imgsrc="{{root}}assets/img/images/howto-layoutscss.png"class=""height=""width=""alt="image of layered states pattern">
Note: adding a <code>layout.html</code> file will override the <code>containerClass</code> variable in your .yml file.
Looking good?
{{/markdown}}
</div>
</div>
...
...
@@ -210,7 +200,7 @@ Looking good?
As you save the pattern will be automatically compiled and inserted to the gallery; Example URL: [http://localhost:8000/websites/patterns/image-gallery.html](http://localhost:8000/websites/patterns/image-gallery.html)