-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin creating relationships pattern * Finish creating relationships component * Added unit tests for relationships * Change relationships to have configurable title and playback per option * Update macro options and remove old code * Fix grid examples
- Loading branch information
Showing
3 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,3 +157,10 @@ | |
max-width: 30rem; | ||
} | ||
} | ||
|
||
.pl-grid-col { | ||
margin: 0 0 1rem; | ||
padding: 1rem; | ||
background: #eee; | ||
font-size: 0.8rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
{% macro patternLibExampleGrid(params) %} | ||
{% include "styles/grid/_template.njk" %} | ||
{% if params.container -%} | ||
<div class="container"> | ||
{% endif -%} | ||
|
||
<div class="grid"> | ||
{% for item in (params.itemsList if params.itemsList is iterable else params.itemsList.items()) -%} | ||
{% for i in range(0, item.repeat | default(1) ) -%} | ||
<div class="grid__col col-{{ item.col }}@m {{ item.classes }}"> | ||
<div class="pl-grid-col">{{ item.col }} col</div> | ||
</div> | ||
{%- endfor %} | ||
{%- endfor %} | ||
</div> | ||
|
||
{% if params.container -%} | ||
</div> | ||
{% endif -%} | ||
{% endmacro %} |
This file was deleted.
Oops, something went wrong.