]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
some fixes for new no-dl layout
authorEvan Prodromou <evan@status.net>
Fri, 14 Jan 2011 20:53:02 +0000 (15:53 -0500)
committerEvan Prodromou <evan@status.net>
Fri, 14 Jan 2011 20:53:02 +0000 (15:53 -0500)
lib/action.php
theme/base/css/display.css

index 095c410b11d6c3351829e73f7a090e82b4313f7b..96618c6083b51f21fa4410a652203dde22d842ad 100644 (file)
@@ -526,7 +526,8 @@ class Action extends HTMLOutputter // lawsuit
     function showPrimaryNav()
     {
         $user = common_current_user();
-        $this->elementStart('ul', array('class' => 'nav site_nav_global_primary'));
+        $this->elementStart('ul', array('class' => 'nav',
+                                        'id' => 'site_nav_global_primary'));
         if (Event::handle('StartPrimaryNav', array($this))) {
             if ($user) {
                 // TRANS: Tooltip for main menu option "Personal"
@@ -672,7 +673,11 @@ class Action extends HTMLOutputter // lawsuit
      */
     function showLocalNavBlock()
     {
+        // Need to have this ID for CSS; I'm too lazy to add it to
+        // all menus
+        $this->elementStart('div', array('id' => 'site_nav_local_views'));
         $this->showLocalNav();
+        $this->elementEnd('div');
     }
 
     /**
@@ -833,7 +838,8 @@ class Action extends HTMLOutputter // lawsuit
      */
     function showSecondaryNav()
     {
-        $this->elementStart('ul', array('class' => 'nav site_nav_global_secondary'));
+        $this->elementStart('ul', array('class' => 'nav',
+                                        'id' => 'site_nav_global_secondary'));
         if (Event::handle('StartSecondaryNav', array($this))) {
             $this->menuItem(common_local_url('doc', array('title' => 'help')),
                             // TRANS: Secondary navigation menu option leading to help on StatusNet.
@@ -1307,7 +1313,8 @@ class Action extends HTMLOutputter // lawsuit
     {
         // Does a little before-after block for next/prev page
         if ($have_before || $have_after) {
-            $this->elementStart('ul', array('class' => 'nav pagination'));
+            $this->elementStart('ul', array('class' => 'nav',
+                                            'id' => 'pagination'));
         }
         if ($have_before) {
             $pargs   = array('page' => $page-1);
index 8c364febce5c15d8be944e788b8ff58e81fd89c1..d35a8a706ed9d030041b91e0cca2be20133d80d9 100644 (file)
@@ -421,7 +421,7 @@ display:none;
 margin-bottom:11px;
 }
 
-#site_nav_global_secondary ul li {
+#site_nav_global_secondary li {
 display:inline;
 margin-right:18px;
 }
@@ -874,7 +874,9 @@ text-transform:uppercase;
 font-size:1em;
 }
 
-#entity_statistics dt,
+#entity_statistics dt {
+margin-right:11px;
+}
 #entity_statistics dd {
 display:inline;
 margin-right:11px;