[Zope-CVS] CVS: Products/CompositePage/common - element.gif:1.1 element_active.gif:1.1 target.gif:1.1 target_active.gif:1.1 target_hover.gif:1.1 bottom.pt:1.2 edit.js:1.3 editstyles.css:1.4 grip_horizontal.gif:NONE grip_horizontal_active.gif:NONE grip_vertical.gif:NONE grip_vertical_active.gif:NONE

Shane Hathaway shane at zope.com
Mon Dec 22 15:21:15 EST 2003


Update of /cvs-repository/Products/CompositePage/common
In directory cvs.zope.org:/tmp/cvs-serv6015/common

Modified Files:
	bottom.pt edit.js editstyles.css 
Added Files:
	element.gif element_active.gif target.gif target_active.gif 
	target_hover.gif 
Removed Files:
	grip_horizontal.gif grip_horizontal_active.gif 
	grip_vertical.gif grip_vertical_active.gif 
Log Message:
Used a simpler method of generating element grips


=== Added File Products/CompositePage/common/element.gif ===
  <Binary-ish file>

=== Added File Products/CompositePage/common/element_active.gif ===
  <Binary-ish file>

=== Added File Products/CompositePage/common/target.gif ===
  <Binary-ish file>

=== Added File Products/CompositePage/common/target_active.gif ===
  <Binary-ish file>

=== Added File Products/CompositePage/common/target_hover.gif ===
  <Binary-ish file>

=== Products/CompositePage/common/bottom.pt 1.1 => 1.2 ===
--- Products/CompositePage/common/bottom.pt:1.1	Fri Sep 26 17:21:05 2003
+++ Products/CompositePage/common/bottom.pt	Mon Dec 22 15:21:14 2003
@@ -1,5 +1,9 @@
 <!-- common/bottom.pt -->
 <div id="drag-feedback-box"></div>
+<img id="slot-element-grip" class="slot-element-grip"
+   width="8" height="21" tal:define="url
+   string:${options/transformer/absolute_url}/element_image"
+   tal:attributes="src url" />
 
 <form action="moveAndDelete" name="modify_composites" method="POST"
   tal:attributes="action


=== Products/CompositePage/common/edit.js 1.2 => 1.3 ===
--- Products/CompositePage/common/edit.js:1.2	Mon Dec 22 12:28:10 2003
+++ Products/CompositePage/common/edit.js	Mon Dec 22 15:21:14 2003
@@ -78,6 +78,12 @@
 
 
 function setUpSlotElement(node) {
+  var elem = document.getElementById('slot-element-grip');
+  if (elem) {
+    elem = elem.cloneNode(true);
+    node.insertBefore(elem, node.childNodes[0]);
+    elem.style.display = 'inline';
+  }
   pd_setupDragUI(node, composite_move, composite_checkmove);
   pd_setupContextMenu(node, 'slot-element-context-menu', null, true);
 }


=== Products/CompositePage/common/editstyles.css 1.3 => 1.4 ===
--- Products/CompositePage/common/editstyles.css:1.3	Mon Dec 22 12:28:10 2003
+++ Products/CompositePage/common/editstyles.css	Mon Dec 22 15:21:14 2003
@@ -4,46 +4,33 @@
   padding: 4px;
   border: 1px outset #cccccc;
   background-color: #cccccc;
-  background-image: url("%(parent_url)s/grip_horizontal");
+  background-image: url("%(parent_url)s/target_image");
   background-repeat: repeat;
-  clear: left;
+}
+
+div.slot_target:hover {
+  background-image: url("%(parent_url)s/target_image_hover");
 }
 
 div.slot_target_highlighted {
   padding: 4px;
-  border: 1px outset #777777;
-  background-color: #777777;
-  background-image: url("%(parent_url)s/grip_horizontal_active");
+  border: 1px outset #7777cc;
+  background-color: #7777cc;
+  background-image: url("%(parent_url)s/target_image_active");
   background-repeat: repeat;
-  clear: left;
 }
 
 div.slot_element {
 }
 
-div.slot_element_header {
-  float: left;
-  width: 8px;
-  height: 16px;
+img.slot-element-grip {
   margin: 0px 2px 2px 0px;
   border: 1px outset #cccccc;
-  background-color: #cccccc;
-  background-image: url("%(parent_url)s/grip_vertical");
-  background-repeat: repeat;
-}
-
-div.slot_element_body {
-  display: table-cell;
+  float: left;
+  display: none;
 }
 
 div.slot_element_highlighted { 
   color: HighlightText;
   background-color: Highlight;
-}
-
-div.slot_element_highlighted div.slot_element_header {
-  border: 1px outset #777777;
-  background-color: #777777;
-  background-image: url("%(parent_url)s/grip_vertical_active");
-  background-repeat: repeat;
 }

=== Removed File Products/CompositePage/common/grip_horizontal.gif ===

=== Removed File Products/CompositePage/common/grip_horizontal_active.gif ===

=== Removed File Products/CompositePage/common/grip_vertical.gif ===

=== Removed File Products/CompositePage/common/grip_vertical_active.gif ===




More information about the Zope-CVS mailing list