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";
-
ul.dropdown {
+
/**
-
  font: normal 12px "Trebuchet MS", Arial, Helvetica, sans-serif;
+
* NVIDIA Advanced CSS Drop-Down Menu Theme
-
  text-transform: uppercase;
+
*
 +
* @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: 7px 0;
+
padding: 0;
-
background-color: #000;
+
-
color: #fff;
+
-
line-height: normal;
+
}
}
-
ul.dropdown li.hover,
+
 
-
ul.dropdown li:hover {
+
/* ------------- Reinitiate default: post-override activities  */
-
 
+
 
 +
ul.dropdown li.dir {
 +
padding: 7px 20px 7px 14px;
}
}
-
ul.dropdown a:link,
+
ul.dropdown ul li.dir {
-
ul.dropdown a:visited { color: #fff; text-decoration: none; }
+
padding-right: 15px;
-
ul.dropdown a:hover { color: #76b900; text-decoration: none; }
+
}
-
ul.dropdown a:active { color: #fff; }
+
-
/* ----- END LEVEL */
+
/* ------------- Custom */
 +
ul.dropdown li {
-
/* ----- NON-FIRST LEVEL */
+
}
 +
 
 +
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 {
-
width: 170px;
+
background-color: #76b900;
-
background-color: #333;
+
color: #fff;
color: #fff;
-
font-size: 11px;
 
-
text-transform: none;
 
-
filter: alpha(opacity=90);
 
-
-moz-opacity: .9;
 
-
KhtmlOpacity: .9;
 
-
opacity: .9;
 
}
}
-
ul.dropdown ul li {
 
-
background-color: transparent;
 
-
color: #000;
 
-
filter: none;
 
-
}
 
-
ul.dropdown ul li.hover,
+
/* CSS 2.1 */
-
ul.dropdown ul li:hover {
+
-
background-color: transparent;
+
-
}
+
-
ul.dropdown ul a:link,
+
ul.dropdown li:hover > a.dir {
-
ul.dropdown ul a:visited { color: #fff; }
+
background-color: #2e2e2e;
-
ul.dropdown ul a:hover { color: #fff; text-decoration: none; }
+
color: #76b900;
-
ul.dropdown ul a:active { color: #fff; }
+
}
 +
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