stamps.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>stamps</title>
  6. <link rel="stylesheet" href="sandbox.css" />
  7. <style>
  8. #alpha .stamp1 {
  9. width: 30%;
  10. height: 100px;
  11. left: 30%;
  12. top: 20px;
  13. }
  14. #alpha .stamp2 {
  15. width: 200px;
  16. height: 50px;
  17. left: 20px;
  18. top: 50px;
  19. }
  20. #beta {
  21. border-style: solid;
  22. border-width: 40px 30px 20px 10px;
  23. padding: 10px 20px 30px 40px;
  24. }
  25. #beta .stamp1 {
  26. width: 30%;
  27. height: 100px;
  28. left: 10%;
  29. top: 20px;
  30. }
  31. #beta .stamp2 {
  32. width: 200px;
  33. height: 50px;
  34. right: 20px;
  35. top: 50px;
  36. }
  37. </style>
  38. </head>
  39. <body>
  40. <h1>stamps</h1>
  41. <div id="alpha" class="container">
  42. <div class="stamp stamp1"></div>
  43. <div class="stamp stamp2"></div>
  44. <div class="item"></div>
  45. <div class="item h4"></div>
  46. <div class="item h2"></div>
  47. <div class="item"></div>
  48. <div class="item h3"></div>
  49. <div class="item"></div>
  50. <div class="item"></div>
  51. <div class="item h4"></div>
  52. <div class="item"></div>
  53. <div class="item h4"></div>
  54. <div class="item"></div>
  55. </div>
  56. <div id="beta" class="container">
  57. <div class="stamp stamp2"></div>
  58. <div class="stamp stamp1"></div>
  59. <div class="item"></div>
  60. <div class="item h4"></div>
  61. <div class="item h2"></div>
  62. <div class="item"></div>
  63. <div class="item h3"></div>
  64. <div class="item"></div>
  65. <div class="item"></div>
  66. <div class="item h4"></div>
  67. <div class="item"></div>
  68. <div class="item h4"></div>
  69. <div class="item"></div>
  70. </div>
  71. <script src="../bower_components/eventEmitter/EventEmitter.js"></script>
  72. <script src="../bower_components/eventie/eventie.js"></script>
  73. <script src="../bower_components/doc-ready/doc-ready.js"></script>
  74. <script src="../bower_components/get-style-property/get-style-property.js"></script>
  75. <script src="../bower_components/get-size/get-size.js"></script>
  76. <script src="../bower_components/jquery-bridget/jquery.bridget.js"></script>
  77. <script src="../bower_components/matches-selector/matches-selector.js"></script>
  78. <script src="../bower_components/fizzy-ui-utils/utils.js"></script>
  79. <script src="../bower_components/outlayer/item.js"></script>
  80. <script src="../bower_components/outlayer/outlayer.js"></script>
  81. <script src="../masonry.js"></script>
  82. <script>
  83. docReady( function() {
  84. ( function() {
  85. var container = document.querySelector('#alpha');
  86. var msnry = new Masonry( container, {
  87. itemSelector: '.item',
  88. columnWidth: 60,
  89. gutter: 10,
  90. stamp: '.stamp'
  91. });
  92. })();
  93. ( function() {
  94. var container = document.querySelector('#beta');
  95. var msnry = new Masonry( container, {
  96. columnWidth: 60,
  97. gutter: 10,
  98. stamp: '.stamp'
  99. });
  100. })();
  101. });
  102. </script>
  103. </body>
  104. </html>