/* iGEM Paris Bettencourt 2015 style * Design by Jérémy Ferrando & Ewen Corre * It's FREE! But you can send us beer at * beer@corre.bio :-) */ /***************/ /* MORMAL SIZE */ /***************/ /* Things to remove in normal size */ .toggle-box, #smallMenuTitle, label { display: none; } /* The block itself */ #menuContainer { width: 100%; position: fixed; top: 0px; text-align: center; background-color: rgba(255,255,255,1); z-index: 2; margin: auto; } /* Links (all the text in the menu) */ #menuContainer a { display: inline-block; text-decoration: none; font-size: 23px; color: black; font-family: 'GenomeThin'; font-weight: bold; padding-bottom: 10px; padding-top: 10px; } #menuContainer a:hover { color: rgb(130,130,130); display: block; } #menuContainer li { display: inline-block; width: 200px; } /* Submenu links */ #menuContainer li ul a { text-align: left; padding: 5px; } /* Submenu blocks */ #menuContainer li ul { position: absolute; text-align: left; background-color: rgba(255,255,255,0.9); z-index: 2; -webkit-border-bottom-left-radius: 5px; -webkit-border-bottom-right-radius: 5px; -moz-border-bottom-left-radius:5px; -moz-border-bottom-right-radius:5px; border-bottom-left-radius:5px; border-bottom-right-radius:5px; max-height: 0; overflow: hidden; } #menuContainer li:hover ul, #menuContainer li:hover ul li { display: block; text-align: left; max-height: 500px; -webkit-transition: max-height 0.25s ease-in; -moz-transition: max-height 0.25s ease-in; transition: max-height 0.25s ease-in; } /* FIY logo in the middle that should * appear only after scrolling down a bit */ /* Top of the page */ /*li#menuCenter { display: none; float: left; margin: 0; padding: 0; width: 0px; opacity: 0; -webkit-transition: width 5s ease-out; -moz-transition: width 5s ease-out; -o-transition: width 5s ease-out; transition: width 5s ease-out; } li#menuCenter a { display: none; float: left; margin: 0; padding: 0; height: 120px; width: 150px; background-image: url('../images/logos/logoFIYblack.png'); background-size: 120px; background-repeat: no-repeat; background-position: center; -webkit-transition: all .5s ease-out; -moz-transition: all .5s ease-out; -o-transition: all .5s ease-out; transition: all .5s ease-out; }*/ /* *scroll scroll* */ li#menuCenter { display: inline-block; float: none; width: 150px; opacity: 1; padding: 0; background-color: white; } li#menuCenter a { display: block; position: absolute; top: 0px; background-color: white; border-radius: 0 0 90px 90px; height: 100px; width: 150px; background-image: url('../images/logos/logoFIYblack.png'); background-size: 120px; background-repeat: no-repeat; background-position: center; } li#menuCenter img { display: block; } /* Smartphones and screens < 640px */ @media only screen and (max-width: 640px), only screen and (max-device-width: 640px) { /* The top menu stays on top of the page */ #menuContainer { width: 100%; position: absolute; top: 0; height: auto; background-color: white; } /* Displays the "menu" symbol to click on to show the links */ /* Displays a title */ #smallMenuTitle { display: block; width: 100%; font-weight: 0; text-align: center; padding-bottom: 5px; border-bottom: 1px solid #9A9A9A; } #smallMenuTitle h3 { font-style: italic; } /* Apparence of the menu, when displayed */ #menuContainer li { display: block; text-align: left; margin-left: 10px; margin-bottom: 10px; width: 250px; } #menuContainer li ul { display: block; height: auto; max-height: 800px; padding: 0; margin: 0; margin-left: 20px; -webkit-border-radius: 0px; -moz-border-radius:0px; border-radius:0px; position: static; } #menuContainer li ul li a { font-size: 20px; } #menuContainer li ul li { margin-bottom: 0; } #menuContainer a { padding: 0; margin: 0; } /* Let the magic happens: hide and show the menu! */ .toggle-box { display: none; } .toggle-box + label { cursor: pointer; display: block; position: absolute; top: 10px; left: 10px; } .toggle-box + label + div + ul { display: none; } .toggle-box:checked + label + div + ul { display: block; } }