Skip to content

Commit 5ca6907

Browse files
authored
Update index.html
1 parent 979b5bc commit 5ca6907

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

src/test/html/index.html

+6-19
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,25 @@
11
<html>
2-
32
<head>
43
<meta charset="utf-8">
54
<title>Supefly CSS Grid Component Test</title>
65
<meta name="viewport" content="initial-scale=1,width=device-width">
76
<link rel="stylesheet" href="../css/index.css">
87
</head>
9-
108
<body>
119
<div class="Test">
12-
13-
{% for item in ['100', '300'] %}
14-
<div class="u-color-background-gray-{{item}}">
15-
<code>u-color-background-gray-{{item}}</code>
16-
</div>
17-
{% endfor %}
18-
19-
<h1 class="Test-suite">Superfly CSS <a href="https://github.com/superfly-css/superfly-css-components-grid">Grid Component</a> Tests</h1>
20-
<h2 class="Test-context">.Grid, Grid-cell</h2>
21-
<h3 class="Test-when">When the
22-
<code>.Grid</code> container holds 2
23-
<code>.Grid-cell</code> instances:</h3>
10+
<h3 class="Test-when">When the <code>.Grid</code> container holds 2 <code>.Grid-cell</code> instances:</h3>
2411
<!--Markup contained by the code block is escaped and highlighted by gulp-highlight-->
2512
<pre class="Test-markup">
2613
<code class="html">
2714
<div class="Grid">
28-
<div class="Grid-cell">1/2</div>
29-
<div class="Grid-cell">2/2</div>
30-
</div>
15+
<!-- Use Nunjucks to keep markup DRY -->
16+
{% for cell in ['1', '2'] %}
17+
<div class="Grid-cell">{{cell}}/2</div>
18+
{% endfor %}
19+
</div>
3120
</code>
3221
</pre>
33-
3422
<h3 id="then" class="Test-then">Each grid cell occupies the same amount of space witin the grid container row.</h3>
3523
</div>
3624
</body>
37-
3825
</html>

0 commit comments

Comments
 (0)