Commits

Marcin Kasperski committed 415a2b8

Toolbar looks better on new forums

  • Participants
  • Parent commits 954eb21

Comments (0)

Files changed (2)

smtuning/content/overlay.js

             toolbar.innerHTML = "No links defined.";
         }
 
+        var divmid = smtdoc.xpathFirst(doc, "//div[@id='middle']");
+        if (divmid) {
+            divmid.insertBefore(toolbar, divmid.firstChild);
+        }
+
+        /*
         var title = smtdoc.xpathFirst(doc, "//h1");
         if (! title) return;
-        //toolbar.innerHTML = toolbarLinks;
-        //title.parentNode.insertBefore(toolbar, title.nextSibling);
         title.parentNode.insertBefore(toolbar, title);
+        */
     },
 
     // Zdezaktualizowane, austin zrobił swój dropdown. Kod

smtuning/skin/smtuning_document.css

 /* Stylesheet wrzucany do okna dokumentu */
 
 #SmToolbar {
-           position: absolute; 
+           /*position: absolute; 
            top:-10px; 
-           left:0; 
+           left:0; */
            width: 100%;
            min-width: 600px;
            overflow: hidden; 
+           margin-top: -10px;
+           margin-bottom: 5px;
 }
 #SmToolbar a {
            padding: 0 5px 0 5px;