diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-19 08:24:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-19 08:24:14 +0000 |
commit | a42b84e5d690a82c897edf90b37045f0e3aa68a2 (patch) | |
tree | e0d622b76b9be7c136e15c844659583cd780dd9d /misc | |
parent | a9c560282b4f7b8b21695b304c8cc89402a8efd1 (diff) | |
download | brdo-a42b84e5d690a82c897edf90b37045f0e3aa68a2.tar.gz brdo-a42b84e5d690a82c897edf90b37045f0e3aa68a2.tar.bz2 |
First tab improvements by Adrian:
+ Changed menu.inc to generate two separate lists instead of nested lists:
that seems to be the only alternative to get rid of absolute positioning.
+ Changed the tabs code to be more sexy and put the code in misc/drupal.css
so all themes are automagically updated.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/drupal.css | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/misc/drupal.css b/misc/drupal.css index 4d3ac13fa..b8e9cc15a 100644 --- a/misc/drupal.css +++ b/misc/drupal.css @@ -382,4 +382,56 @@ td.watchdog-httpd { td.watchdog-error { background: #e44; border: 1px solid #c22; -}
\ No newline at end of file +} + +/* Tab navigation */ +ul.primary { + border-collapse: collapse; + padding: 0em 0em 0em 1em; + white-space: nowrap; + list-style: none; + margin: 5px; + height: auto; + line-height: normal; + border-bottom: 1px solid #bbb; +} +ul.primary li { + display: inline; +} +ul.primary li a { + background-color: #ddd; + border-color: #bbb; + border-width: 1px; + border-style: solid solid none solid; + height: auto; + margin-right: 0.5em; + padding: 0em 1em; + text-decoration: none; + text-transform: lowercase; +} +ul.primary li.active a { + background-color: #fff; + border: 1px solid #bbb; + border-bottom: #fff 1px solid; +} +ul.primary li a:hover { + background-color: #eee; + border-color: #ccc; + border-bottom-color: #eee; +} +ul.secondary { + padding: 0; + margin: 0.5em 2em 1em; +} +ul.secondary li { + display: inline; + padding: 0 1em; + border-right: 1px solid #ccc; +} +ul.secondary a { + padding: 0; + text-decoration: none; +} +ul.secondary a.active { + border-bottom: 4px solid #999; +} |