Team:Grenoble-EMSE-LSU/Design/Menu

From 2013.igem.org

(Difference between revisions)
 
(502 intermediate revisions not shown)
Line 1: Line 1:
body
body
{
{
-
     width: 980px;
+
     /*width: 980px;*/
-
     height: auto;
+
     width: 100%;
-
     /*min-height: 100%;*/
+
     min-width: 800px;
     padding: 0;
     padding: 0;
     margin: auto;
     margin: auto;
-
     /*background: url('https://static.igem.org/mediawiki/2013/4/43/Cool-White-1.jpg') fixed no-repeat;*/
+
     background: Dimgray;
-
    background: #2e2e2e;
+
/*border: 1px solid red;*/
-
    /*border: 1px solid red;*/
+
}
}
 +
/********** Bannière **********/
-
/***** Bandeau et Logos *****/
+
body div.banniere
-
 
+
-
body div[id="haut"]
+
{
{
-
     width: 980px;
+
     z-index: 1000;
-
     height: 290px;
+
    /*width: 980px;*/
 +
     /*width: 100%;*/
 +
    width: 100%;
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
-
     position: relative;
+
     position: absolute;
     top: 0px;
     top: 0px;
 +
/*border: 1px solid lime;*/
}
}
-
body div[id="haut"] div.logo
+
/********************/
 +
 
 +
/********** Placement images **********/
 +
 
 +
body a[id="up"]
{
{
-
     z-index: 10;
+
        z-index: 10000000000;
-
     width: 980px;
+
position: fixed;
-
     height: 343px;
+
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;
     padding: 0;
     margin: 0;
     margin: 0;
-
     position: fixed;
+
     position: absolute;
-
     top: 0px;
+
     top: 61%;
-
     background: #2e2e2e;
+
     right: 0%;
-
    opacity: 1;
+
/*border: 1px solid lime;*/
}
}
-
body div[id="haut"] div.logo img[id="cell"]
+
body div[id="wrap"] div[id="scroll_right"]
{
{
 +
        width: 100%;
 +
        padding: 0;
 +
        margin: 0;
position: absolute;
position: absolute;
-
        top: 178px;
+
/*border: 1px solid aqua;*/
-
        left: 10px;
+
}
}
-
/*body div[id="haut"] div.logo img[id="bandeau"]
+
body div[id="wrap"] div[id="scroll_right"].fixed
{
{
-
position: absolute;
+
        width: 14.8%;
-
         top: 178px;
+
        padding: 0;
-
         left: 10px;
+
        margin: 0;
-
}*/
+
position: fixed;
 +
         top: 0px;
 +
         right: 0%;
 +
}
-
body div[id="haut"] div.logo img[id="ordi"]
+
/********************/
 +
 
 +
/********** Placement **********/
 +
 
 +
body div[id="wrap"] div ul[id="right"]
{
{
-
position: absolute;
+
    float: right;
-
        top: 213px;
+
    width: 100%;
-
        right: 31px;
+
    padding: 0;
 +
    margin: auto;
 +
    /*margin-top: 60px;*/
 +
    /*margin-right: 20px;*/
 +
    list-style: none;
}
}
-
body div[id="haut"] div.logo a[id="up"]
+
body div[id="wrap"] div ul[id="right"] li
{
{
-
position: fixed;
+
    text-align: center;
-
right: 65px;
+
-
bottom: 30px;
+
}
}
-
body div.back
+
/********************/
 +
 
 +
/********************/
 +
 
 +
 
 +
/********** Menu **********/
 +
 
 +
/********** Fixer en haut quand scroll **********/
 +
 
 +
body div[id="wrapper"]
{
{
 +
    z-index: 1000;
 +
    width: 100%;
 +
    height: auto;
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
-
    width: 980px;
+
-
    border-radius: 5px;
+
     position: absolute;
     position: absolute;
-
     top: 340px;
+
     /*top: 55%;*/
-
     left: 0%;
+
     top: 0%;
 +
/*border: 1px solid red;*/
}
}
-
body div.back div.right
+
body div div[id="nav"]
{
{
-
    z-index: 10;
+
     width: 100%;
-
     width: 155px;
+
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
-
     margin-top: 15px;
+
     position: absolute;
-
     margin-left: 830px;
+
     top: 0px;
-
    position: fixed;
+
/*border: 1px solid aqua;*/
}
}
-
body div.back div.right ul
+
body div div[id="nav"].fixed
{
{
-
     float: right;
+
     width: 100%;
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
-
     list-style: none;
+
     position: fixed;
-
}
+
     top: 0px;
-
 
+
/*border: 1px solid blue;*/
-
body div.back div.right ul li
+
-
{
+
-
     margin-right: 35px;
+
-
    margin-bottom: 20px;
+
-
    text-align: right;
+
}
}
 +
/********************/
-
/***** Menu *****/
+
/********** 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;
-
     width: 670px;
+
     /*width: 690px;*/
 +
    width: 70%;
     padding: 0;
     padding: 0;
-
     margin: 0;
+
     margin: auto;
-
    margin-left: 155px;
+
/*border: 1px solid red;*/
-
    position: fixed;
+
-
    top: 240px;
+
-
    /*border: 1px solid red;*/
+
}
}
-
body nav ul.topnav
+
body div div nav ul ul
-
{
+
-
    width: 670px;
+
-
    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 149: Line 181:
}
}
-
body nav ul.topnav li
+
body div div nav ul li
{
{
float: left;
float: left;
-
width: 130px;
+
width: 19.5%;
-
        padding: 0;
+
padding: 0;
-
        margin: 0;
+
margin: auto;
-
margin-right: 5px;
+
margin-right: 0.62%;
border-radius: 5px;
border-radius: 5px;
 +
/*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: 19.4%;
padding: 0;
padding: 0;
-
        margin: 0;
+
margin: 0;
-
        list-style: none;
+
list-style: none;
-
        border-radius: 5px;
+
border-radius: 5px;
position: absolute;
position: absolute;
top: 100%;
top: 100%;
 +
/*border: 1px solid red;*/
}
}
-
body nav ul.topnav ul.subnav li
+
body div div nav ul ul li
{
{
float: none;
float: none;
-
height: auto;
+
                width: 100%;
padding: 0;
padding: 0;
margin: 0;
margin: 0;
border-radius: 0px;
border-radius: 0px;
position: relative;
position: relative;
 +
/*border: 1px solid blue;*/
}
}
-
body nav ul.topnav li[id="proj"]:hover ul.subnav li
+
body div div nav ul.topnav ul.subnav li:first-child
-
{
+
-
width: 200px;
+
-
}
+
-
+
-
body 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;
-
                }
+
}
body nav ul.topnav ul.subnav li a
body nav ul.topnav ul.subnav li a
{
{
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;
 +
margin: 0;
position: absolute;
position: absolute;
left: 100%;
left: 100%;
-
top:0;
+
top: 0;
-
        padding: 0;
+
list-style: none;
-
        margin: 0;
+
border-radius: 5px;
-
        list-style: none;
+
-
        border-radius: 5px;
+
}
}
-
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; }