Skip to content

Commit 07535fb

Browse files
committed
Tightened up spacing, removed the icon, added more across (up to 5)
TODO: Make split buttons work somehow, create a variant with large photos that stretch for an album example, fix highlight on darker themes
1 parent 01281fb commit 07535fb

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

css/structure/jquery.mobile.listview.grid.css

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.ui-listview-grid li.ui-li {
22
float: left;
33
width: 45%;
4-
margin: 1em 2% 0;
4+
margin: .7em .75% 0;
55
border-width: 1px;
66
padding: .6em 0;
77
}
@@ -21,26 +21,30 @@
2121
.ui-listview-grid .ui-li-static.ui-li-has-thumb {
2222
padding: 0 .6em;
2323
}
24-
24+
.ui-listview-grid .ui-li .ui-icon {
25+
display:none;
26+
}
27+
.ui-listview-grid .ui-li .ui-li-heading {
28+
font-size:13px;
29+
}
2530
.ui-listview-grid .ui-btn-icon-left > .ui-btn-inner > .ui-icon,
2631
.ui-listview-grid .ui-btn-icon-right > .ui-btn-inner > .ui-icon {
27-
top: 0;
28-
bottom: auto;
29-
margin-top: 0;
30-
left: .6em;
32+
display:none;
3133
}
3234

3335

3436
@media (min-width: 50em){
3537
.ui-listview-grid li.ui-li {
36-
width: 30%;
37-
margin: 1em 1.25% 0;
38+
width: 28%;
3839
}
3940
}
40-
4141
@media (min-width: 70em){
4242
.ui-listview-grid li.ui-li {
43-
width: 22.25%;
44-
margin: 1em .75% 0;
43+
width: 21%;
44+
}
45+
}
46+
@media (min-width: 85em){
47+
.ui-listview-grid li.ui-li {
48+
width: 18%;
4549
}
4650
}

docs/lists/lists-grid.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</head>
1515
<body>
1616

17-
<div data-role="page" class="type-interior">
17+
<div data-role="page" class="type-interior" data-theme="c">
1818

1919
<div data-role="header" data-theme="f">
2020
<h1>Grid layout</h1>
@@ -33,7 +33,7 @@ <h1>Grid layout</h1>
3333
<img src="images/album-bb.jpg" />
3434
<h3>Broken Bells</h3>
3535
<p>Broken Bells</p>
36-
</a></li>
36+
</a><a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a></li>
3737
<li><a href="index.html">
3838
<img src="images/album-hc.jpg" />
3939
<h3>Warning</h3>
@@ -87,6 +87,13 @@ <h3>The Suburbs</h3>
8787
<p>Arcade Fire</p>
8888
</a></li>
8989
</ul>
90+
91+
<div data-role="popup" id="purchase" data-theme="d" data-overlay-theme="b" class="ui-content" style="max-width:340px;">
92+
<h3>Purchase Album?</h3>
93+
<p>Your download will begin immediately on your mobile device when you purchase.</p>
94+
<a href="index.html" data-role="button" data-rel="back" data-theme="b" data-icon="check" data-inline="true" data-mini="true">Buy: $10.99</a>
95+
<a href="index.html" data-role="button" data-rel="back" data-inline="true" data-mini="true">Cancel</a>
96+
</div>
9097
</div><!--/content-primary -->
9198

9299
<div class="content-secondary">

0 commit comments

Comments
 (0)