From 4fb8aad58865ed6a51a56ace8e7277604e845fec Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 23 Jul 2007 23:46:20 +0000 Subject: [PATCH] improved tabs background and bottom border --- libraries/common.lib.php | 9 ++++++--- themes/darkblue_orange/css/theme_right.css.php | 7 ++++++- themes/original/css/theme_right.css.php | 7 ++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 79fdeaed6..cdc23be0f 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1589,15 +1589,18 @@ function PMA_getTab($tab) E_USER_NOTICE); } + $out = ''; + if (!empty($tab['link'])) { - $out = '' . $tab['text'] . ''; } else { - $out = '' + $out .= '' . $tab['text'] . ''; } + $out .= ''; return $out; } // end of the 'PMA_getTab()' function @@ -1617,7 +1620,7 @@ function PMA_getTabs($tabs, $tag_id = 'topmenu') .'
    ' . "\n"; foreach ($tabs as $tab) { - $tab_navigation .= '
  • ' . PMA_getTab($tab) . '
  • ' . "\n"; + $tab_navigation .= PMA_getTab($tab) . "\n"; } $tab_navigation .= diff --git a/themes/darkblue_orange/css/theme_right.css.php b/themes/darkblue_orange/css/theme_right.css.php index 29e1f4ac1..8a7a8135b 100644 --- a/themes/darkblue_orange/css/theme_right.css.php +++ b/themes/darkblue_orange/css/theme_right.css.php @@ -655,7 +655,12 @@ a.tabcaution:hover, a.tab:hover, .tabactive { - background-color: ; + background-color: ; +} + +/* to be able to cancel the bottom border, use
  • */ +ul#topmenu li.active { + border-bottom: 1pt solid ; } /* disabled drop/empty tabs */ diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index be0e56b9a..314bb82ab 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -627,7 +627,12 @@ a.tabcaution:hover, a.tab:hover, .tabactive { - background-color: ; + background-color: ; +} + +/* to be able to cancel the bottom border, use
  • */ +ul#topmenu li.active { + border-bottom: 1pt solid ; } /* disabled drop/empty tabs */