File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 41
41
</div >
42
42
43
43
<div class =" col-sm-8 col-md-9" >
44
+ <div class =" row row-wrap" >
44
45
{ foreach item= Person from= $data }
45
- { if $.foreach .default .index % 6 == 0} <div class =" row" >{ /if }
46
- <div class =" col-sm-4 col-md-2" >
47
- { personLink $Person photo= yes photoSize= 150 linkCls= " thumbnail text-center" }
48
- </div >
49
- { if $.foreach .default .index % 6 == 5 || $.foreach .default .last} </div >{ /if }
46
+ <div class =" col-sm-4 col-md-2" >
47
+ { personLink $Person photo= yes photoSize= 150 linkCls= " thumbnail text-center" }
48
+ </div >
50
49
{ /foreach }
50
+ </div >
51
51
52
52
<footer class =" page-footer" >
53
53
{ pagingLinks $total pageSize= $limit }
Original file line number Diff line number Diff line change @@ -27,6 +27,22 @@ legend {
27
27
border : 0 ;
28
28
}
29
29
30
+ /* - Grids */
31
+
32
+ .row-wrap {
33
+ display : -webkit-flex;
34
+ display : flex;
35
+ -webkit-flex-wrap : wrap;
36
+ flex-wrap : wrap;
37
+ }
38
+
39
+ .row-wrap [class *= "col" ] {
40
+ -webkit-flex : 0 0 auto;
41
+ flex : 0 0 auto;
42
+ float : none;
43
+ }
44
+
45
+
30
46
/*
31
47
* + Components
32
48
*/
You can’t perform that action at this time.
0 commit comments