]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 692737 - Main page icons are not centered.
authorMarc Schumann <wurblzap@gmail.com>
Tue, 29 Nov 2011 21:17:34 +0000 (22:17 +0100)
committerMarc Schumann <wurblzap@gmail.com>
Tue, 29 Nov 2011 21:17:34 +0000 (22:17 +0100)
r/a=mkanat

skins/standard/index.css
template/en/default/index.html.tmpl

index 1b28dabd8e8411882543520bf228254e574bad32..1e440cb99084de04c64791ca765cd61009037b0c 100644 (file)
@@ -26,7 +26,6 @@
        easier on customizers. */
     .intro, .outro {
         text-align: center;
-        width: 20em;
     }
 
     /* Hide from NN4 */
     {
         font-weight: bold;
     }
-    
+
     .bz_common_actions {
-        display: block;
+        text-align: center;
+    }
+    .bz_common_actions ul {
+        list-style-type: none;
+        padding: 0;
+    }
+    .bz_common_actions ul li {
+        display: inline;
+        vertical-align: top;
+    }
+    .bz_common_actions ul li a {
+        display: inline-block;
         height: 170px;
         width: 145px;
-        float: left;
         margin: 0 2ex 2em 0;
-        text-align: center;
     }
-    .bz_common_actions span {
+    .bz_common_actions ul li a span {
         position: relative;
-        top: 95%;
+        top: 90%;
         font-weight: bold;
     }
-    .bz_common_actions,
-    .bz_common_actions:visited,
-    .bz_common_actions:hover
-    {
+    .bz_common_actions a,
+    .bz_common_actions a:visited,
+    .bz_common_actions a:hover {
         text-decoration: none;
     }
     #enter_bug { background: url(index/file-a-bug.png)     no-repeat; }
index 98648e25edbf6ad182051b5e7eeabdbfe960d96c..5b9237aa10acd185e8222cf6cc620a5cfa31590e 100644 (file)
@@ -125,22 +125,30 @@ YAHOO.util.Event.onDOMReady(onLoadActions);
       <td>
         <h1 id="welcome"> Welcome to [% terms.Bugzilla %]</h1>
         <div class="intro">[% Hook.process('intro') %]</div>
-        <a id="enter_bug" class="bz_common_actions"
-           href="enter_bug.cgi"><span>File [% terms.aBug %]</span></a>
-      
-        <a id="query" class="bz_common_actions" 
-           href="query.cgi"><span>Search</span></a>
-      
-        <a id="account" class="bz_common_actions"
-          [% IF user.id %]
-            href="userprefs.cgi"><span>User Preferences</span></a>
-          [% ELSIF Param('createemailregexp')
-                   && user.authorizer.user_can_create_account 
-          %]
-            href="createaccount.cgi"><span>Open a New Account</span></a>
-          [% ELSE %]
-            href="?GoAheadAndLogIn=1"><span>Log In</span></a>
-          [% END %]
+
+        <div class="bz_common_actions">
+          <ul>
+            <li>
+              <a id="enter_bug" href="enter_bug.cgi"><span>File
+              [%= terms.aBug %]</span></a>
+            </li>
+            <li>
+              <a id="query" href="query.cgi"><span>Search</span></a>
+            </li>
+            <li>
+              <a id="account"
+                 [% IF user.id %]
+                   href="userprefs.cgi"><span>User Preferences</span></a>
+                 [% ELSIF Param('createemailregexp')
+                          && user.authorizer.user_can_create_account 
+                 %]
+                   href="createaccount.cgi"><span>Open a New Account</span></a>
+                 [% ELSE %]
+                   href="?GoAheadAndLogIn=1"><span>Log In</span></a>
+                 [% END %]
+            </li>
+          </ul>
+        </div>
 
         <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi"
               onsubmit="return checkQuicksearch(this);">