[boxes] use a new separator instead of clumsy htmlwidget's one which close and reopen the <ul> (loosing any list class on the way)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 19 Oct 2010 13:21:47 +0200
changeset 6550 8c6a0f6bba3b
parent 6549 be6d49623207
child 6551 50ec97e4f9cc
[boxes] use a new separator instead of clumsy htmlwidget's one which close and reopen the <ul> (loosing any list class on the way)
web/component.py
web/data/cubicweb.css
web/data/cubicweb.old.css
--- a/web/component.py	Tue Oct 19 13:20:09 2010 +0200
+++ b/web/component.py	Tue Oct 19 13:21:47 2010 +0200
@@ -420,7 +420,7 @@
         unrelated = self.unrelated_boxitems(self.entity)
         self.items.extend(related)
         if related and unrelated:
-            self.items.append(htmlwidgets.BoxSeparator())
+            self.items.append(u'<hr class="boxSeparator"/>')
         self.items.extend(unrelated)
         self.render_items(w)
 
--- a/web/data/cubicweb.css	Tue Oct 19 13:20:09 2010 +0200
+++ b/web/data/cubicweb.css	Tue Oct 19 13:21:47 2010 +0200
@@ -419,6 +419,11 @@
   background-color: %(leftrightBoxBodyHoverBgColor)s;
 }
 
+hr.boxSeparator {
+  margin-top: 0.5em;
+  margin-bottom: 0.5em;
+}
+
 /* boxes contextual customization */
 
 .contextFreeBox div.boxTitle {
--- a/web/data/cubicweb.old.css	Tue Oct 19 13:20:09 2010 +0200
+++ b/web/data/cubicweb.old.css	Tue Oct 19 13:21:47 2010 +0200
@@ -438,6 +438,11 @@
   background-color: %(leftrightBoxBodyHoverBgColor)s;
 }
 
+hr.boxSeparator {
+  margin-top: 0.5em;
+  margin-bottom: 0.5em;
+}
+
 /* boxes contextual customization */
 
 .contextFreeBox div.boxTitle {