File tree 1 file changed +6
-19
lines changed
1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 1
1
< html >
2
-
3
2
< head >
4
3
< meta charset ="utf-8 ">
5
4
< title > Supefly CSS Grid Component Test</ title >
6
5
< meta name ="viewport " content ="initial-scale=1,width=device-width ">
7
6
< link rel ="stylesheet " href ="../css/index.css ">
8
7
</ head >
9
-
10
8
< body >
11
9
< 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 >
24
11
<!--Markup contained by the code block is escaped and highlighted by gulp-highlight-->
25
12
< pre class ="Test-markup ">
26
13
< code class ="html ">
27
14
< 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 >
31
20
</ code >
32
21
</ pre >
33
-
34
22
< h3 id ="then " class ="Test-then "> Each grid cell occupies the same amount of space witin the grid container row.</ h3 >
35
23
</ div >
36
24
</ body >
37
-
38
25
</ html >
You can’t perform that action at this time.
0 commit comments