Corrected vertical alignment of text in navigation tabs
authorTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 25 Jun 2009 17:29:36 +0000 (17:29 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 25 Jun 2009 17:29:36 +0000 (17:29 +0000)
skins/Vector.php
skins/vector/main.css

index c1622a2..7f93e1f 100644 (file)
@@ -556,7 +556,7 @@ class VectorTemplate extends QuickTemplate {
                                        <h5><?php $this->msg('namespaces') ?></h5>
                                        <ul <?php $this->html('userlangattributes') ?>>
                                                <?php foreach ($this->data['namespace_urls'] as $key => $link ): ?>
-                                                       <li <?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li>
+                                                       <li <?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><span><?php echo htmlspecialchars( $link['text'] ) ?></span></a></li>
                                                <?php endforeach; ?>
                                        </ul>
                                </div>
@@ -583,7 +583,7 @@ class VectorTemplate extends QuickTemplate {
                                        <h5><?php $this->msg('views') ?></h5>
                                        <ul <?php $this->html('userlangattributes') ?>>
                                                <?php foreach ($this->data['view_urls'] as $key => $link ): ?>
-                                                       <li<?php echo $link['attributes'] ?><?php if(!empty($link['class'])): ?> class="<?php echo htmlspecialchars($link['class']) ?>"<?php endif; ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li>
+                                                       <li<?php echo $link['attributes'] ?><?php if(!empty($link['class'])): ?> class="<?php echo htmlspecialchars($link['class']) ?>"<?php endif; ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><span><?php echo htmlspecialchars( $link['text'] ) ?></span></a></li>
                                                <?php endforeach; ?>
                                        </ul>
                                </div>
index b421cd2..6b06ba5 100644 (file)
@@ -149,7 +149,7 @@ div#head h5 {
        div#namespaces li,
        div#views li {
                float: left;
-               line-height: 3em;
+               height: 3em;
                background-image: url(images/tab-normal-fade.png);
                background-position: bottom left;
                background-repeat: repeat-x;
@@ -172,20 +172,26 @@ div#head h5 {
                background-image: url(images/tab-break.png);
                background-position: bottom right;
                background-repeat: no-repeat;
-               color: #0645ad;
        }
        body.rtl div#namespaces a,
        body.rtl div#views a {
                background-position: bottom left;
        }
-       div#namespaces li.selected a,
-       div#views li.selected a:visited {
+       div#namespaces a span,
+       div#views a span {
+               color: #0645ad;
+               display: inline-block;
+               padding-top: 1.25em;
+               cursor: pointer;
+       }
+       div#namespaces li.selected a span,
+       div#views li.selected a:visited span {
                color: #333333;
                cursor: default;
                text-decoration: none;
        }
-       div#namespaces li.new a,
-       div#namespaces li.new a:visited{
+       div#namespaces li.new a span,
+       div#namespaces li.new a:visited span{
                color: #a55858;
        }
        /* Variants and Actions */