Team:Grenoble-EMSE-LSU/Design/Menu

From 2013.igem.org

Revision as of 18:41, 17 August 2013 by FRousse (Talk | contribs)

body {

   width: 980px;
   height: auto;
   /*min-height: 100%;*/
   padding: 0;
   margin: auto;
   /*background: url('https://static.igem.org/mediawiki/2013/4/43/Cool-White-1.jpg') fixed no-repeat;*/
   background: #2e2e2e;
   /*border: 1px solid red;*/

}


/***** Bandeau et Logos *****/

body div[id="haut"] {

   width: 980px;
   height: 290px;
   padding: 0;
   margin: 0;
   position: relative;
   top: 0px;

}

body div[id="haut"] div.logo {

   z-index: 10;
   width: 980px;
   height: 343px;
   padding: 0;
   margin: 0;
   position: fixed;
   top: 0px;
   background: #2e2e2e;
   opacity: 1;

}

body div[id="haut"] div.logo img[id="cell"] { position: absolute;

       top: 178px;
       left: 10px;

}

/*body div[id="haut"] div.logo img[id="bandeau"] { position: absolute;

       top: 178px;
       left: 10px;

}*/

body div[id="haut"] div.logo img[id="ordi"] { position: absolute;

       top: 213px;
       right: 31px;

}

body div[id="haut"] div.logo a[id="up"] { position: fixed; right: 65px; bottom: 30px; }

body div.back {

   padding: 0;
   margin: 0;
   width: 980px;
   border-radius: 5px;
   position: absolute;
   top: 340px;
   left: 0%;

}

body div.back div.right {

   z-index: 10;
   width: 155px;
   padding: 0;
   margin: 0;
   margin-top: 15px;
   margin-left: 830px;
   position: fixed;

}

body div.back div.right ul {

   float: right;
   padding: 0;
   margin: 0;
   list-style: none;

}

body div.back div.right ul li {

   margin-right: 35px;
   margin-bottom: 20px;
   text-align: right;

}


/***** Menu *****/

body nav {

   z-index: 1000000;
   /*width: 670px;*/
   width: 980px;
   padding: 0;
   margin: 0;
   /*margin-left: 155px;*/
   margin-left: 0px;
   position: fixed;
   top: 240px;
   border: 1px solid red;

}

body nav ul.topnav {

   /*width: 670px;*/
   width: 980px;
   padding: 0;
   margin: 0;
   border: 1px solid blue;

}

body nav ul ul { display: none; }

body nav ul li:hover > ul /* Seuls les ul sont affectés, pas les enfants */ { display: block; }

body nav ul.topnav { border-radius: 5px; list-style: none; display: inline-table; }

body nav ul.topnav:after { content: ""; clear: both; display: block; }

body nav ul.topnav li { float: left; /*width: 130px;*/

      width: 200px;
       padding: 0;
       margin: 0;

margin-right: 5px; border-radius: 5px;

    border: 1px solid yellow;

}

body nav ul.topnav li:last-child { margin-right: 0; }

body nav ul.topnav li:hover a {

                   text-decoration: none;

}

body nav ul.topnav li a { display: block; padding: 15px 0px 15px 0px; text-align: center; text-decoration: none; }

body nav ul.topnav ul.subnav { padding: 0;

       margin: 0;
       list-style: none;
       border-radius: 5px;

position: absolute; top: 100%; }

body nav ul.topnav ul.subnav li { float: none; height: auto; padding: 0; margin: 0; border-radius: 0px; position: relative; }

body nav ul.topnav li[id="proj"]:hover ul.subnav li { width: 200px; }

body nav ul.topnav ul.subnav li:first-child { border-radius: 5px 5px 0px 0px; }

body nav ul.topnav ul.subnav li:last-child { border-radius: 0px 0px 5px 5px; }

               body nav ul.topnav li:hover ul.subnav li:hover, body nav ul.topnav ul.subnav li:hover a
               {
                       border-radius: 5px;
               }

body nav ul.topnav ul.subnav li a { padding: 5px; }

body nav ul.topnav ul.subnav ul.subsubnav { position: absolute; left: 100%; top:0;

       padding: 0;
       margin: 0;
       list-style: none;
       border-radius: 5px;

}

body nav ul.topnav li[id="proj"]:hover ul.subnav ul.subsubnav li { width: 220px; }

body nav ul.topnav li[id="doc"]:hover ul.subnav ul.subsubnav li { width: 120px; }

body nav ul.topnav ul.subnav ul.subsubnav li {

       border-radius: 0px;

}

body nav ul.topnav ul.subnav li:first-child { border-radius: 5px 5px 0px 0px; }

body nav ul.topnav ul.subnav li:last-child { border-radius: 0px 0px 5px 5px; }

body nav ul.topnav ul.subnav ul.subsubnav li a { padding: 5px 0px 5px 0px; }