(91 intermediate revisions by 2 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*************/ | /*************STYLING FOR HEADER*************/ | ||
/* Bye-Bye iGEM Defaults */ | /* Bye-Bye iGEM Defaults */ | ||
+ | |||
+ | h1 { | ||
+ | |||
+ | font-family: aladin; | ||
+ | color: #551A8B; | ||
+ | font-size: 30 px; | ||
+ | |||
+ | } | ||
+ | |||
+ | h3 { | ||
+ | |||
+ | font-family: josefin-sans, sans-serif; | ||
+ | font-size:22px; | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | |||
#sideMenu, | #sideMenu, | ||
#top_title { | #top_title { | ||
Line 24: | Line 46: | ||
background-color: white; | background-color: white; | ||
width: 100%; | width: 100%; | ||
+ | font-family: josefin-sans, sans-serif; | ||
} | } | ||
Line 66: | Line 89: | ||
.navbar-nav .dropdown-menu, | .navbar-nav .dropdown-menu, | ||
.navbar .dropdown-menu { | .navbar .dropdown-menu { | ||
+ | background-color: white; | ||
margin-top: 15px; | margin-top: 15px; | ||
float: right; | float: right; | ||
Line 71: | Line 95: | ||
− | body,h1,h2,h3,h4,h5,h6 {font-family: | + | body,h1,h2,h3,h4,h5,h6 {font-family: josefin-sans, sans-serif;} |
body, html { | body, html { | ||
height: 100%; | height: 100%; | ||
Line 77: | Line 101: | ||
line-height: 1.8; | line-height: 1.8; | ||
} | } | ||
− | |||
− | |||
− | |||
/******** Links n' such (NavBar)********/ | /******** Links n' such (NavBar)********/ | ||
Line 85: | Line 106: | ||
a.nav-link:link | a.nav-link:link | ||
{ | { | ||
− | color: # | + | color: #a025f8; |
text-decoration: none; | text-decoration: none; | ||
} | } | ||
Line 125: | Line 146: | ||
} | } | ||
/******* w3 Syle editing *******/ | /******* 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 */ | ||
+ | |||
+ | 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-position: center; | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | } | ||
+ | |||
+ | #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 */ | /* Create a Parallax Effect */ | ||
Line 149: | Line 301: | ||
/* First image (Logo Full height) */ | /* First image (Logo Full height) */ | ||
.bgimg-1 { | .bgimg-1 { | ||
− | background-image: url("https://static.igem.org/mediawiki/2017/ | + | background-image: url("https://static.igem.org/mediawiki/2017/4/4f/T-Northwestern-purple.jpg"); |
min-height: 100vh; | min-height: 100vh; | ||
} | } | ||
Line 181: | 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> | </style> | ||
+ | |||
<body> | <body> | ||
− | |||
+ | <!-- Navbar code (sits on top) --> | ||
+ | <!-- | ||
<div class="w3-top"> | <div class="w3-top"> | ||
− | <div class="w3-bar" "w3-white" "w3-right | + | <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"> | <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> | <i class="fa fa-bars"></i> | ||
Line 197: | Line 404: | ||
<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#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#parts" class= "w3-bar-item w3-button w3-hide-small w3-right nav-link"> Parts </a> | ||
− | <a href="https://2017.igem.org/Team:Northwestern | + | <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#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#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> | <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 --> | <!-- Navbar on small screens --> | ||
+ | <!-- | ||
<div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium"> | <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#home" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Home</a> | ||
Line 216: | Line 423: | ||
</div> | </div> | ||
− | + | --> | |
</body> | </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 | ||
+ | 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() { | ||
+ | document.getElementById("myNav").style.height = "0%"; | ||
+ | } | ||
+ | |||
+ | </script> | ||
+ | |||
+ | |||
</html> | </html> |
Latest revision as of 16:37, 28 August 2017