Bold usertoolbar active links via CSS
authorTom Gilder <tomgilder@users.mediawiki.org>
Thu, 13 Oct 2005 01:14:38 +0000 (01:14 +0000)
committerTom Gilder <tomgilder@users.mediawiki.org>
Thu, 13 Oct 2005 01:14:38 +0000 (01:14 +0000)
skins/MonoBook.php
skins/monobook/main.css

index 58ea897..8696b4a 100644 (file)
@@ -110,7 +110,7 @@ class MonoBookTemplate extends QuickTemplate {
          <div class="pBody">
            <ul>
            <?php foreach($this->data['personal_urls'] as $key => $item) {
-              ?><li id="pt-<?php echo htmlspecialchars($key) ?>"><a href="<?php
+              ?><li id="pt-<?php echo htmlspecialchars($key) ?>"<?php if ($item['active']) { ?> class="active"<?php } ?>><a href="<?php
               echo htmlspecialchars($item['href']) ?>"<?php
               if(!empty($item['class'])) { ?> class="<?php
               echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php
index 46eca56..e79a71c 100644 (file)
@@ -768,6 +768,7 @@ input.searchButton {
     list-style: none;
     z-index: 0;
     background: none;
+    cursor: default;
 }
 #p-personal li {
     z-index: 0;
@@ -779,6 +780,9 @@ input.searchButton {
     line-height: 1.2em;
     background: none;
 }
+#p-personal li.active {
+    font-weight: bold;
+}
 #p-personal li a {
     text-decoration: none;
     color: #005896;
@@ -790,7 +794,9 @@ input.searchButton {
     padding-bottom: .2em;
     text-decoration: none;
 }
-
+#p-personal li.active a:hover {
+    background-color: transparent;
+}
 /* the icon in front of the user name, single quotes
 in bg url to hide it from iemac */
 li#pt-userpage,