[data] Add a CSS for undo UI rendering stable
authorAnthony Truchet <anthony.truchet@logilab.fr>
Thu, 28 Mar 2013 15:43:23 +0100
branchstable
changeset 8831 f7e140182df1
parent 8827 0d81a474c0fe
child 8837 f7f4238ffe3c
[data] Add a CSS for undo UI rendering The nesting of ordered list and unordered list was badly handled. This has gone unoticed becaused it was not used. But the undo feature use this markup to render the changesets. That's why this minor change to ths CSS is introduced.
web/data/cubicweb.css
web/data/cubicweb.old.css
--- a/web/data/cubicweb.css	Thu Mar 28 15:01:02 2013 +0100
+++ b/web/data/cubicweb.css	Thu Mar 28 15:43:23 2013 +0100
@@ -1085,3 +1085,21 @@
   margin-left: 0.5em;
   vertical-align: bottom;
 }
+
+/* cubicweb.views.undohistory uses :
+ *   - span.undo around undo link
+ *   - ul.undo-transactions to list transaction
+ *   - ol.undo-actions to list actions in a transaction
+ */
+
+span.undo {
+  border: 1pt;
+}
+
+ol.undo-actions > li {
+  margin-left: 2em;
+  margin-top: 2px;
+  padding: 0px 0px 2px 0px;
+  background-image: none;
+}
+
--- a/web/data/cubicweb.old.css	Thu Mar 28 15:01:02 2013 +0100
+++ b/web/data/cubicweb.old.css	Thu Mar 28 15:43:23 2013 +0100
@@ -116,7 +116,7 @@
   list-style-type: none;
 }
 
-ul li {
+ul > li {
   margin-top: 2px;
   padding: 0px 0px 2px 8px;
   background: url("bullet_orange.png") 0% 6px no-repeat;
@@ -1077,3 +1077,21 @@
   padding-left:0.5em;
   color:inherit;
 }
+
+/* cubicweb.views.undohistory uses :
+ *   - span.undo around undo link
+ *   - ul.undo-transactions to list transaction
+ *   - ol.undo-actions to list actions in a transaction
+ */
+
+span.undo {
+  border: 1pt;
+}
+
+ol.undo-actions > li {
+  margin-left: 2em;
+  margin-top: 2px;
+  padding: 0px 0px 2px 0px;
+  background-image: none;
+}
+