Team:Grenoble-EMSE-LSU/Design/Menu
From 2013.igem.org
(500 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
body | body | ||
{ | { | ||
- | width: 980px; | + | /*width: 980px;*/ |
- | + | width: 100%; | |
- | + | min-width: 800px; | |
padding: 0; | padding: 0; | ||
margin: auto; | margin: auto; | ||
- | + | background: Dimgray; | |
- | + | /*border: 1px solid red;*/ | |
- | + | ||
} | } | ||
+ | /********** Bannière **********/ | ||
- | + | body div.banniere | |
- | + | ||
- | body div | + | |
{ | { | ||
- | width: 980px; | + | z-index: 1000; |
- | + | /*width: 980px;*/ | |
+ | /*width: 100%;*/ | ||
+ | width: 100%; | ||
padding: 0; | padding: 0; | ||
- | margin: | + | margin: auto; |
- | position: | + | position: absolute; |
top: 0px; | top: 0px; | ||
+ | /*border: 1px solid lime;*/ | ||
} | } | ||
- | body | + | /********************/ |
+ | |||
+ | /********** Placement images **********/ | ||
+ | |||
+ | body a[id="up"] | ||
{ | { | ||
- | z-index: | + | z-index: 10000000000; |
- | width: | + | 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; | padding: 0; | ||
margin: 0; | margin: 0; | ||
- | position: | + | position: absolute; |
- | top: | + | top: 61%; |
- | + | right: 0%; | |
- | + | /*border: 1px solid lime;*/ | |
} | } | ||
- | body div[id=" | + | body div[id="wrap"] div[id="scroll_right"] |
{ | { | ||
+ | width: 100%; | ||
+ | padding: 0; | ||
+ | margin: 0; | ||
position: absolute; | position: absolute; | ||
- | + | /*border: 1px solid aqua;*/ | |
- | + | ||
} | } | ||
- | + | body div[id="wrap"] div[id="scroll_right"].fixed | |
{ | { | ||
- | position: | + | width: 14.8%; |
- | top: | + | padding: 0; |
- | + | margin: 0; | |
- | } | + | position: fixed; |
+ | top: 0px; | ||
+ | right: 0%; | ||
+ | } | ||
- | body div[id=" | + | /********************/ |
+ | |||
+ | /********** 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=" | + | body div[id="wrap"] div ul[id="right"] li |
{ | { | ||
- | + | text-align: center; | |
- | + | ||
- | + | ||
} | } | ||
- | body div | + | /********************/ |
+ | |||
+ | /********************/ | ||
+ | |||
+ | |||
+ | /********** Menu **********/ | ||
+ | |||
+ | /********** Fixer en haut quand scroll **********/ | ||
+ | |||
+ | body div[id="wrapper"] | ||
{ | { | ||
+ | z-index: 1000; | ||
+ | width: 100%; | ||
+ | height: auto; | ||
padding: 0; | padding: 0; | ||
- | margin: | + | margin: auto; |
- | + | ||
- | + | ||
position: absolute; | position: absolute; | ||
- | top: | + | /*top: 55%;*/ |
- | + | top: 0%; | |
+ | /*border: 1px solid red;*/ | ||
} | } | ||
- | body div | + | body div div[id="nav"] |
{ | { | ||
- | + | width: 100%; | |
- | width: | + | |
padding: 0; | padding: 0; | ||
- | margin: | + | margin: auto; |
- | + | position: absolute; | |
- | + | top: 0px; | |
- | + | /*border: 1px solid aqua;*/ | |
} | } | ||
- | body div | + | body div div[id="nav"].fixed |
{ | { | ||
- | + | width: 100%; | |
padding: 0; | padding: 0; | ||
- | margin: | + | margin: auto; |
- | + | position: fixed; | |
- | + | top: 0px; | |
- | + | /*border: 1px solid blue;*/ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
+ | /********************/ | ||
- | /***** 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: | + | /*width: 690px;*/ |
- | width: | + | width: 70%; |
padding: 0; | padding: 0; | ||
- | margin: | + | margin: auto; |
- | + | /*border: 1px solid red;*/ | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | body | + | body div div 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 | + | 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 | + | body div div nav ul:after |
{ | { | ||
content: ""; | content: ""; | ||
Line 151: | Line 181: | ||
} | } | ||
- | body nav ul | + | body div div nav ul li |
{ | { | ||
float: left; | float: left; | ||
- | width: | + | width: 19.5%; |
- | + | padding: 0; | |
- | + | margin: auto; | |
- | margin-right: | + | margin-right: 0.62%; |
border-radius: 5px; | border-radius: 5px; | ||
+ | /*border: 1px solid yellow;*/ | ||
} | } | ||
- | body nav ul | + | body div div nav ul li:last-child |
{ | { | ||
margin-right: 0; | margin-right: 0; | ||
} | } | ||
- | + | body div div nav ul li a | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | body nav ul | + | |
{ | { | ||
display: block; | display: block; | ||
- | padding: 15px | + | padding: 15px 5px; |
- | + | ||
- | + | ||
} | } | ||
- | body nav ul | + | body div div nav ul ul |
{ | { | ||
+ | width: 19.4%; | ||
padding: 0; | padding: 0; | ||
- | + | margin: 0; | |
- | + | list-style: none; | |
- | + | border-radius: 5px; | |
position: absolute; | position: absolute; | ||
top: 100%; | top: 100%; | ||
+ | /*border: 1px solid red;*/ | ||
} | } | ||
- | body nav ul | + | body div div nav ul ul li |
{ | { | ||
float: none; | float: none; | ||
- | + | 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 | + | 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; | |
- | + | } | |
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; |
- | + | list-style: none; | |
- | + | border-radius: 5px; | |
- | + | ||
- | + | ||
} | } | ||
- | body nav ul.topnav li[id="proj"]:hover ul.subnav ul.subsubnav | + | body div div nav ul.topnav li[id="proj"]:hover ul.subnav ul.subsubnav |
{ | { | ||
- | width: | + | width: 225px; |
} | } | ||
- | body nav ul.topnav li[id="doc"]:hover ul.subnav ul.subsubnav | + | 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; | |
} | } | ||
- | 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 | + | 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; }