Difference between revisions of "Template:Northwestern Page Head"

 
(36 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 72: Line 95:
  
  
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
+
body,h1,h2,h3,h4,h5,h6 {font-family: josefin-sans, sans-serif;}
 
body, html {
 
body, html {
 
     height: 100%;
 
     height: 100%;
 
     color: #777;
 
     color: #777;
 
     line-height: 1.8;
 
     line-height: 1.8;
}
 
 
/******** circle nav ********/
 
 
.csstransforms .cn-wrapper {
 
  position: absolute;
 
  top: 100%;
 
  left: 50%;
 
  z-index: 10;
 
  margin-top: -13em;
 
  margin-left: -13.5em;
 
  width: 27em;
 
  height: 27em;
 
  border-radius: 50%;
 
  background: transparent;
 
  opacity: 0;
 
  transition: all .3s ease 0.3s;
 
  transform: scale(0.1);
 
  pointer-events: none;
 
  overflow: hidden;
 
}
 
 
/*cover to prevent extra space of anchors from being clickable*/
 
.csstransforms .cn-wrapper:after{
 
  color: transparent;
 
  content:".";
 
  display:block;
 
  font-size:2em;
 
  width:6.2em;
 
  height:6.2em;
 
  position: absolute;
 
  left: 50%;
 
  margin-left: -3.1em;
 
  top:50%;
 
  margin-top: -3.1em;
 
  border-radius: 50%;
 
  z-index:10;
 
}
 
 
.csstransforms .cn-wrapper li {
 
  position: absolute;
 
  top: 50%;
 
  left: 50%;
 
  overflow: hidden;
 
  margin-top: -1.3em;
 
  margin-left: -10em;
 
  width: 10em;
 
  height: 10em;
 
  font-size: 1.5em;
 
  transition: all .3s ease;
 
  transform: rotate(76deg) skew(60deg);
 
  transform-origin: 100% 100%;
 
  pointer-events: none;
 
}
 
 
.csstransforms .cn-wrapper li a {
 
  position: absolute;
 
  position: fixed; /* fix the "displacement" bug in webkit browsers when using tab key */
 
  right: -7.25em;
 
  bottom: -7.25em;
 
  display: block;
 
  width: 14.5em;
 
  height: 14.5em;
 
  border-radius: 50%;
 
  background: #429a67;
 
  background: radial-gradient(transparent 35%, #429a67 35%);
 
  color: #fff;
 
  text-align: center;
 
  text-decoration: none;
 
  font-size: 1.2em;
 
  line-height: 2;
 
  transition: all .3s ease;
 
  transform: skew(-60deg) rotate(-75deg) scale(1);
 
  pointer-events: auto;
 
}
 
 
.csstransforms .cn-wrapper li a span {
 
  position: relative;
 
  top: 1.8em;
 
  display: block;
 
  font-size: .5em;
 
  font-weight: 700;
 
  text-transform: uppercase;
 
}
 
 
.csstransforms .cn-wrapper li a:hover,
 
.csstransforms .cn-wrapper li a:active,
 
.csstransforms .cn-wrapper li a:focus {
 
background: radial-gradient(transparent 35%, #449e6a 35%);
 
}
 
.csstransforms .opened-nav {
 
  border-radius: 50%;
 
  opacity: 1;
 
  transition: all .3s ease;
 
  transform: scale(1);
 
  pointer-events: auto;
 
}
 
 
.csstransforms .opened-nav li {
 
  transition: all .3s ease .3s;
 
}
 
 
.csstransforms .opened-nav li:first-child {
 
  transform: rotate(-20deg) skew(60deg);
 
}
 
 
.csstransforms .opened-nav li:nth-child(2) {
 
  transform: rotate(12deg) skew(60deg);
 
}
 
 
.csstransforms .opened-nav  li:nth-child(3) {
 
  transform: rotate(44deg) skew(60deg);
 
}
 
 
.csstransforms .opened-nav li:nth-child(4) {
 
  transform: rotate(76deg) skew(60deg);
 
}
 
 
.csstransforms .opened-nav li:nth-child(5) {
 
  transform: rotate(108deg) skew(60deg);
 
}
 
 
.csstransforms .opened-nav li:nth-child(6) {
 
  transform: rotate(140deg) skew(60deg);
 
}
 
 
.csstransforms .opened-nav li:nth-child(7) {
 
  transform: rotate(172deg) skew(60deg);
 
}
 
 
.no-csstransforms .cn-wrapper{
 
  margin:10em auto;
 
  overflow:hidden;
 
  text-align:center;
 
  padding:1em;
 
}
 
.no-csstransforms .cn-wrapper ul{
 
  display:inline-block;
 
}
 
.no-csstransforms li{
 
  font-size:1em;
 
  width:5em;
 
  height:5em;
 
  float:left;
 
  line-height:5em;
 
  text-align:center;
 
  background-color: #fff;
 
}
 
.no-csstransforms li a{
 
  display:block;
 
  height:100%;
 
  width:100%;
 
  text-decoration: none;
 
  color: inherit;
 
}
 
.no-csstransforms .cn-wrapper li a:hover,
 
.no-csstransforms .cn-wrapper li a:active,
 
.no-csstransforms .cn-wrapper li a:focus{
 
  background-color: #f8f8f8;
 
}
 
.no-csstransforms .cn-wrapper li.active a {
 
  background-color: #6F325C;
 
  color: #fff;
 
}
 
.no-csstransforms .cn-button{
 
  display:none;
 
}
 
 
@media only screen and (max-width: 620px) {
 
  .no-csstransforms li{
 
    width:4em;
 
    height:4em;
 
    line-height:4em;
 
  }
 
}
 
@media only screen and (max-width: 500px) {
 
  .no-ccstransforms .cn-wrapper{
 
    padding:.5em;
 
  }
 
  .no-csstransforms .cn-wrapper li{
 
    font-size:.9em;
 
    width:4em;
 
    height:4em;
 
    line-height:4em;
 
  }
 
}
 
@media only screen and (max-width: 480px) {
 
  .csstransforms .cn-wrapper{
 
    font-size: .68em;
 
  }
 
  .cn-button{
 
    font-size:1em;
 
  }
 
}
 
@media only screen and (max-width:420px){
 
  .no-csstransforms .cn-wrapper li{
 
    width:100%;
 
    height:3em;
 
    line-height:3em;
 
  }
 
 
}
 
}
  
Line 283: Line 106:
 
a.nav-link:link
 
a.nav-link:link
 
{
 
{
   color: #7842ff;
+
   color: #a025f8;
 
   text-decoration: none;
 
   text-decoration: none;
 
}
 
}
Line 354: Line 177:
  
 
/* Create a Parallax Effect */
 
/* 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 {
 
.bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 {
 
     background-attachment: fixed;
 
     background-attachment: fixed;
Line 453: 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) -->
 
<!-- Navbar code (sits on top) -->
 
  
 
<!--
 
<!--
Line 475: Line 409:
 
     <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 488: Line 422:
 
   </div>
 
   </div>
 
</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

Northwestern Template