Permalink
Browse files

changed height, need to create single authority on card properties

  • Loading branch information...
1 parent ab95389 commit 4c5cac007857fc308d57319bda44960c6e49c04e @benjaminplee committed Mar 18, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 web/css/main.css
  2. +3 −3 web/js/main.js
View
@@ -42,7 +42,7 @@ a:hover, a:active {
.draggable {
position: absolute;
width: 150px;
- height: 150px;
+ height: 75px;
margin: 10px;
padding: 5px;
}
View
@@ -1,13 +1,13 @@
$(function() {
- var grid_size = 170; // article width + 2 * margin (need to make this not known to js)
+ var grid_size = {x: 170, y: 95}; // article width + 2 * margin (need to make this not known to js)
$(".draggable").draggable({
- grid: [grid_size, grid_size],
+ grid: [grid_size.x, grid_size.y],
stack: ".draggable"
});
// just for examples
$("article").each(function(i) {
- $(this).css({"left": i * grid_size});
+ $(this).css({"left": i * grid_size.x});
});
})

0 comments on commit 4c5cac0

Please sign in to comment.