Template:Aquila

From 2012hs.igem.org

(Difference between revisions)
(Undo revision 1309 by Hannahb (talk))
Line 63: Line 63:
}
}
-
#navbar
 
-
ul.navbar
+
 
 +
#navbar  
{
{
     float:left;
     float:left;
Line 72: Line 72:
     margin:0;
     margin:0;
     list-style-type:none;
     list-style-type:none;
-
    height: 1em;
 
}
}
-
ul.navbar a  
+
#navbar a  
{
{
     float:left;
     float:left;
Line 87: Line 86:
}
}
-
ul.navbar a:hover  
+
#navbar a:hover  
{
{
     background-color:#A3ABAE;
     background-color:#A3ABAE;
}
}
-
ul.navbar li  
+
#navbar li  
{
{
     position:relative;
     position:relative;
Line 98: Line 97:
}
}
-
ul.navbar li a
+
#long
{
{
-
     display: block;
+
     width:10em;
-
    padding: 3px 8px;
+
-
    background-color: #000000;
+
-
    color:#fff
+
-
    text-decoration: none;
+
}
}
-
ul.navbar li ul
+
 
 +
.navbar  
{
{
-
     display: none;
+
     padding:0 20px;
-
    width: 10em;
+
-
    background-color: #000;
+
}
}
-
ul.navbar li:hover li, ul.navbar li.hover li
+
/*--- DROPDOWN ---*/
 +
 
 +
#navbar ul
{
{
-
     float: none;
+
     background:#fffff;
 +
    background:rgba(255,255,255,0);
 +
    list-style:none;
 +
    position:absolute;
 +
    left:-9999px;  
}
}
-
ul.navbar li:hover li a, ul.navbar li.hover li a
+
#navbar ul li
{
{
-
     background-color: #FFF;
+
     padding-top:1px;  
-
     border-bottom: 1 px solid #FFF;
+
     float:none;
-
    color: #000;
+
}
}
-
ul.navbar li li:hover
+
#navbar a
{
{
-
    background-color: #000000;
+
white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
}
}
-
#long
+
#navbar li:hover ul
-
{
+
{ /* Display the dropdown on hover */
-
    width:10em;
+
left:0; /* Bring back on-screen when needed */
 +
}
 +
#navbar li:hover a
 +
{ /* These create persistent hover states, meaning the top-most link stays 'hovered' even when your cursor has moved down the list. */
 +
background:#A3ABAE;
 +
text-decoration:underline;
}
}
 +
#navbar li:hover ul a{ /* The persistent hover state does however create a global style for links even before they're hovered. Here we undo these effects. */
 +
text-decoration:none;
 +
}
-
.navbar  
+
#navbar li:hover ul li a:hover{ /* Here we define the most explicit hover states--what happens when you hover each individual link. */
-
{
+
background:#333;
-
    padding:0 20px;
+
}
}
Line 149: Line 155:
<!--navigation menu-->
<!--navigation menu-->
-
<ul class="navbar">
+
<ul id="navbar">
<li><a href="https://2012hs.igem.org/Team:Sharon_MA_Aquila">HOME</a></li>
<li><a href="https://2012hs.igem.org/Team:Sharon_MA_Aquila">HOME</a></li>

Revision as of 04:46, 28 March 2012