Skip to content

Commit 8af6d7a

Browse files
author
jlengstorf
committed
Added Isotope for better layout reflow and to hopefully make responsive happen without doing any extra work.
1 parent d7cc2de commit 8af6d7a

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "js/isotope"]
2+
path = js/isotope
3+
url = https://github.com/desandro/isotope.git

css/master.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body {
88
}
99

1010
header,article,footer {
11-
width: 700px;
11+
max-width: 700px;
1212
margin: 0 auto;
1313
padding: 20px 40px 0;
1414
background: #fff;

index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ class="login button">Login &rarr;</a>
139139

140140
<script src="http://code.jquery.com/jquery-2.0.0.min.js"></script>
141141
<script src="http://js.pusher.com/2.0/pusher.min.js"></script>
142+
<script src="js/isotope/jquery.isotope.min.js"></script>
142143
<script>
143144

144145
jQuery(function($){
@@ -157,6 +158,10 @@ class="login button">Login &rarr;</a>
157158
photos = $('photos'),
158159
min_ID = photos.data('next-min-ID');
159160

161+
photos.isotope({
162+
itemSelector: 'li'
163+
});
164+
160165
channel.bind('new-photo', function(data){
161166

162167
newcount += data.newcount;

js/isotope

Submodule isotope added at 74743c8

0 commit comments

Comments
 (0)