From 002aff37e6bb5af4cd4e4be0ac092006accc812e Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Wed, 24 Feb 2010 21:56:35 +0100 Subject: [PATCH 1/1] New menu system --- dropdown.css | 41 ++++++++++++++++++++++++++++++++++++++++- index.php | 1 + lib/menu.php | 33 ++++++++++++++++++++++++++------- style.css | 48 ------------------------------------------------ 4 files changed, 67 insertions(+), 56 deletions(-) diff --git a/dropdown.css b/dropdown.css index 31d2e2c..3e862e7 100644 --- a/dropdown.css +++ b/dropdown.css @@ -16,6 +16,12 @@ * */ +div.menu { + background: #BBD9EE; + height: 23px; + padding-left: 80px; +} + ul.dropdown, ul.dropdown li, ul.dropdown ul { @@ -28,12 +34,15 @@ ul.dropdown { position: relative; z-index: 597; float: left; + font-size: 80%; } ul.dropdown li { float: left; line-height: 1.3em; vertical-align: middle; + margin-left: 1px; + text-align: center; zoom: 1; } @@ -62,6 +71,36 @@ ul.dropdown ul ul { left: 99%; } +ul.dropdown a { + float: left; + width: 95px; + padding: 5px 0; + background: #BBD9EE; + text-decoration: none; + color: #666; + margin-top: 0px; + margin-left: -1px; + border-top: 1px solid #fff; + border-left: 1px solid #fff; + border-right: 1px solid #fff; +} + +ul.dropdown a:hover { + color: black; + background: #7fbce7; +} + +ul.dropdown span { + width: 95px; + display: block; + padding: 5px 0; + background: #E7F1F8; + color: #666; + border-top: 1px solid #BBD9EE; + border-left: 1px solid #BBD9EE; + border-right: 1px solid #BBD9EE; +} + ul.dropdown li:hover > ul { visibility: visible; -} \ No newline at end of file +} diff --git a/index.php b/index.php index d7aa154..c2e8e72 100644 --- a/index.php +++ b/index.php @@ -17,6 +17,7 @@ $debug = debug_info(); +