Team:Grenoble-EMSE-LSU/Design/Menu

From 2013.igem.org

(Difference between revisions)
 
(1025 intermediate revisions not shown)
Line 1: Line 1:
-
#contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo
+
body
{
{
-
     display:none;
+
     /*width: 980px;*/
 +
    width: 100%;
 +
    min-width: 800px;
 +
    padding: 0;
 +
    margin: auto;
 +
    background: Dimgray;
 +
/*border: 1px solid red;*/
}
}
-
#top-section
+
/********** Bannière **********/
 +
 
 +
body div.banniere
{
{
-
     border: none;
+
     z-index: 1000;
-
     height: 0px;
+
     /*width: 980px;*/
 +
    /*width: 100%;*/
 +
    width: 100%;
 +
    padding: 0;
 +
    margin: auto;
 +
    position: absolute;
 +
    top: 0px;
 +
/*border: 1px solid lime;*/
}
}
-
   
+
 
-
#content
+
/********************/
 +
 
 +
/********** Placement images **********/
 +
 
 +
body a[id="up"]
{
{
-
    border: none;
+
        z-index: 10000000000;
 +
position: fixed;
 +
right: 65px;
 +
bottom: 30px;
}
}
-
.left-menu:hover {
+
/********************/
-
    background-color: transparent;}
+
-
#menubar li a {
+
/********** Logos à droite **********/
-
    background-color: transparent;}
+
-
#menubar:hover {
+
-
    color: white;}
+
-
#menubar li a {
+
-
    color: transparent;}
+
-
#menubar:hover li a {
+
-
    color: white;}
+
-
/* Redesigning Table Of Content */
+
/********** Fixer en haut quand scroll *****/
-
/********************************/
+
-
table.toc, #toctitle, .toc #toctitle, #toc .toctitle, .toc .toctitle {
+
-
    text-align: left;}
+
-
#toctitle {
+
-
    margin: 5px 0;}
+
-
.toc, #toc {
+
-
    background-color: #F6F6F6;
+
-
    border: 1px solid #CCCCCC;
+
-
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15);
+
-
    -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15); /* for the Safari browser*/
+
-
    float: left;
+
-
    width: 228px;
+
-
    display: block;
+
-
    overflow: hidden;
+
-
    padding: 0;}
+
-
#toc ul, .toc ul {
+
-
    margin: 0 5px 5px 5px;}
+
-
.toc ul li {
+
-
    padding-left: 12px;
+
-
    text-indent: -12px;
+
-
    /*width: 200px;*/}
+
-
.toc ul li ul li {
+
-
    padding-left: 30px;
+
-
    text-indent: -24px;
+
-
    /*width: 170px;*/}
+
-
#toc ul ul, .toc ul ul {
+
-
    margin: 0;}
+
-
.toc {
+
-
    margin-left: -250px;
+
-
    margin-top: 20px;}
+
-
.stickBelowNavigation {
+
-
    position: fixed;
+
-
      top: 35px;
+
-
      left: 50%;
+
-
    margin-left: -462px;}
+
-
.tochidden {
+
-
    position: static;
+
-
    margin-left: -250px;}
+
-
/********************************************************************************/
+
body div[id="wrap"]
-
/**********************      CSS for our wiki        ****************************/
+
{
-
/********************************************************************************/
+
    z-index: 100000;
 +
    width: 14.8%;
 +
    float: right;
 +
    padding: 0;
 +
    margin: 0;
 +
    position: absolute;
 +
    top: 61%;
 +
    right: 0%;
 +
/*border: 1px solid lime;*/
 +
}
-
body
+
body div[id="wrap"] div[id="scroll_right"]
{
{
-
   
+
        width: 100%;
-
    background: url("https://static.igem.org/mediawiki/2013/e/ea/Igem-background.png") no-repeat 120% 95% fixed, url("https://static.igem.org/mediawiki/2013/e/ea/Igem-background.png") no-repeat -20% 95% fixed;
+
        padding: 0;
-
    background-color: dimgray;
+
        margin: 0;
 +
position: absolute;
 +
/*border: 1px solid aqua;*/
}
}
-
#content, #globalWrapper
+
body div[id="wrap"] div[id="scroll_right"].fixed
{
{
-
    border: none;
+
        width: 14.8%;
-
    width: 100%;
+
        padding: 0;
-
    margin: 0;
+
        margin: 0;
-
    padding: 0;
+
position: fixed;
-
    background: transparent;
+
        top: 0px;
 +
        right: 0%;
}
}
 +
/********************/
 +
 +
/********** Placement **********/
-
.centering
+
body div[id="wrap"] div ul[id="right"]
{
{
-
     margin: auto;
+
    float: right;
-
     width: 965px;
+
    width: 100%;
 +
    padding: 0;
 +
     margin: auto;
 +
     /*margin-top: 60px;*/
 +
    /*margin-right: 20px;*/
 +
    list-style: none;
}
}
-
/*
+
 
-
.navigation div
+
body div[id="wrap"] div ul[id="right"] li
{
{
-
     background: #2F4F4F;
+
     text-align: center;
}
}
-
*/
 
-
#header
+
/********************/
 +
 
 +
/********************/
 +
 
 +
 
 +
/********** Menu **********/
 +
 
 +
/********** Fixer en haut quand scroll **********/
 +
 
 +
body div[id="wrapper"]
{
{
-
     background: /*url("")*/ maroon;
+
     z-index: 1000;
-
    height: 120px;
+
     width: 100%;
     width: 100%;
 +
    height: auto;
 +
    padding: 0;
 +
    margin: auto;
 +
    position: absolute;
 +
    /*top: 55%;*/
 +
    top: 0%;
 +
/*border: 1px solid red;*/
}
}
-
   
 
-
/*
 
-
#innercontent {
 
-
    padding: 1px;} Important!
 
-
*/
 
-
/********  MENU  ********/
+
body div div[id="nav"]
-
 
+
-
ul.topnav
+
{
{
-
list-style: none;
+
    width: 100%;
-
padding: 0;
+
    padding: 0;
 +
    margin: auto;
 +
    position: absolute;
 +
    top: 0px;
 +
/*border: 1px solid aqua;*/
}
}
-
ul.topnav li
+
body div div[id="nav"].fixed
{
{
-
float: left;
+
    width: 100%;
-
width: 130px;
+
    padding: 0;
-
height: 30px;
+
    margin: auto;
-
margin: 5px;
+
    position: fixed;
-
padding: 9px 0 0 0;
+
    top: 0px;
-
position: relative; /*--Declare X and Y axis base for sub navigation--*/
+
/*border: 1px solid blue;*/
-
text-align: center;
+
-
border-radius: 5px 5px 5px 5px;
+
}
}
-
ul.topnav li a
+
/********************/
 +
 
 +
/********** Navigation **********/
 +
/********** Pure CSS Dropdown Menu --> http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu **********/
 +
 
 +
body div div nav
{
{
-
padding: 0;
+
    z-index: 1000000;
-
text-decoration: none;
+
    /*width: 690px;*/
 +
    width: 70%;
 +
    padding: 0;
 +
    margin: auto;
 +
/*border: 1px solid red;*/
}
}
-
ul.topnav > li > a
+
body div div nav ul ul
{
{
-
    overflow: hidden;
+
display: none;
}
}
-
ul.topnav li:hover  
+
body div div nav ul li:hover > ul /* Seuls les ul sont affectés, pas les enfants */
 +
{
 +
display: block;
 +
}
 +
 
 +
body div div nav ul
{
{
-
background-position: center bottom;
+
        width: 100%;
-
cursor: pointer;
+
        padding: 0;
 +
        margin: 0;
 +
border-radius: 5px; 
 +
list-style: none;
 +
        position: relative;
 +
display: inline-table;
 +
/*border: 1px solid blue;*/
}
}
-
ul.subnav
+
body div div nav ul:after
 +
{
 +
content: "";
 +
clear: both;
 +
display: block;
 +
}
 +
 
 +
body div div nav ul li
{
{
-
    z-index: 1; /*Stay on top of slider*/
+
float: left;
-
position: absolute; /*--Important - Keeps subnav from affecting main navigation flow--*/
+
width: 19.5%;
-
top: 39px;
+
-
margin: 0;  
+
padding: 0;
padding: 0;
-
display: none; /* submenu apparaissent pas à l'ouverture de la page */
+
margin: auto;
-
        list-style: none;
+
margin-right: 0.62%;
 +
border-radius: 5px;
 +
/*border: 1px solid yellow;*/
}
}
-
ul.subnav li  
+
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;
margin: 0;
-
width: 130px;
+
list-style: none;
-
height: 35px;
+
border-radius: 5px;
-
position: relative;
+
position: absolute;
-
clear: both; /* submenu en colonne */
+
top: 100%;
-
border-radius: 0 0 0 0;
+
/*border: 1px solid red;*/
}
}
-
ul.subnav li:first-child
+
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
{
{
-
border-radius: 5px 5px 0 0;
+
padding: 0;
 +
margin: 0;
 +
position: absolute;
 +
left: 100%;
 +
top: 0;
 +
list-style: none;
 +
border-radius: 5px;
}
}
-
ul.subnav li:last-child
+
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: 0 0 5px 5px;
+
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;
 +
}

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