Team:TU-Delft/Test

From 2012.igem.org

(Difference between revisions)
 
(26 intermediate revisions not shown)
Line 5: Line 5:
<style type="text/css">
<style type="text/css">
-
#nav { /*main menu css*/
+
#centeredmenu_bg{
position:fixed;
position:fixed;
 +
top:0px;
 +
background:#ffffff; /* the white line behind the main menu*/
 +
left:0px;
 +
width:100%;
 +
height:70px;
 +
z-index:999;
 +
}
 +
 +
 +
#navLaksh {
 +
 +
position:fixed;
width:850px;
width:850px;
top:15px;
top:15px;
Line 12: Line 24:
right:60%;
right:60%;
margin: 0 0 0 -230px;
margin: 0 0 0 -230px;
-
padding: 0;
 
z-index:1001;
z-index:1001;
Line 19: Line 30:
/*letter-spacing:1px;*/
/*letter-spacing:1px;*/
text-transform:uppercase;
text-transform:uppercase;
-
}
 
-
 
-
#nav li { /*float the main list items*/
 
-
float: left;
 
-
 
}
}
 +
    #navLaksh li {
 +
            float: left;
 +
            padding-right:0.5cm;
 +
              }
-
#nav ul{
+
        #navLaksh li:hover { position: relative }
-
width: 620px;
+
        #navLaksh li:hover > a {
-
background: white;
+
            background: #FFFFFF;
-
text-align:center;
+
               
-
margin: 0 auto;
+
        }
-
}
+
            #navLaksh li.sub:hover > a {
-
#nav li.on ul, #nav li.off ul {
+
            box-shadow: 5px 5px 25px #000;
-
margin: 0;
+
            -moz-box-shadow: 5px 5px 25px #000;
-
padding: 0;
+
            -webkit-box-shadow: 5px 5px 25px #000;    
-
}
+
            }
-
#nav a {
+
-
text-decoration: none;
+
-
}
+
-
#nav li ul {
+
            #navLaksh li a {
-
display: none;
+
                color: #000000;
-
width:200px;
+
                font-weight: bold;
-
}
+
                text-decoration: none;
-
#nav li.off ul, #nav li.on ul { /*Position of the submenu!!*/
+
                padding: 12px;
-
position:static;
+
                display: block;
-
direction:ltr;
+
            }
-
+
                #navLaksh li a:hover { background-color: #FFFFFF; }       
-
width:150px;
+
                   
-
height:100px;
+
    #navLaksh li ul {
-
+
        background: #fff;
-
/*left:30px;
+
        margin-top: -2px;
-
right:50%;*/
+
        display: none;  
-
margin: 0 0 0 -150px;
+
    }
-
padding: 0 0 0 0;
+
        #navLaksh li:hover ul {
-
background:white;
+
            display:block;  
-
text-align:center;
+
            position:absolute;  
 +
        }
-
}
+
        #navLaksh li ul {
-
#nav li a {
+
            background: rgba(255,255,255,1);
-
color: #000000;   /*the main menu letters color but home*/
+
            padding: 10px 5px;
-
font-weight: bold;
+
           
-
display: block;
+
            box-shadow: 5px 5px 25px #000;
-
height: 30px;
+
            -moz-box-shadow: 5px 5px 25px #000;
-
width: auto;
+
            -webkit-box-shadow: 5px 5px 25px #000;
-
border-bottom:0;
+
   
-
margin: 2px;
+
            border-radius: 10px;
-
padding: 0 0 2px 0;
+
            -moz-border-radius: 10px;
-
}
+
            -webkit-border-radius: 10px;
-
 
+
-
#nav li a span { /*i dont know what this is about*/
+
        }
-
color: #FFD109;
+
            #navLaksh li ul li a, #navLaksh li ul li a:hover {
-
}
+
-
 
+
                background: solid;
-
#nav li a span span{ /*i dont know what this is about*/
+
                color: #000;
-
color: #FFD109;
+
                width: 150px;
-
}
+
                font-size: 0.95em;
-
 
+
                font-weight: normal;
-
#nav li a span span span{ /*i dont know what this is about*/
+
            }
-
color: #FFD109;
+
                #navLaksh li ul li a:hover { text-decoration: underline;  
-
}
+
          box-shadow: 5px 5px 25px #000;
-
 
+
            -moz-box-shadow: 5px 5px 25px #000;
-
#nav li.on a {
+
            -webkit-box-shadow: 5px 5px 25px #000;
-
border-bottom: 2px solid black;
+
   
-
color: #000000;   /*the color of HOME by default*/
+
            border-radius: 10px;
-
}
+
            -moz-border-radius: 10px;
-
 
+
            -webkit-border-radius: 10px;  
-
#nav li.on2 a {    /*i dont know what this is about*/
+
               
-
border-bottom: 2px solid blue;
+
                }
-
color: aqua;
+
-
}
+
-
 
+
-
#nav li.on a:hover {
+
-
color: #2ab117;
+
-
}
+
-
 
+
-
#nav li.on a:hover span{
+
-
color:#2ab117;
+
-
}
+
-
 
+
-
#nav li.on ul a, #nav li.off ul a {
+
-
/*float: center; ie doesn't inherit the float*/
+
-
border: 0;
+
-
font-size:12px;
+
-
color: #2ab117;
+
-
width: auto;
+
-
margin-right: 0px;
+
-
/*text-align: center;*/
+
-
}
+
-
#nav li.on ul {
+
-
display: block;
+
-
}
+
-
#nav li.off:hover ul {
+
-
display: inline;
+
-
z-index: 6000;
+
-
}
+
-
#nav li.off a:hover, #nav li:hover a {  /* this is for the background that opens behind the submenu */
+
-
background:white;
+
-
color: black;
+
-
height: 54px;
+
-
width: 150px;
+
-
}
+
-
 
+
-
#nav li.off a:hover span, #nav li:hover a {
+
-
background: white;
+
-
color: #2ab117;
+
-
width: 150px;
+
-
}
+
Line 139: Line 108:
-
<body>  
+
<body>
-
<ul id="nav">
+
 +
<div id="centeredmenu_bg"></div>
 +
<ul id="navLaksh">
<li class="on"><a href="https://2012.igem.org/Team:TU-Delft">Home</a></li>
<li class="on"><a href="https://2012.igem.org/Team:TU-Delft">Home</a></li>

Latest revision as of 03:10, 27 October 2012

Menu