123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>stamps</title>
- <link rel="stylesheet" href="sandbox.css" />
- <style>
- #alpha .stamp1 {
- width: 30%;
- height: 100px;
- left: 30%;
- top: 20px;
- }
- #alpha .stamp2 {
- width: 200px;
- height: 50px;
- left: 20px;
- top: 50px;
- }
- #beta {
- border-style: solid;
- border-width: 40px 30px 20px 10px;
- padding: 10px 20px 30px 40px;
- }
- #beta .stamp1 {
- width: 30%;
- height: 100px;
- left: 10%;
- top: 20px;
- }
- #beta .stamp2 {
- width: 200px;
- height: 50px;
- right: 20px;
- top: 50px;
- }
- </style>
- </head>
- <body>
- <h1>stamps</h1>
- <div id="alpha" class="container">
- <div class="stamp stamp1"></div>
- <div class="stamp stamp2"></div>
- <div class="item"></div>
- <div class="item h4"></div>
- <div class="item h2"></div>
- <div class="item"></div>
- <div class="item h3"></div>
- <div class="item"></div>
- <div class="item"></div>
- <div class="item h4"></div>
- <div class="item"></div>
- <div class="item h4"></div>
- <div class="item"></div>
- </div>
- <div id="beta" class="container">
- <div class="stamp stamp2"></div>
- <div class="stamp stamp1"></div>
- <div class="item"></div>
- <div class="item h4"></div>
- <div class="item h2"></div>
- <div class="item"></div>
- <div class="item h3"></div>
- <div class="item"></div>
- <div class="item"></div>
- <div class="item h4"></div>
- <div class="item"></div>
- <div class="item h4"></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="../masonry.js"></script>
- <script>
- docReady( function() {
- ( function() {
- var container = document.querySelector('#alpha');
- var msnry = new Masonry( container, {
- itemSelector: '.item',
- columnWidth: 60,
- gutter: 10,
- stamp: '.stamp'
- });
- })();
- ( function() {
- var container = document.querySelector('#beta');
- var msnry = new Masonry( container, {
- columnWidth: 60,
- gutter: 10,
- stamp: '.stamp'
- });
- })();
- });
- </script>
- </body>
- </html>
|