Author: michiel
Date: 2010-04-28 17:37:47 +0200 (Wed, 28 Apr 2010)
New Revision: 42071
Modified:
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.css
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.js
Log:
styling details
Modified:
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.css
===================================================================
---
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.css
2010-04-28 15:25:46 UTC (rev 42070)
+++
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.css
2010-04-28 15:37:47 UTC (rev 42071)
@@ -1,7 +1,11 @@
+body {
+ background-color: white;
+}
.mm_portal_content {
+ border: solid 1px green;
margin-left: 0px;
position: relative;
- background-color: yellow;
+ background-color: #eee;
}
.mm_portal_content .block {
@@ -13,4 +17,12 @@
}
div.searchresult.implicit {
display: none;
+}
+
+.block {
+ background-color: rgba(0, 0, 0, 0.1);
+}
+
+.ui-draggable-dragging {
+ background-color: white;
}
\ No newline at end of file
Modified:
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.js
===================================================================
--- speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.js
2010-04-28 15:25:46 UTC (rev 42070)
+++ speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/page.js
2010-04-28 15:37:47 UTC (rev 42071)
@@ -9,11 +9,15 @@
$(el).removeClass("x0 x1 x2 x3 y0 y1 y2 y4");
},
stop: function(event, ui) {
- var x = $(event.target).find("span.x");
- var y = $(event.target).find("span.y");
- var position = $(event.target).position();
- x.text("" + position.left / 150);
- y.text("" + position.top / 150);
+
$(event.target).closest(".mm_portal_content").find(".block").each(
+ function() {
+ var x = $(this).find("span.x");
+ var y = $(this).find("span.y");
+ var position = $(this).position();
+ x.text("" + position.left / 150);
+ y.text("" + position.top / 150);
+ }
+ );
}
};
$(".mm_portal_content .block")
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs