Skip to content

Commit 2f7ff40

Browse files
Kurt Gawinowiczthemightychris
authored andcommitted
Tweak people grid
1 parent 9a80412 commit 2f7ff40

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

html-templates/people/people.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
</div>
4242

4343
<div class="col-sm-8 col-md-9">
44+
<div class="row row-wrap">
4445
{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>
5049
{/foreach}
50+
</div>
5151

5252
<footer class="page-footer">
5353
{pagingLinks $total pageSize=$limit}

site-root/css/laddr/bootstrap-tweaks.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ legend {
2727
border: 0;
2828
}
2929

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+
3046
/*
3147
* + Components
3248
*/

0 commit comments

Comments
 (0)