(258 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <head> | ||
<title>Northwestern Template</title> | <title>Northwestern Template</title> | ||
<meta charset="UTF-8"> | <meta charset="UTF-8"> | ||
Line 7: | Line 8: | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato"> | <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
+ | <script src="//use.edgefonts.net/josefin-sans:n1,i1,n3,i3,n4,i4,n6,i6,n7,i7.js"></script> | ||
+ | <script src="//use.edgefonts.net/aladin.js"></script> | ||
+ | </head> | ||
<style> | <style> | ||
− | + | /*************STYLING FOR HEADER*************/ | |
− | + | /* Bye-Bye iGEM Defaults */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | body,h1,h2,h3,h4,h5,h6 {font-family: | + | h1 { |
+ | |||
+ | font-family: aladin; | ||
+ | color: #551A8B; | ||
+ | font-size: 30 px; | ||
+ | |||
+ | } | ||
+ | |||
+ | h3 { | ||
+ | |||
+ | font-family: josefin-sans, sans-serif; | ||
+ | font-size:22px; | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | #sideMenu, | ||
+ | #top_title { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | #content { | ||
+ | padding: 0px; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | body { | ||
+ | background-color: white; | ||
+ | width: 100%; | ||
+ | font-family: josefin-sans, sans-serif; | ||
+ | } | ||
+ | |||
+ | #bodyContent h1, | ||
+ | #bodyContent h2, | ||
+ | #bodyContent h3, | ||
+ | #bodyContent h4, | ||
+ | #bodyContent h5 { | ||
+ | margin-bottom: 0px; | ||
+ | } | ||
+ | |||
+ | #bodyContent { | ||
+ | padding-right: 0px; | ||
+ | } | ||
+ | |||
+ | #globalWrapper { | ||
+ | font-size: 100%; | ||
+ | padding: 0px; | ||
+ | margin: -10px -20px -20px -20px; | ||
+ | } | ||
+ | |||
+ | .navbar-collapse { | ||
+ | padding-right: 0px; | ||
+ | } | ||
+ | |||
+ | #banner { | ||
+ | margin-top: 50px; | ||
+ | } | ||
+ | |||
+ | #sideMenu { | ||
+ | margin-top: 0px; | ||
+ | } | ||
+ | |||
+ | .dropdown-menu li:hover .sub-menu { | ||
+ | visibility: visible; | ||
+ | } | ||
+ | |||
+ | .dropdown:hover .dropdown-menu { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | .navbar-nav .dropdown-menu, | ||
+ | .navbar .dropdown-menu { | ||
+ | background-color: white; | ||
+ | margin-top: 15px; | ||
+ | float: right; | ||
+ | } | ||
+ | |||
+ | |||
+ | body,h1,h2,h3,h4,h5,h6 {font-family: josefin-sans, sans-serif;} | ||
body, html { | body, html { | ||
height: 100%; | height: 100%; | ||
Line 22: | Line 101: | ||
line-height: 1.8; | line-height: 1.8; | ||
} | } | ||
+ | |||
+ | /******** Links n' such (NavBar)********/ | ||
+ | |||
+ | a.nav-link:link | ||
+ | { | ||
+ | color: #a025f8; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a.nav-link:visited | ||
+ | { | ||
+ | color: #7842ff; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a.nav-link:hover | ||
+ | { | ||
+ | color: #000000; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a.nav-link:active | ||
+ | { | ||
+ | color: #7842ff; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | |||
+ | a.nav-link2:link | ||
+ | { | ||
+ | color: #000000; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a.nav-link2:visited | ||
+ | { | ||
+ | color: #000000; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a.nav-link2:hover | ||
+ | { | ||
+ | color: #000000; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a.nav-link2:active | ||
+ | { | ||
+ | color: #000000; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | /******* w3 Syle editing *******/ | ||
+ | |||
+ | /*Animates the NavBar left to right */ | ||
+ | |||
+ | #projan{ | ||
+ | |||
+ | position: relative; | ||
+ | animation-name: example; | ||
+ | animation-duration: 15s; | ||
+ | animation-delay: 2s; | ||
+ | animation-iteration-count: infinite; | ||
+ | animation-direction: alternate; | ||
+ | } | ||
+ | @keyframes example { | ||
+ | 0% {left:0%; top:0%;} | ||
+ | 25% {left:5%; top:0%;} | ||
+ | 50% { left:10%; top:0%;} | ||
+ | 75% { left:15%; top:0%;} | ||
+ | 100% {left:20%; top:0%;} | ||
+ | } | ||
+ | |||
+ | /*Controls the speed of animation */ | ||
+ | #spin { | ||
+ | -webkit-animation:spin 30s linear infinite; | ||
+ | -moz-animation:spin 30s linear infinite; | ||
+ | animation:spin 30s linear infinite; | ||
+ | } | ||
+ | @-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } } | ||
+ | @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } } | ||
+ | @keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } } | ||
/* Create a Parallax Effect */ | /* Create a Parallax Effect */ | ||
− | .bgimg-1, .bgimg-2, .bgimg-3 { | + | |
+ | body { | ||
+ | margin: 0; | ||
+ | font-family: 'Lato', sans-serif; | ||
+ | } | ||
+ | |||
+ | .overlay { | ||
+ | height: 0%; | ||
+ | width: 100%; | ||
+ | position: fixed; | ||
+ | z-index: 1; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | background-color: rgb(0,0,0); | ||
+ | background-color: rgba(0,0,0, 0.9); | ||
+ | overflow-y: hidden; | ||
+ | transition: 0.5s; | ||
+ | } | ||
+ | |||
+ | .overlay-content { | ||
+ | position: relative; | ||
+ | top: 25%; | ||
+ | width: 100%; | ||
+ | text-align: center; | ||
+ | margin-top: 30px; | ||
+ | } | ||
+ | |||
+ | .overlay a { | ||
+ | padding: 8px; | ||
+ | text-decoration: none; | ||
+ | font-size: 36px; | ||
+ | color: #818181; | ||
+ | display: block; | ||
+ | transition: 0.3s; | ||
+ | } | ||
+ | |||
+ | .overlay a:hover, .overlay a:focus { | ||
+ | color: #f1f1f1; | ||
+ | } | ||
+ | |||
+ | .overlay .closebtn { | ||
+ | position: absolute; | ||
+ | top: 20px; | ||
+ | right: 45px; | ||
+ | font-size: 60px; | ||
+ | } | ||
+ | |||
+ | @media screen and (max-height: 450px) { | ||
+ | .overlay {overflow-y: auto;} | ||
+ | .overlay a {font-size: 20px} | ||
+ | .overlay .closebtn { | ||
+ | font-size: 40px; | ||
+ | top: 15px; | ||
+ | right: 35px; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | .bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 { | ||
background-attachment: fixed; | background-attachment: fixed; | ||
background-position: center; | background-position: center; | ||
Line 31: | Line 241: | ||
} | } | ||
− | /* First image (Logo | + | #teaman{ |
+ | |||
+ | position: relative; | ||
+ | animation-name: team; | ||
+ | animation-duration: 20s; | ||
+ | animation-timing-function: linear; | ||
+ | animation-delay: 2s; | ||
+ | animation-iteration-count: infinite; | ||
+ | animation-direction: alternate; | ||
+ | } | ||
+ | @keyframes team { | ||
+ | 0% {left:0%; top:20%;} | ||
+ | 25% {left:5%; top:20%;} | ||
+ | 50% { left:10%; top:20%;} | ||
+ | 75% { left:15%; top:20%;} | ||
+ | 100% {left:20%; top:20%;} | ||
+ | } | ||
+ | |||
+ | |||
+ | #partsan{ | ||
+ | |||
+ | position: relative; | ||
+ | animation-name: parts; | ||
+ | animation-duration: 25s; | ||
+ | animation-delay: 2s; | ||
+ | animation-iteration-count: infinite; | ||
+ | animation-direction: alternate; | ||
+ | } | ||
+ | @keyframes parts { | ||
+ | 0% {left:0%; top:50%;} | ||
+ | 25% {left:5%; top:50%;} | ||
+ | 50% {left:10%; top:50%;} | ||
+ | 75% {left:15%; top:50%;} | ||
+ | 100% {left:20%; top:50%;} | ||
+ | } | ||
+ | |||
+ | |||
+ | /* Create a Parallax Effect */ | ||
+ | .bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 { | ||
+ | background-attachment: fixed; | ||
+ | background-position: center; | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | } | ||
+ | |||
+ | .w3-top { | ||
+ | margin-top: 10px; | ||
+ | } | ||
+ | |||
+ | .body-cont { | ||
+ | margin-right: 5%; | ||
+ | margin-left: 5%; | ||
+ | } | ||
+ | |||
+ | img { | ||
+ | image-orientation: from-image; | ||
+ | } | ||
+ | |||
+ | /* First image (Logo Full height) */ | ||
.bgimg-1 { | .bgimg-1 { | ||
− | background-image: url( | + | background-image: url("https://static.igem.org/mediawiki/2017/4/4f/T-Northwestern-purple.jpg"); |
− | min-height: | + | min-height: 100vh; |
} | } | ||
− | /* Second image ( | + | /* Second image (Team) */ |
.bgimg-2 { | .bgimg-2 { | ||
− | background-image: url("/ | + | background-image: url("https://static.igem.org/mediawiki/2017/0/0f/T-Northwestern_Puppy.jpeg"); |
min-height: 400px; | min-height: 400px; | ||
} | } | ||
− | /* Third image ( | + | /* Third image (Lab) */ |
.bgimg-3 { | .bgimg-3 { | ||
− | background-image: url("/ | + | background-image: url("https://static.igem.org/mediawiki/2017/6/61/T-Northwestern-lab.jpg"); |
+ | min-height: 400px; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | /* Fourth image (Contact) */ | ||
+ | .bgimg-4 { | ||
+ | background-image: url("https://static.igem.org/mediawiki/2017/2/24/T-Northwestern_Northwesternpic.jpeg"); | ||
min-height: 400px; | min-height: 400px; | ||
} | } | ||
Line 58: | Line 333: | ||
} | } | ||
} | } | ||
− | |||
− | |||
− | + | /* Add a black background color to the top navigation */ | |
− | + | .topnav { | |
− | + | background-color: #333; | |
− | + | overflow: hidden; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* Style the links inside the navigation bar */ | |
− | + | .topnav a { | |
− | + | float: left; | |
− | + | display: block; | |
− | + | color: #f2f2f2; | |
− | + | text-align: center; | |
− | + | padding: 14px 16px; | |
− | + | text-decoration: none; | |
+ | font-size: 17px; | ||
+ | } | ||
− | + | /* Change the color of links on hover */ | |
− | + | .topnav a:hover { | |
− | + | background-color: #ddd; | |
− | + | color: black; | |
− | + | } | |
− | + | ||
− | + | /* Hide the link that should open and close the topnav on small screens */ | |
− | + | .topnav .icon { | |
− | + | display: none; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */ | |
− | + | @media screen and (max-width: 600px) { | |
− | + | .topnav a:not(:first-child) {display: none;} | |
− | + | .topnav a.icon { | |
− | + | float: right; | |
− | + | display: block; | |
− | + | } | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */ | |
− | + | @media screen and (max-width: 600px) { | |
− | + | .topnav.responsive {position: relative;} | |
− | + | .topnav.responsive a.icon { | |
− | + | position: absolute; | |
− | + | right: 0; | |
− | + | top: 0; | |
− | + | } | |
− | + | .topnav.responsive a { | |
− | + | float: none; | |
− | + | display: block; | |
− | + | text-align: left; | |
− | + | } | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | </style> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | + | <body> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | + | <!-- Navbar code (sits on top) --> | |
− | + | ||
− | + | ||
− | + | <!-- | |
− | + | <div class="w3-top"> | |
− | + | <div class="w3-bar" "w3-white" "w3-right" "w3-hide-small" id="myNavbar"> | |
− | + | <a class="w3-bar-item w3-button w3-hover-purple w3-hide-medium w3-hide-large w3-right" href="javascript:void(0);" onclick="toggleFunction()" title="Toggle Navigation Menu"> | |
+ | <i class="fa fa-bars"></i> | ||
+ | </a> | ||
− | + | <a href="https://2017.igem.org/Team:Northwestern#contact" class= "w3-bar-item w3-button w3-hide-small w3-right nav-link"> Contact </a> | |
− | + | <a href="https://2017.igem.org/Team:Northwestern#humanpractices" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Human Practices </a> | |
− | + | <a href="https://2017.igem.org/Team:Northwestern#parts" class= "w3-bar-item w3-button w3-hide-small w3-right nav-link"> Parts </a> | |
− | + | <a href="https://2017.igem.org/Team:Northwestern/lab" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Lab </a> | |
− | + | <a href="https://2017.igem.org/Team:Northwestern#team" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Team </a> | |
− | < | + | <a href="https://2017.igem.org/Team:Northwestern#project" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Project </a> |
− | + | <a href="https://2017.igem.org/Team:Northwestern#home" class="w3-bar-item w3-button w3-hide-small w3-right nav-link">HOME</a> | |
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | < | + | |
</div> | </div> | ||
− | + | --> | |
− | + | <!-- Navbar on small screens --> | |
− | <!-- | + | <!-- |
− | <div id=" | + | <div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium"> |
− | + | <a href="https://2017.igem.org/Team:Northwestern#home" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Home</a> | |
− | + | <a href="https://2017.igem.org/Team:Northwestern#project" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Project</a> | |
− | < | + | <a href="https://2017.igem.org/Team:Northwestern#team" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Team</a> |
− | + | <a href="https://2017.igem.org/Team:Northwestern/lab" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()"> Lab </a> | |
+ | <a href="https://2017.igem.org/Team:Northwestern#parts" class= "w3-bar-item w3-button nav-link" onclick="toggleFunction()"> Parts </a> | ||
+ | <a href="https://2017.igem.org/Team:Northwestern#humanpractices" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Human Practices</a> | ||
+ | <a href="https://2017.igem.org/Team:Northwestern#contact" class= "w3-bar-item w3-button nav-link" onclick="toggleFunction()"> Contact </a> | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | --> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | </body> | |
− | + | ||
− | + | ||
− | + | ||
− | + | <script> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */ | |
− | + | function myFunction() { | |
− | + | var x = document.getElementById("myTopnav"); | |
− | + | if (x.className === "topnav") { | |
− | + | x.className += " responsive"; | |
− | + | } else { | |
− | + | x.className = "topnav"; | |
− | + | } | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* When the user clicks on the button, | |
− | + | toggle between hiding and showing the dropdown content */ | |
− | + | function myFunction() { | |
− | + | document.getElementById("myDropdown").classList.toggle("show"); | |
} | } | ||
− | // | + | // Close the dropdown if the user clicks outside of it |
− | function | + | window.onclick = function(e) { |
− | + | if (!e.target.matches('.dropbtn')) { | |
− | + | var myDropdown = document.getElementById("myDropdown"); | |
− | + | if (myDropdown.classList.contains('show')) { | |
− | + | myDropdown.classList.remove('show'); | |
+ | } | ||
+ | } | ||
} | } | ||
− | + | function openNav() { | |
− | + | document.getElementById("myNav").style.height = "100%"; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | function closeNav() { | |
− | function | + | document.getElementById("myNav").style.height = "0%"; |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | + | </script> |
+ | |||
+ | |||
</html> | </html> |
Latest revision as of 16:37, 28 August 2017