[boxes] use a new separator instead of clumsy htmlwidget's one which close and reopen the <ul> (loosing any list class on the way)
--- 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 {