Template:Team:Paris Saclay/incl menu

From 2013.igem.org

(Difference between revisions)
Line 2: Line 2:
<style>
<style>
-
.psmenu a {
+
.psmenu {
-
    display:block;
+
margin: 100px auto;  
-
    width:20mm;
+
text-align: center;
-
    background-color:#FFFF00;
+
}
}
 +
.psmenu ul ul {
.psmenu ul ul {
-
    display:none;
+
display: none;
}
}
-
.psmenu ul li:hover > ul {
+
 
-
    display:block;
+
nav ul li:hover > ul {
 +
display: block;
 +
}
 +
 
 +
 
 +
.psmenu ul {
 +
background: #efefef;
 +
background: linear-gradient(top, #efefef 0%, #bbbbbb 100%); 
 +
background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);
 +
background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);
 +
box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
 +
padding: 0 20px;
 +
border-radius: 10px; 
 +
list-style: none;
 +
position: relative;
 +
display: inline-table;
}
}
 +
.psmenu ul:after {
 +
content: ""; clear: both; display: block;
 +
}
 +
 +
.psmenu ul li {
 +
float: left;
 +
}
 +
.psmenu ul li:hover {
 +
background: #4b545f;
 +
background: linear-gradient(top, #4f5964 0%, #5f6975 40%);
 +
background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);
 +
background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);
 +
}
 +
.psmenu ul li:hover a {
 +
color: #fff;
 +
}
 +
 +
.psmenu ul li a {
 +
display: block; padding: 25px 40px;
 +
color: #757575; text-decoration: none;
 +
}
 +
 +
 +
.psmenu ul ul {
 +
background: #5f6975; border-radius: 0px; padding: 0;
 +
position: absolute; top: 100%;
 +
}
 +
.psmenu ul ul li {
 +
float: none;
 +
border-top: 1px solid #6b727c;
 +
border-bottom: 1px solid #575f6a; position: relative;
 +
}
 +
.psmenu ul ul li a {
 +
padding: 15px 40px;
 +
color: #fff;
 +
}
 +
.psmenu ul ul li a:hover {
 +
background: #4b545f;
 +
}
 +
 +
.psmenu ul ul ul {
 +
position: absolute; left: 100%; top:0;
 +
}
</style>
</style>

Revision as of 09:24, 24 July 2013