Skip to content

Commit 17db160

Browse files
committed
Demos
1 parent 7c3c6fa commit 17db160

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed

_layouts/demo.html

+29-9
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,33 @@
1616
class="ueber-back-button pat-inject pat-switch">{{ page.collection | capitalize }}</a>
1717
{% endif %}
1818
</div>
19-
<article class="pat-rich long-read">
20-
<h1>{{ page.title }}</h1>
21-
{% unless page.summary == nil %}
22-
<p class="summary">
23-
{{ page.summary }}
24-
</p>
25-
{% endunless %}
26-
{{ content }}
19+
<article class="long-read">
20+
21+
<div class="pat-rich">
22+
<h1>
23+
{{ page.title }}
24+
</h1>
25+
26+
{% unless page.summary == nil %}
27+
<p class="summary">
28+
{{ page.summary }}
29+
</p>
30+
{% endunless %}
31+
</div>
32+
33+
<div id="demo"
34+
class="pattern-demo">
35+
<a href="/pat-demos/src/pat/{{ page.id | remove: '/'}}/index.html"
36+
class="pat-inject"
37+
data-pat-inject="target: #demo; trigger: autoload">Load demo</a>
38+
</div>
39+
40+
<div class="pat-rich">
41+
<a href="/pat-demos/src/pat/{{page.id }}/documentation.md#documentation"
42+
class="pat-inject"
43+
data-pat-inject="data-type: markdown; source: ##Documentation; target: self::element; trigger: autoload">Documentation</a>
44+
</div>
45+
2746
</article>
28-
</div>
47+
</div>
48+

_sass/components/_pattern-tile.scss

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
padding: 0 20px;
88
box-sizing: border-box;
99

10+
@include screen-size(medium) {
11+
width: 25%;
12+
}
13+
14+
@include screen-size(small) {
15+
width: 33.333332%;
16+
}
17+
1018
&.cat-behavioural img {
1119
background-color: $cat-behavioural;
1220
}

0 commit comments

Comments
 (0)