Difference between revisions of "Template:IISER Berhampur"

Line 1: Line 1:
 
<html>
 
<html>
 +
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@700&display=swap" rel="stylesheet">
 +
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 +
  
 
<script>
 
<script>
Line 8: Line 11:
  
 
<style  type="text/css">
 
<style  type="text/css">
 +
 +
Flash {
 +
  font-family: 'Quicksand';font-size: 10vw;
 +
  color: #E5F6F1;
 +
  animation: color-change 1.5s infinite;
 +
}
 +
 +
@keyframes color-change {
 +
  0% { text-shadow: 0px 0px 12px red; }
 +
  25% { text-shadow: 0px 0px 12px blue; }
 +
  50% { text-shadow: 0px 0px 12px green; }
 +
  75% { text-shadow: 0px 0px 12px yellow; }
 +
  100% { text-shadow: 0px 0px 12px orange; }
 +
 +
}
 +
.container {
 +
  position: relative;
 +
  text-align: center;
 +
  color: white;
 +
}
 +
.container img
 +
 +
    position: relative;
 +
    top:-7vw;
 +
    height: 100%;
 +
    width: 100%;
 +
}
 +
.centered {
 +
  position: absolute;
 +
  top: 7%;
 +
  left: 49.5%;
 +
  transform: translate(-50%, -50%);
 +
}
 +
 +
 +
 +
 +
 +
  
 
/*UNIVERSAL STUFF FOR ALL PAGES*/
 
/*UNIVERSAL STUFF FOR ALL PAGES*/
Line 22: Line 64:
  
 
body {
 
body {
     background-color: #e5f6f1;
+
     background-color: #d2efe7;
     font-family: "avenir";
+
     font-family: 'Quicksand', sans-serif;
 
     margin: 0 0 0 0;
 
     margin: 0 0 0 0;
 
     padding: 0 0 0 0;
 
     padding: 0 0 0 0;
 
     border: none;
 
     border: none;
 +
    height: 4000px;
 
}
 
}
  
 
/* width */
 
/* width */
 
::-webkit-scrollbar {
 
::-webkit-scrollbar {
   width: 5px;
+
   width: 12px;
 
}
 
}
  
 
/* Track */
 
/* Track */
 
::-webkit-scrollbar-track {
 
::-webkit-scrollbar-track {
   background: black;  
+
   background: white;  
   margin-top: 30px;
+
   margin-top: 0px;
   margin-bottom: 30px;
+
   margin-bottom: 0px;
 
}
 
}
 
   
 
   
 
/* Handle */
 
/* Handle */
 
::-webkit-scrollbar-thumb {
 
::-webkit-scrollbar-thumb {
   background: grey;  
+
   background: #bfe9dd;  
 
}
 
}
  
 
/* Handle on hover */
 
/* Handle on hover */
 
::-webkit-scrollbar-thumb:hover {
 
::-webkit-scrollbar-thumb:hover {
   background: grey;  
+
   background: #86d5bf;  
 
}
 
}
  
Line 67: Line 110:
 
padding: 0;
 
padding: 0;
 
}
 
}
 +
  
 
p {
 
p {
Line 72: Line 116:
 
}
 
}
  
#navbar {
+
 
    text-align: left;
+
#home_logo, #sideMenu, #sideMenu, #top_title, .patrollink {display:none;}
    overflow: hidden;
+
#content {margin-left:0px; margin-top:-7px; padding:0px; width:100%;}
    background: black;
+
body {background-color:white;}
    border-radius: 60px;
+
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 {margin-bottom: 0px;}
    margin-left: 10%;
+
#bodyContent a[href ^="https://"], .link-https {padding-right:0px;}
    margin-right: 10%;
+
 
    box-shadow: 0px 0px 10px 3px #888888;
+
body {
   
+
  margin: 0;
 +
  font-family:font-family:courier,arial,helvetica;
 
}
 
}
  
#navbar span {
+
.navbar {
   padding:0.5% 0 0.5% 0;
+
  position:fixed;
   /*position: fixed;*/
+
  top:16px;
   /*top: 0;*/
+
  width:100%;
   font-size:3.5em;
+
  z-index:1;
   cursor:pointer;
+
  //overflow: hidden;
   display: inline;
+
  background-color:#ace2d3;
   width: 100%;
+
}
   color: white;
+
 
 +
.navbar a {
 +
  float: left;
 +
  display: block;
 +
  color:#171717;
 +
  text-align: center;
 +
   padding: 14px 16px 14px 16px;
 +
  text-decoration: none;
 +
  font-size: 1.2em;
 +
}
 +
 +
.topnav .icon {
 +
  display: none;
 +
}
 +
 +
.navbar a:hover {
 +
   background-color: #D4D4D4;
 +
   color: #171717;
 +
}
 +
 
 +
.navbar a.active {
 +
  background-color: #3B3B3B;
 +
  color: #ffffff;
 +
}
 +
 
 +
.navbar .icon {
 +
  display: none;
 +
}
 +
 +
.dropdown {
 +
  float: left;
 +
  overflow: hidden;
 +
}
 +
 
 +
.dropdown .dropbtn {
 +
   font-size: 1.2em;
 +
   border: none;
 +
  outline: none;
 +
  color: #171717;
 +
  padding: 14px 16px;
 +
  background-color: inherit;
 +
  font-family: inherit;
 +
  margin: 0px 0px 0px 0px;
 +
}
 +
 
 +
.navbar a:hover, .dropdown:hover .dropbtn {
 +
  background-color: #D4D4D4 ;
 +
}
 +
 
 +
.dropdown-content {
 +
   display: none;
 +
   position: absolute;
 +
  background-color: #E9E9E9;
 +
  min-width: 160px;
 +
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
 +
  z-index: 1;
 +
}
 +
 
 +
.dropdown-content a {
 +
  float: none;
 +
   color: #171717;
 +
  padding: 12px 16px 12px 16px;
 +
  text-decoration: none;
 +
  display: block;
 
   text-align: left;
 
   text-align: left;
  vertical-align: middle;
 
 
}
 
}
  
.content {
+
.dropdown-content a:hover {
   padding: 16px;
+
   background-color: #ddd;
 
}
 
}
  
.sticky {
+
.dropdown:hover .dropdown-content {
   position: sticky;
+
   display: block;
  top: 25px;
+
  //width: 100%;
+
 
}
 
}
  
.sticky + .content {
+
 
   padding-top: 60px;
+
 
 +
@media screen and (max-width: 600px) {
 +
  .navbar a:not(:first-child), .dropdown .dropbtn {
 +
    display: none;
 +
   }
 +
  .navbar a.icon {
 +
    float: right;
 +
    display: block;
 +
  }
 
}
 
}
  
/*Navigation Overlay Style BEGINS*/
+
@media screen and (max-width: 600px) {
.overlay {
+
  .navbar.responsive {position: fixed; overflow:auto;}
    height: 80%;
+
  .navbar.responsive a.icon {
    width: 0%;
+
     position: absolute;
     position: fixed;
+
     right: 0;
     z-index: 1;
+
 
     top: 0;
 
     top: 0;
     left: 0;
+
  }
     //background-color: rgb(250,250,250);
+
  .navbar.responsive a {
     background-color: rgba(250,250,250, 0.95);  
+
     float: none;
    border-radius: 40px;
+
     display: block;
     overflow-y: auto;
+
     text-align: left;
     overflow-x: hidden;
+
  }
     transition: 0.5s;
+
  .navbar.responsive .dropdown {float: none;}
 +
  .navbar.responsive .dropdown-content {position: relative;}
 +
  .navbar.responsive .dropdown .dropbtn {
 +
     display: block;
 +
     width: 100%;
 +
     text-align: left;
 +
  }
 
}
 
}
  
.overlay-content {
+
#navright{
    position: relative;
+
  float:right;
    top: 7%;
+
  font-family:"Quicksand";
    bottom: 0%;
+
  font-size: 24px;
    width: 100%;
+
  margin-right:10px
    text-align: center;
+
 
}
 
}
 +
#home_logo, #sideMenu, #sideMenu, #top_title, .patrollink {display:none;}
 +
#content {margin-left:0px; margin-top:-7px; padding:0px; width:100%;}
 +
body {background-color:#d2efe7;}
 +
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 {margin-bottom: 0px;}
 +
#bodyContent a[href ^="https://"], .link-https {padding-right:0px;}
 +
.responsive {
 +
  width: 100%;
 +
  height: 550px;
 +
  
.overlay a {
+
footer{
    padding: 2%;
+
position: fixed;
    text-decoration: none;
+
bottom: 0;
    font-size: 200%;
+
    color: black;
+
    display: block;
+
    transition: 0.3s;
+
    font-weight: bold;
+
    line-height: 1.6;
+
 
}
 
}
.overlay .panel a {
+
 
    font-size: 150%;
+
@media (max-height:800px){
    font-weight: normal;
+
footer { position: static; }
 +
header { padding-top:40px; }
 
}
 
}
  
.overlay a:hover , .overlay a:focus{
+
 
    color: #ace2d3;
+
.footer-distributed{
    border: 1px solid #aaaaaa;
+
background-color: #2c292f;
    border-radius: 20px;
+
box-sizing: border-box;
    box-shadow: 0px 0px 20px 3px #aaaaaa;
+
width: 100%;
   
+
text-align: left;
 +
font: bold 16px sans-serif;
 +
padding: 50px 50px 60px 50px;
 +
margin-top: 80px;
 
}
 
}
  
.overlay .closebtn {
+
.footer-distributed .footer-left,
    position: absolute;
+
.footer-distributed .footer-center,
    top: 0px;
+
.footer-distributed .footer-right{
    right: 0px;
+
display: inline-block;
    font-size: 40px;
+
vertical-align: top;
 
}
 
}
/*Accordion style BEGINS*/
+
 
button.Accordion {
+
/* Footer left */
    background-color: rgba(0,0,0, 0);
+
 
    cursor: pointer;
+
.footer-distributed .footer-left{
    width: 100%;
+
width: 30%;
    border: none;
+
    outline: none;
+
    padding: 5%;
+
    text-decoration: none;
+
    font-size: 200%;
+
    color: black;
+
    display: block;
+
    transition: 0.3s;
+
    font-weight: bold;
+
    font-family:"avenir";
+
    text-align: center;
+
    line-height: 1.6;
+
 
}
 
}
.overlay button:after {
+
 
    content: '+';
+
.footer-distributed h3{
    color: black;
+
color: #ffffff;
    font-weight: bold;
+
font: normal 36px 'Cookie', cursive;
    float: right;
+
margin: 0;
    margin-left: 5px;
+
 
}
 
}
.overlay .active:after {
+
 
    content: '-';
+
/* The company logo */
    color: black;
+
 
    font-weight: bold;
+
.footer-distributed .footer-left img{
    float: right;
+
width: 30%;
    margin-left: 5px;
+
 
}
 
}
  
.overlay button:hover, .overlay button:focus {
+
.footer-distributed h3 span{
    color: #333333;
+
color: #e0ac1c;
    border: 1px solid #aaaaaa;
+
    border-radius: 20px;
+
    box-shadow: 0px 0px 20px 3px #aaaaaa;
+
 
}
 
}
  
div.panel {
+
/* Footer links */
    max-height: 0;
+
 
    overflow: hidden;
+
.footer-distributed .footer-links{
    transition: max-height 0.2s ease-out;
+
color: #ffffff;
 +
margin: 20px 0 12px;
 
}
 
}
/*Accordion style ENDS*/
+
 
/*Navigation Overlay Style ENDS*/
+
.footer-distributed .footer-links a{
 +
display:inline-block;
 +
line-height: 1.8;
 +
text-decoration: none;
 +
color:  inherit;
 +
}
 +
 
 +
.footer-distributed .footer-company-name{
 +
color:  #8f9296;
 +
font-size: 14px;
 +
font-weight: normal;
 +
}
 +
 
 +
/* Footer Center */
 +
 
 +
.footer-distributed .footer-center{
 +
width: 35%;
 +
}
 +
 
 +
 
 +
.footer-distributed .footer-center i{
 +
background-color:  #33383b;
 +
color: #ffffff;
 +
font-size: 25px;
 +
width: 38px;
 +
height: 38px;
 +
border-radius: 50%;
 +
text-align: center;
 +
line-height: 42px;
 +
margin: 10px 15px;
 +
vertical-align: middle;
 +
}
 +
 
 +
.footer-distributed .footer-center i.fa-envelope{
 +
font-size: 17px;
 +
line-height: 38px;
 +
}
 +
 
 +
.footer-distributed .footer-center p{
 +
display: inline-block;
 +
color: #ffffff;
 +
vertical-align: middle;
 +
margin:0;
 +
}
 +
 
 +
.footer-distributed .footer-center p span{
 +
display:block;
 +
font-weight: normal;
 +
font-size:14px;
 +
line-height:2;
 +
}
 +
 
 +
.footer-distributed .footer-center p a{
 +
color:  #e0ac1c;
 +
text-decoration: none;;
 +
}
 +
 
 +
 
 +
/* Footer Right */
 +
 
 +
.footer-distributed .footer-right{
 +
width: 30%;
 +
}
 +
 
 +
.footer-distributed .footer-company-about{
 +
line-height: 20px;
 +
color:  #92999f;
 +
font-size: 13px;
 +
font-weight: normal;
 +
margin: 0;
 +
}
 +
 
 +
.footer-distributed .footer-company-about span{
 +
display: block;
 +
color:  #ffffff;
 +
font-size: 18px;
 +
font-weight: bold;
 +
margin-bottom: 20px;
 +
}
 +
 
 +
.footer-distributed .footer-icons{
 +
margin-top: 25px;
 +
}
 +
 
 +
.footer-distributed .footer-icons a{
 +
display: inline-block;
 +
width: 35px;
 +
height: 35px;
 +
cursor: pointer;
 +
background-color:  #33383b;
 +
border-radius: 2px;
 +
 
 +
font-size: 20px;
 +
color: #ffffff;
 +
text-align: center;
 +
line-height: 35px;
 +
 
 +
margin-right: 3px;
 +
margin-bottom: 5px;
 +
}
 +
 
 +
Why this happens?
 +
 
 +
img is an inline element and inline elements flows like text. The small whitespace is due to this. Possible solutions:
 +
 
 +
Change the display from inline to other - add display: block for instance
 +
 
 +
Change the vertical-align property to top (default is baseline)
 +
 
 +
Shrink the text size to 0 by font-size: 0 on the containing block of the inline element.
 +
 
 +
Example
 +
 
 +
Add vertical-align: top to all the three images - see updated fiddle here and snippet below:
 +
 
 +
#image-1 img,
 +
#image-2 img,
 +
#image-3 img {
 +
  background-color: #00f;
 +
  vertical-align: top;
 +
}
 +
.image-1,
 +
.image-2,
 +
image-3 {
 +
  display: block;
 +
}
 +
.Wrapper {
 +
  vertical-align: middle;
 +
  display: block;
 +
}
 +
 
 +
/* Here is the code for Responsive Footer */
 +
/* You can remove below code if you don't want Footer to be responsive */
 +
 
 +
 
 +
@media (max-width: 880px) {
 +
 
 +
.footer-distributed .footer-left,
 +
.footer-distributed .footer-center,
 +
.footer-distributed .footer-right{
 +
display: block;
 +
width: 100%;
 +
margin-bottom: 40px;
 +
text-align: center;
 +
}
 +
 
 +
.footer-distributed .footer-center i{
 +
margin-left: 0;
 +
}
 +
 
 +
}
 +
 
  
 
/*MAIN BODY CONTENT SECTION BEGINS*/
 
/*MAIN BODY CONTENT SECTION BEGINS*/
Line 329: Line 588:
 
   }
 
   }
  
.overlay a {
 
    font-size: 100%;
 
}
 
.overlay .panel a {
 
    font-size: 100%;
 
}
 
button.Accordion {
 
    font-size: 100%;
 
}
 
#navbar img {
 
  height: 8%;
 
  width: 8%;
 
  margin-left: 5px;
 
}
 
.overlay .closebtn {
 
    top: 15px;
 
    right: 15px;
 
    font-size: 14px;
 
}
 
 
#HQ_page table p {
 
    text-align: justify;
 
}
 
 
#HQ_page .leftSide img {
 
    display: block;
 
    width: 75%;
 
    height: auto;
 
    margin: 0 0 2.5% 0;
 
}
 
 
#navbar span {
 
  font-size:2.5em;
 
 
}
 
 
#HQ_page #navbar h1 {
 
  font-size: 2em;
 
}
 
  
 
#HQ_page .leftSide p {
 
#HQ_page .leftSide p {
Line 383: Line 603:
  
 
</style>
 
</style>
 +
<div class="container">
 +
<!--DO NOT CHANGE ANY OF THIS BEGINS-->
 +
<head>
 +
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 +
<title>IISER-BPR IGEM</title>
 +
<!--<link rel="stylesheet" type="text/css" href="stylesheet1.css">-->
 +
</head>
 +
 +
<body>
 +
<div class="navbar" id="myNavbar">
 +
<a href="https://2020.igem.org/Team:IISER_Berhampur">Home</a>
 +
  <div class="dropdown">
 +
    <button class="dropbtn">Project&#9660;</button>
 +
    <div class="dropdown-content">
 +
<a href="https://2020.igem.org/Team:IISER_Berhampur/Contribution">Contribution</a>     
 +
<a href="https://2020.igem.org/Team:IISER_Berhampur/Description">Description</a>
 +
      <a href="https://2020.igem.org/Team:IISER_Berhampur/Design">Design</a>
 +
  <a href="https://2020.igem.org/Team:IISER_Berhampur/Engineering">Engineering</a>
 +
          <a href="https://2020.igem.org/Team:IISER_Berhampur/Experiments">Experiments</a>
 +
          <a href="https://2020.igem.org/Team:IISER_Berhampur/Notebook">Notebook</a>
 +
        <a href="https://2020.igem.org/Team:IISER_Berhampur/Partnership">Partnership</a>
 +
        <a href="https://2020.igem.org/Team:IISER_Berhampur/Proof_of_concepts">Proof Of Concepts</a>
 +
        <a href="https://2020.igem.org/Team:IISER_Berhampur/Results">Results</a>
 +
    </div>
 +
  </div>
 +
<div class="dropdown">
 +
    <button class="dropbtn">Team&#9660;</button>
 +
    <div class="dropdown-content">
 +
      <a href="https://2020.igem.org/Team:IISER_Berhampur/Team">Team</a>
 +
  <a href="https://2020.igem.org/Team:IISER_Berhampur/Collaborations">Collaborations</a>
 +
          <a href="https://2020.igem.org/Team:IISER_Berhampur/Attributions">Attributions</a>
 +
          <a href="https://2020.igem.org/Team:IISER_Berhampur/Inclusion">Inclusion</a>
 +
    </div>
 +
  </div>
 +
      <div class="dropdown">
 +
    <button class="dropbtn">Parts&#9660;</button>
 +
    <div class="dropdown-content">
 +
      <a href="https://2020.igem.org/Team:IISER_Berhampur/Part_Collection">Part Collection</a>
 +
  <a href="https://2020.igem.org/Team:IISER_Berhampur/Parts">Parts</a>
 +
          <a href="https://2020.igem.org/Team:IISER_Berhampur/Improve">Improvement</a>
 +
    </div>
 +
  </div>
 +
<a href="https://2020.igem.org/Team:IISER_Berhampur/Human_Practices">Human Practices</a>
 +
        <a href="https://2020.igem.org/Team:IISER_Berhampur/Safety">Safety</a>
 +
  <a href="javascript:void(0);" class="icon" onclick="myNavbarResponsive()">&#9776;</a>
 +
<a href="https://2020.igem.org/Team:IISER_Berhampur/Awards">Awards</a>
 +
  <div id="navright">
 +
            <a href="https://2020.igem.org/Team:IISER_Berhampur">IISER Berhampur</a>
 +
  </div>
 +
</div>
 +
 +
<script>
 +
function myNavbarResponsive() {
 +
  var x = document.getElementById("myNavbar");
 +
  if (x.className === "navbar") {
 +
    x.className += " responsive";
 +
  } else {
 +
    x.className = "navbar";
 +
  }
 +
}
 +
 +
</script>
 +
</body>
 
</html>
 
</html>

Revision as of 16:40, 7 October 2020

IISER-BPR IGEM