-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Outlayer v1.4.2 for percent fix
- Loading branch information
Showing
7 changed files
with
107 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<title>fluid</title> | ||
|
||
<link rel="stylesheet" href="sandbox.css" /> | ||
|
||
<style> | ||
.container { | ||
width: auto; | ||
max-width: none; | ||
} | ||
|
||
.item, .grid-sizer { width: 50%; } | ||
.item.w2 { width: 100%; } | ||
.item.w3 { width: 105%; } | ||
|
||
@media screen and (min-width: 768px) { | ||
.item, .grid-sizer { width: 25%; } | ||
.item.w2 { width: 50%; } | ||
.item.w3 { width: 75%; } | ||
} | ||
</style> | ||
|
||
</head> | ||
<body> | ||
|
||
<h1>fluid</h1> | ||
|
||
<div class="container"> | ||
<div class="grid-sizer"></div> | ||
<div class="item"></div> | ||
<div class="item h4"></div> | ||
<div class="item w2 h2"></div> | ||
<div class="item w2"></div> | ||
<div class="item h3"></div> | ||
<div class="item w3"></div> | ||
<div class="item"></div> | ||
<div class="item h4"></div> | ||
<div class="item"></div> | ||
<div class="item w2 h4"></div> | ||
<div class="item w2"></div> | ||
<div class="item h5"></div> | ||
<div class="item w3"></div> | ||
<div class="item"></div> | ||
<div class="item h4"></div> | ||
<div class="item"></div> | ||
<div class="item w2 h5"></div> | ||
<div class="item w2"></div> | ||
<div class="item h3"></div> | ||
<div class="item w3"></div> | ||
<div class="item"></div> | ||
</div> | ||
|
||
<script src="../bower_components/eventEmitter/EventEmitter.js"></script> | ||
<script src="../bower_components/eventie/eventie.js"></script> | ||
<script src="../bower_components/doc-ready/doc-ready.js"></script> | ||
<script src="../bower_components/get-style-property/get-style-property.js"></script> | ||
<script src="../bower_components/get-size/get-size.js"></script> | ||
<script src="../bower_components/jquery-bridget/jquery.bridget.js"></script> | ||
<script src="../bower_components/matches-selector/matches-selector.js"></script> | ||
<script src="../bower_components/fizzy-ui-utils/utils.js"></script> | ||
<script src="../bower_components/outlayer/item.js"></script> | ||
<script src="../bower_components/outlayer/outlayer.js"></script> | ||
<script src="../bower_components/masonry/masonry.js"></script> | ||
|
||
<script src="../js/layout-mode.js"></script> | ||
<script src="../js/item.js"></script> | ||
<script src="../js/isotope.js"></script> | ||
<script src="../js/layout-modes/fit-rows.js"></script> | ||
<script src="../js/layout-modes/masonry.js"></script> | ||
|
||
<script> | ||
docReady( function() { | ||
var iso = window.iso = new Isotope( '.container', { | ||
itemSelector: '.item', | ||
percentPosition: true, | ||
masonry: { | ||
columnWidth: '.grid-sizer' | ||
} | ||
}); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |