... |
... |
@@ -2,13 +2,23 @@ |
2 |
2 |
|
3 |
3 |
{{velocity output="false"}} |
4 |
4 |
#macro (display4Cards $cards) |
5 |
|
- <ul class="card-list"> |
|
5 |
+ <div class="row"> |
6 |
6 |
#foreach ($card in $cards) |
7 |
|
- <li class='card'> |
|
7 |
+ ## See http://getbootstrap.com/css/#grid-responsive-resets . |
|
8 |
+ #if ($foreach.index > 0 && $foreach.index % 2 == 0) |
|
9 |
+ <div class="clearfix visible-sm-block "></div> |
|
10 |
+ #end |
|
11 |
+ #if ($foreach.index > 0 && $foreach.index % 3 == 0) |
|
12 |
+ <div class="clearfix visible-md-block"></div> |
|
13 |
+ #end |
|
14 |
+ #if ($foreach.index > 0 && $foreach.index % 4 == 0) |
|
15 |
+ <div class="clearfix visible-lg-block"></div> |
|
16 |
+ #end |
|
17 |
+ <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> |
8 |
8 |
#helpExampleCard($card) |
9 |
|
- </li> |
|
19 |
+ </div> |
10 |
10 |
#end |
11 |
|
- </ul> |
|
21 |
+ </div> |
12 |
12 |
#end |
13 |
13 |
|
14 |
14 |
#set ($howToCards = [{ |