Template:Georgia State/dropdown css
From 2010.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<style type="text/css"> | <style type="text/css"> | ||
+ | @charset "UTF-8"; | ||
- | + | /** | |
- | + | * NVIDIA Advanced CSS Drop-Down Menu Theme | |
- | + | * | |
+ | * @file default.advanced.css | ||
+ | * @name NVIDIA | ||
+ | * @version 0.1 | ||
+ | * @type transitional | ||
+ | * @browsers Windows: IE5+, Opera7+, Firefox1+ | ||
+ | * Mac OS: Safari2+, Firefox2+ | ||
+ | * | ||
+ | * @link http://www.lwis.net/ | ||
+ | * @copyright 2008 Live Web Institute. All Rights Reserved. | ||
+ | * | ||
+ | */ | ||
+ | |||
+ | @import "default.css"; | ||
+ | |||
+ | |||
+ | ul.dropdown li a { | ||
+ | display: block; | ||
+ | padding: 7px 14px; | ||
} | } | ||
+ | |||
+ | |||
+ | /* ------------- Override default */ | ||
ul.dropdown li { | ul.dropdown li { | ||
- | padding: | + | padding: 0; |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | ul.dropdown li. | + | |
- | + | /* ------------- Reinitiate default: post-override activities */ | |
- | + | ||
+ | ul.dropdown li.dir { | ||
+ | padding: 7px 20px 7px 14px; | ||
} | } | ||
- | ul.dropdown | + | ul.dropdown ul li.dir { |
- | + | padding-right: 15px; | |
- | + | } | |
- | + | ||
- | /* ----- | + | /* ------------- Custom */ |
+ | ul.dropdown li { | ||
- | /* -- | + | } |
+ | |||
+ | ul.dropdown ul a { | ||
+ | padding: 4px 5px 4px 14px; | ||
+ | width: 151px; /* Especially for IE */ | ||
+ | } | ||
+ | |||
+ | ul.dropdown ul a:hover { | ||
+ | background-color: #76b900; | ||
+ | } | ||
+ | |||
+ | ul.dropdown a.open { | ||
+ | background-color: #2e2e2e; | ||
+ | color: #76b900; | ||
+ | } | ||
- | ul.dropdown ul { | + | ul.dropdown ul a.open { |
- | + | background-color: #76b900; | |
- | background-color: # | + | |
color: #fff; | color: #fff; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | /* CSS 2.1 */ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ul.dropdown li:hover > a.dir { | |
- | + | background-color: #2e2e2e; | |
- | + | color: #76b900; | |
- | + | } | |
+ | ul.dropdown ul li:hover > a.dir { | ||
+ | background-color: #76b900; | ||
+ | color: #fff; | ||
+ | } | ||
+ | </style> | ||
+ | <script type="text/javascript"> | ||
+ | var fh = document.getElementsByClassName("firstHeading")[0]; | ||
+ | fh.parentElement.removeChild(fh); | ||
+ | var fh=document.getElementById("contentSub"); | ||
+ | fh.parentElement.removeChild(fh); | ||
+ | </script> | ||
+ | <!-- !END HARVARDCSS --> | ||
</html> | </html> |
Revision as of 05:55, 27 October 2010