Team:Grenoble-EMSE-LSU/Design/Menu

From 2013.igem.org

(Difference between revisions)
 
(252 intermediate revisions not shown)
Line 2: Line 2:
{
{
     /*width: 980px;*/
     /*width: 980px;*/
-
     width: 95%;
+
     width: 100%;
-
     height: auto;
+
     min-width: 800px;
     padding: 0;
     padding: 0;
     margin: auto;
     margin: auto;
Line 14: Line 14:
body div.banniere
body div.banniere
{
{
-
     z-index: 10;
+
     z-index: 1000;
     /*width: 980px;*/
     /*width: 980px;*/
 +
    /*width: 100%;*/
     width: 100%;
     width: 100%;
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
     position: absolute;
     position: absolute;
-
     top: -5px;
+
     top: 0px;
-
    background: Dimgray;
+
/*border: 1px solid lime;*/
/*border: 1px solid lime;*/
-
}
 
-
 
-
body div.banniere p[id="bann"]
 
-
{
 
-
    z-index: 20;
 
-
    width: 100%;
 
-
    padding: 0;
 
-
    margin: auto;
 
-
    font: normal 300% Palatino, Palatino Linotype, Georgia, Times, Times New Roman, serif;
 
-
    font-weight: bold;
 
-
    color: black;
 
-
    text-align: center;
 
-
    font-variant: small-caps;
 
-
    position: absolute;
 
-
    top: 0%;
 
-
/*border: 1px solid green;*/
 
}
}
Line 44: Line 28:
/********** Placement images **********/
/********** Placement images **********/
-
 
-
body div.banniere img[id="cell"]
 
-
{
 
-
        width: 10%;
 
-
        /*height: 50%;*/
 
-
position: absolute;
 
-
        bottom: 0%;
 
-
left: 0%;
 
-
}
 
-
 
-
/*body div.banniere img[id="bandeau"]
 
-
{
 
-
position: absolute;
 
-
top: 178px;
 
-
left: 10px;
 
-
}*/
 
-
 
-
body div.banniere img[id="ordi"]
 
-
{
 
-
        width: 10%;
 
-
        /*height: 50%;*/
 
-
position: absolute;
 
-
bottom: 0%;
 
-
right: 0%;
 
-
}
 
body a[id="up"]
body a[id="up"]
{
{
 +
        z-index: 10000000000;
position: fixed;
position: fixed;
right: 65px;
right: 65px;
Line 85: Line 45:
body div[id="wrap"]
body div[id="wrap"]
{
{
-
     z-index: 10;
+
     z-index: 100000;
-
     width: 95%;
+
     width: 14.8%;
 +
    float: right;
     padding: 0;
     padding: 0;
     margin: 0;
     margin: 0;
     position: absolute;
     position: absolute;
-
     top: 48.2%;
+
     top: 61%;
-
border: 1px solid lime;
+
    right: 0%;
 +
/*border: 1px solid lime;*/
}
}
Line 100: Line 62:
         margin: 0;
         margin: 0;
position: absolute;
position: absolute;
-
border: 1px solid aqua;
+
/*border: 1px solid aqua;*/
}
}
body div[id="wrap"] div[id="scroll_right"].fixed
body div[id="wrap"] div[id="scroll_right"].fixed
{
{
-
         width: 95%;
+
         width: 14.8%;
 +
        padding: 0;
 +
        margin: 0;
position: fixed;
position: fixed;
-
         top: -5px;
+
         top: 0px;
 +
        right: 0%;
}
}
Line 117: Line 82:
{
{
     float: right;
     float: right;
 +
    width: 100%;
     padding: 0;
     padding: 0;
-
     margin-right: 30px;
+
     margin: auto;
 +
    /*margin-top: 60px;*/
 +
    /*margin-right: 20px;*/
     list-style: none;
     list-style: none;
}
}
Line 124: Line 92:
body div[id="wrap"] div ul[id="right"] li
body div[id="wrap"] div ul[id="right"] li
{
{
-
     text-align: right;
+
     text-align: center;
}
}
Line 138: Line 106:
body div[id="wrapper"]
body div[id="wrapper"]
{
{
-
     z-index: 10;
+
     z-index: 1000;
-
     width: 95%;
+
     width: 100%;
 +
    height: auto;
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
     position: absolute;
     position: absolute;
-
     top: 34%;
+
     /*top: 55%;*/
 +
    top: 0%;
/*border: 1px solid red;*/
/*border: 1px solid red;*/
}
}
Line 149: Line 119:
body div div[id="nav"]
body div div[id="nav"]
{
{
-
    padding: 0;
 
-
    margin: 0;
 
     width: 100%;
     width: 100%;
 +
    padding: 0;
 +
    margin: auto;
     position: absolute;
     position: absolute;
     top: 0px;
     top: 0px;
Line 159: Line 129:
body div div[id="nav"].fixed
body div div[id="nav"].fixed
{
{
 +
    width: 100%;
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
-
    width: 95%;
+
     position: fixed;
     position: fixed;
     top: 0px;
     top: 0px;
-
    background: white;
 
/*border: 1px solid blue;*/
/*border: 1px solid blue;*/
}
}
Line 171: Line 140:
/********** Navigation **********/
/********** Navigation **********/
 +
/********** Pure CSS Dropdown Menu --> http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu **********/
-
body nav
+
body div div nav
{
{
     z-index: 1000000;
     z-index: 1000000;
Line 182: Line 152:
}
}
-
body nav ul.topnav
+
body div div nav ul ul
-
{
+
-
    width: 100%;
+
-
    padding: 0;
+
-
    margin: 0;
+
-
/*border: 1px solid blue;*/
+
-
}
+
-
 
+
-
body nav ul ul
+
{
{
display: none;
display: none;
}
}
-
body nav ul li:hover > ul /* Seuls les ul sont affectés, pas les enfants */
+
body div div nav ul li:hover > ul /* Seuls les ul sont affectés, pas les enfants */
{
{
display: block;
display: block;
}
}
-
body nav ul.topnav
+
body div div nav ul
{
{
 +
        width: 100%;
 +
        padding: 0;
 +
        margin: 0;
border-radius: 5px;   
border-radius: 5px;   
list-style: none;
list-style: none;
 +
        position: relative;
display: inline-table;
display: inline-table;
 +
/*border: 1px solid blue;*/
}
}
-
body nav ul.topnav:after
+
body div div nav ul:after
{
{
content: "";
content: "";
Line 214: Line 181:
}
}
-
body nav ul.topnav li
+
body div div nav ul li
{
{
float: left;
float: left;
-
width: 19.36%;
+
width: 19.5%;
padding: 0;
padding: 0;
-
margin: 0;
+
margin: auto;
-
margin-right: 0.8%;
+
margin-right: 0.62%;
border-radius: 5px;
border-radius: 5px;
/*border: 1px solid yellow;*/
/*border: 1px solid yellow;*/
}
}
-
body nav ul.topnav li:last-child
+
body div div nav ul li:last-child
{
{
margin-right: 0;
margin-right: 0;
}
}
-
body nav ul.topnav li:hover a
+
body div div nav ul li a
-
{
+
-
text-decoration: none;
+
-
}
+
-
+
-
body nav ul.topnav li a
+
{
{
display: block;
display: block;
-
padding: 15px 0px 15px 0px;
+
padding: 15px 5px;
-
text-align: center;
+
-
text-decoration: none;
+
}
}
-
body nav ul.topnav ul.subnav
+
body div div nav ul ul
{
{
-
         width: 13.3%;
+
         width: 19.4%;
padding: 0;
padding: 0;
margin: 0;
margin: 0;
Line 255: Line 215:
}
}
-
body nav ul.topnav ul.subnav li
+
body div div nav ul ul li
{
{
float: none;
float: none;
                 width: 100%;
                 width: 100%;
-
height: auto;
 
padding: 0;
padding: 0;
margin: 0;
margin: 0;
Line 267: Line 226:
}
}
-
body nav ul.topnav ul.subnav li:first-child
+
body div div nav ul.topnav ul.subnav li:first-child
{
{
border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
}
}
-
body nav ul.topnav ul.subnav li:last-child
+
body div div nav ul.topnav ul.subnav li:last-child
{
{
border-radius: 0px 0px 5px 5px;
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
+
                 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;
border-radius: 5px;
Line 285: Line 244:
{
{
padding: 5px;
padding: 5px;
 +
/*border: 1px solid lime;*/
}
}
-
body nav ul.topnav ul.subnav ul.subsubnav
+
body div div nav ul.topnav ul.subnav ul.subsubnav
{
{
padding: 0;
padding: 0;
Line 298: Line 258:
}
}
-
body nav ul.topnav li[id="proj"]:hover ul.subnav ul.subsubnav li
+
body div div nav ul.topnav li[id="proj"]:hover ul.subnav ul.subsubnav
{
{
-
width: 220px;
+
width: 225px;
}
}
-
body nav ul.topnav li[id="doc"]:hover ul.subnav ul.subsubnav li
+
body div div nav ul.topnav li[id="doc"]:hover ul.subnav ul.subsubnav
{
{
width: 120px;
width: 120px;
}
}
-
body nav ul.topnav ul.subnav ul.subsubnav li
+
body div div nav ul.topnav ul.subnav ul.subsubnav li
{
{
border-radius: 0px;
border-radius: 0px;
}
}
-
body nav ul.topnav ul.subnav li:first-child
+
body div div nav ul.topnav ul.subnav ul.subsubnav li:first-child
{
{
border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
}
}
-
body nav ul.topnav ul.subnav li:last-child
+
body div div nav ul.topnav ul.subnav ul.subsubnav li:last-child
{
{
border-radius: 0px 0px 5px 5px;
border-radius: 0px 0px 5px 5px;
}
}
-
body nav ul.topnav ul.subnav ul.subsubnav li a
+
                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 0px 5px 0px;
+
padding: 5px;
}
}

Latest revision as of 17:51, 2 October 2013

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; }