Team:Grenoble-EMSE-LSU/Design/Menu

From 2013.igem.org

Revision as of 17:51, 2 October 2013 by Hélène (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

body {

   /*width: 980px;*/
   width: 100%;
   min-width: 800px;
   padding: 0;
   margin: auto;
   background: Dimgray;

/*border: 1px solid red;*/ }

/********** Bannière **********/

body div.banniere {

   z-index: 1000;
   /*width: 980px;*/
   /*width: 100%;*/
   width: 100%;
   padding: 0;
   margin: auto;
   position: absolute;
   top: 0px;

/*border: 1px solid lime;*/ }

/********************/

/********** Placement images **********/

body a[id="up"] {

       z-index: 10000000000;

position: fixed; right: 65px; bottom: 30px; }

/********************/

/********** Logos à droite **********/

/********** Fixer en haut quand scroll *****/

body div[id="wrap"] {

   z-index: 100000;
   width: 14.8%;
   float: right;
   padding: 0;
   margin: 0;
   position: absolute;
   top: 61%;
   right: 0%;

/*border: 1px solid lime;*/ }

body div[id="wrap"] div[id="scroll_right"] {

       width: 100%;
       padding: 0;
       margin: 0;

position: absolute; /*border: 1px solid aqua;*/ }

body div[id="wrap"] div[id="scroll_right"].fixed {

       width: 14.8%;
       padding: 0;
       margin: 0;

position: fixed;

       top: 0px;
       right: 0%;

}

/********************/

/********** Placement **********/

body div[id="wrap"] div ul[id="right"] {

   float: right;
   width: 100%;
   padding: 0;
   margin: auto;
   /*margin-top: 60px;*/
   /*margin-right: 20px;*/
   list-style: none;

}

body div[id="wrap"] div ul[id="right"] li {

   text-align: center;

}

/********************/

/********************/


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

/********** Fixer en haut quand scroll **********/

body div[id="wrapper"] {

   z-index: 1000;
   width: 100%;
   height: auto;
   padding: 0;
   margin: auto;
   position: absolute;
   /*top: 55%;*/
   top: 0%;

/*border: 1px solid red;*/ }

body div div[id="nav"] {

   width: 100%;
   padding: 0;
   margin: auto;
   position: absolute;
   top: 0px;

/*border: 1px solid aqua;*/ }

body div div[id="nav"].fixed {

   width: 100%;
   padding: 0;
   margin: auto;
   position: fixed;
   top: 0px;

/*border: 1px solid blue;*/ }

/********************/

/********** Navigation **********/ /********** Pure CSS Dropdown Menu --> http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu **********/

body div div nav {

   z-index: 1000000;
   /*width: 690px;*/
   width: 70%;
   padding: 0;
   margin: auto;

/*border: 1px solid red;*/ }

body div div nav ul ul { display: none; }

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

body div div nav ul {

       width: 100%;
       padding: 0;
       margin: 0;

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

       position: relative;

display: inline-table; /*border: 1px solid blue;*/ }

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

body div div nav ul li { float: left; width: 19.5%; padding: 0; margin: auto; margin-right: 0.62%; border-radius: 5px; /*border: 1px solid yellow;*/ }

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

body div div nav ul li a { display: block; padding: 15px 5px; }

body div div nav ul ul {

       width: 19.4%;

padding: 0; margin: 0; list-style: none; border-radius: 5px; position: absolute; top: 100%; /*border: 1px solid red;*/ }

body div div nav ul ul li { float: none;

               width: 100%;

padding: 0; margin: 0; border-radius: 0px; position: relative; /*border: 1px solid blue;*/ }

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

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

               body div div nav ul.topnav li:hover ul.subnav li:hover, body div div nav ul.topnav ul.subnav li:hover a
               {

border-radius: 5px; }

body nav ul.topnav ul.subnav li a { padding: 5px; /*border: 1px solid lime;*/ }

body div div nav ul.topnav ul.subnav ul.subsubnav { padding: 0; margin: 0; position: absolute; left: 100%; top: 0; list-style: none; border-radius: 5px; }

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

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

body div div nav ul.topnav ul.subnav ul.subsubnav li { border-radius: 0px; }

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

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

               body div div nav ul.topnav li:hover ul.subnav li:hover ul.subsubnav li:hover, body div div nav ul.topnav ul.subnav ul.subsubnav li:hover a
               {

border-radius: 5px; }

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