changeset 10:41f66b62103d

Arrange edit links nicer
author Radomir Dopieralski <devel@sheep.art.pl>
date Sun, 16 Dec 2007 02:19:48 +0100
parents 9a40cc297133
children cd31681a9e82
files mandarin.py mandarin/style.css
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mandarin.py	Sun Dec 16 01:24:12 2007 +0100
+++ b/mandarin.py	Sun Dec 16 02:19:48 2007 +0100
@@ -326,11 +326,12 @@
         // Create a a link
         var guiEditorLink = document.createElement('a');
         guiEditorLink.href = gui_editor_link_href;
+        guiEditorLink.className = "edit";
         var text = document.createTextNode(gui_editor_link_text);
         guiEditorLink.appendChild(text);
         // Insert in the editbar
         var editbar = textEditorLink.parentNode
-        editbar.insertBefore(guiEditorLink, textEditorLink.nextSibling);
+        editbar.insertBefore(guiEditorLink, textEditorLink);
     }
 }
 --></script>
--- a/mandarin/style.css	Sun Dec 16 01:24:12 2007 +0100
+++ b/mandarin/style.css	Sun Dec 16 02:19:48 2007 +0100
@@ -57,18 +57,18 @@
 div.editbar a.edit:before {
     content: url(img/edit.png);
     vertical-align: baseline;
-    margin-right: 0.075em;
+    margin: 0 0.075em 0 0.15em;
 }
 
 div.editbar {
     float: right;
-    margin: 1em 0.75em;
+    margin: 1em 0.25em;
     color: #999;
 }
 div.editbar a {
     color: #999;
     font-size: 90%;
-    margin-left: 0.25em;
+    margin: 0 0.25em;
 }
 div.editbar a:hover {
     color: #fff;