Template:CLSB-UK Styles.css

/* Hide & reset default stuff */ #home_logo, #sideMenu, #bars_item, #top_title, .patrollink,#mw-content-text > p:last-of-type, .mw-editsection, #toc, .mobile-open .content_wrapper { display: none; }

body { background-color: #383838; }

#content { width: 100%; padding: 0px; margin-top: -7px; margin-left: 0px; background: #fff; font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }

#globalWrapper { padding-bottom: 0; }

h1, h2, h3, h4, h5, h6 { line-height: normal; margin: 0; padding: 0.5em 0; border-bottom: 0px; font-family: inherit !important; }


#bodyContent h1, #bodyContent h2 { margin: 0; line-height: normal; padding-bottom: 0;

			font-weight: 800;
			font-size: 50px;

}


#bodyContent h1 {

			text-align: center;

}

  1. References { text-align: start; display:block }

#bodyContent ul { list-style-image: none !important; list-style-type: circle; }

#HQ_page p, #HQ_page a { font-family: inherit; text-align: inherit; }

#content #bodyContent a { padding-right: 0; background-image: none; }

/* Setting content wrapper scaling. Weird thing to make anchor links nice with fixed navbar */ .content_wrapper { margin: 15px auto; padding: 15px; }

@media (min-width: 576px) { .content_wrapper { width: 540px; } }

@media (min-width: 768px) { .content_wrapper { width: 720px; } }

@media (min-width: 992px) { .content_wrapper { width: 960px; } }

@media (min-width: 1200px) { .content_wrapper { width: 1140px; } }

.full_width {

           width: 100%;
       }

/* CTA Links */

  1. cta_links {
   text-align: center;
   margin-top: 30px;

}

  1. cta_links a {
   width: 30%;
   margin: 0 0 30px 0;
   display: inline-block;
   transition: all .2s ease;
   box-shadow: 0px 9px 0px #ad1457, 0px 9px 15px rgba(0,0,0,.4);
   background: #c2185b !important;
   position: relative;
   top: 3px;

}

  1. cta_links a:hover {
   box-shadow: 0px 12px 0px #ad1457, 0px 12px 18px rgba(0,0,0,.3);
   top: 0;

}

  1. cta_links a:active {
   box-shadow: 0px 3px 0px #ad1457, 0px 3px 6px rgba(0,0,0,.7);
   top: 6px;

}

  1. cta_links a:nth-child(3n+2) {
   margin: 0 4% 30px 4%;

}

  1. cta_links h3 {
   color: #fff;
   padding: 20px;
   margin: 0;

}

/* Image container */

       .image_container > svg, .image_container > img {
           width: 30%;
           position: relative;
           z-index: 1;
       }
       .image_container div {
           width: 70%;
       }
       .image_container > svg, .image_container > img, .image_container > div {
           float: left;
       }
       .image_container h2 {
           font-weight: 800;
           font-size: 50px;
           padding-bottom: 0;
       }

@media (max-width: 840px) {

  1. cta_links a {
   width: 40%;
   margin: 2% !important;

} .image_container svg, .image_container img, .image_container .image_holder {

           display: none !important;
       }
       .image_container div {
           width: 100% !important;
       }
       .image_container > div {
           float: none;
       }
       .image_container h2 {
           font-size: 30px;
           margin-top: 40px !important;
       }

ol.references {

           font-size: 12px;overflow:hidden;
       }
  1. bodyContent h2 {
			font-size: 35px;

} } /* Jumbotron */

       .jumbotron {

height: calc(100vh - 58px); background-position: center; background-size: cover; background-attachment: fixed; position: relative; } .jumbotron div { background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)); position: absolute; bottom: 0; width: 100%; text-align: center; } .jumbotron div h1, .jumbotron div h2 { color: #fff; text-shadow: rgba(0,0,0,0.6) 0 0.3vh 0.5vh } .jumbotron div h1 { font-size: 7em; } .jumbotron div h2 { font-size: 1.5em; } .jumbotron div svg { margin: 2em 0 3em 0; transition: all 0.5s ease; height: 3em; cursor: pointer; } .jumbotron div svg:hover { height: 3.5em; margin: 2em 0 3em 0; } .jumbotron div svg path { transition: stroke 0.5s ease; stroke: #ccc; } .jumbotron div svg:hover path { stroke: #fff; } /* Page content */

#HQ_page .content_wrapper p, .content_wrapper dl, .content_wrapper ul, .content_wrapper ol, .content_wrapper blockquote { font-size: 16px; font-weight: 300; }

ol.references { margin-top: 20px; font-size: 12px; font-weight: 300; }

.content_wrapper a { font-weight: 800; text-decoration: none; color: #3399ff; transition: color 0.2s ease; } .content_wrapper a:hover { color: #0D2640; } .reference a { color: inherit; font-weight: 300; }

.reference a:hover { color: #aaa; } .content_wrapper img, .content_wrapper svg { max-width: 100%; margin: 0 auto; } /* Tables */

.content_wrapper table { width: 100%; border: 1px solid #d3d3d3; border-collapse: collapse; }

.content_wrapper td { padding: 10px; vertical-align: text-top; border: 1px solid #d3d3d3; border-collapse: collapse; } /* table headers */

.content_wrapper th { padding: 10px; vertical-align: text-top; border: 1px solid #d3d3d3; background-color: #f2f2f2; border-collapse: collapse; }

.darker_background {

           background: #f7f7f7;
       }

/* Blockquotes */

blockquote { padding: 0.1em 25px; line-height: 1.4; position: relative; }

blockquote p:nth-child(2n) { font-style: italic; color: #666; }

blockquote:before { font-family: Georgia, serif; padding-left: 5px; content: "\201C"; font-size: 70px; position: absolute; left: -20px; top: -20px; color: #666; }

/* Montserrat (font) */ @font-face {

 font-family: 'Montserrat';
 font-style: normal;
 font-weight: 800;
 src: url('https://static.igem.org/mediawiki/2017/6/6e/T--CLSB-UK--font_800.eot'); 
 src: local('Montserrat ExtraBold'), local('Montserrat-ExtraBold'),
      url('https://static.igem.org/mediawiki/2017/6/6e/T--CLSB-UK--font_800.eot?#iefix') format('embedded-opentype'), 
      url('https://static.igem.org/mediawiki/2017/5/54/T--CLSB-UK--font_800.woff') format('woff'), 
      url('https://static.igem.org/mediawiki/2017/8/81/T--CLSB-UK--font_800.ttf') format('truetype'), 
      url('https://static.igem.org/mediawiki/2017/8/85/T--CLSB-UK--font_800.svg#Montserrat') format('svg'); 

} @font-face {

 font-family: 'Montserrat';
 font-style: normal;
 font-weight: 300;
 src: url('https://static.igem.org/mediawiki/2017/8/80/T--CLSB-UK--font_300.eot'); 
 src: local('Montserrat Light'), local('Montserrat-Light'),
      url('https://static.igem.org/mediawiki/2017/8/80/T--CLSB-UK--font_300.eot?#iefix') format('embedded-opentype'), 
      url('https://static.igem.org/mediawiki/2017/3/31/T--CLSB-UK--font_300.woff') format('woff'), 
      url('https://static.igem.org/mediawiki/2017/4/4b/T--CLSB-UK--font_300.ttf') format('truetype'), 
      url('https://static.igem.org/mediawiki/2017/7/7c/T--CLSB-UK--font_300.svg#Montserrat') format('svg'); 

}

       /* Footer styling */
       footer {
           background-color: #383838;
           padding-bottom: 25px;
           text-align: center;
           overflow: auto;
       }
       footer .content_wrapper ul {
           margin: 0;
       }
       footer .content_wrapper ul li {
           display: inline-block;
       }
       footer .content_wrapper .contact {
           margin-top: 30px; /* For mobile */
       }
       footer .content_wrapper .contact ul li {
           margin-left: 10px;
       }
       footer .sponsors h3 a, footer .sponsors h3 a:hover, .contact h3 {
           color: #fff;
       }
       footer .sponsors svg, footer .sponsors img {
           height: 75px;
           margin-right: 10px;
           vertical-align: top;
       }
       footer .contact svg {
           width: 45px;
           height: 45px;
       }
       footer .contact svg path, footer .sponsors svg path {
           transition: fill 0.2s ease;
       }
       footer .contact svg:hover path, footer .sponsors svg:hover path {
           fill: #aaa;
       }
       footer .sponsors img:hover {
           transition: filter 0.2s ease;
       }
       footer .sponsors img:hover {
           filter: brightness(66%);
       }
       @media (min-width: 992px) {
           footer .content_wrapper .sponsors {
               float: left;
               text-align: left;
           }
           footer .content_wrapper .contact {
               float: right;
               margin-top: 0;
               text-align: right;
           }
           #sponsorsmiddlesplit {
               display: none;
           }
       }
       /* Navbar styling */
       nav {
           position: fixed;
           width: 100%;
           height: 48px;
           top: 18px;
           background-color: #383838;
           z-index: 2;
           box-shadow: 0 0 4px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.28);
       }
       nav .content_wrapper {
           width: auto;
           margin: 0 auto;
           padding: 0 15px;
       }
       @keyframes strokeandfill {
           0% {
               fill: rgba(255,255,255,0);
               stroke-width: 5px;
           }
           40% {
               fill: rgba(255,255,255,0);
               stroke-width: 5px;
           }
           60% {
               stroke-dashoffset: 0;
           }
           100% {
               fill: #fff;
               stroke-width: 0px;
               stroke-dashoffset: 0;
           }
       }
       nav .content_wrapper svg, nav .content_wrapper h1 {
           display: inline-block;
           margin: 0 !important;
           padding: 4px !important;
       }
       nav .content_wrapper svg {
           width: 40px;
           height: 40px;
       }
       nav .content_wrapper h1 {
           font-size: 40px !important;
           line-height: 1 !important;
           color: #fff;
           font-weight: 300 !important;
           vertical-align: top;
       }
       nav .content_wrapper a {
           color: #aaa;
           text-decoration: none;
           font-weight: 300;
           transition: color 0.75s ease-in;
       }
       nav .content_wrapper a:hover {
           color: #fff;
           transition: color 0.2s ease-out;
       }
       nav .content_wrapper ul {
           list-style-type: none !important;
           list-style-image: none;
           padding: 0;
           margin: 0;
           float: right;
           display: none;
       }
       nav .content_wrapper ul.nav > li {
           display: inline-block;
       }
       nav .content_wrapper ul.nav li a {
           margin: 0;
           display: block;
           text-align: center;
           font-size: 14px;
           padding: 17px 8px !important;
           line-height: 1;
       }
       nav .content_wrapper ul.dropdown-content {
           display: none;
           position: absolute;
           background-color: #383838;
       }
       nav .content_wrapper ul.dropdown-content li a {
           padding: 10px 15px !important;
       }
       nav .content_wrapper ul.nav li.dropdown:hover .dropdown-content {
           display: block;
           box-shadow: 0 4px 4px rgba(0,0,0,.14), 4px 4px 4px rgba(0,0,0,.14), -4px 4px 4px rgba(0,0,0,.14);
       }
       /*
       Hamburger menu derived from works Antonija Simic:
       Copyright (c) 2017 by Antonija Simic (http://codepen.io/tonkec/pen/XXgdoo)
       Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
       The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       */
       nav .hamburger {
           cursor: pointer;
           display: inline-block;
           float: right;
           margin: 2px auto;
           transition: all .5s ease;
       }
       nav .hamburger .bar {
           display: block;
           height: 6px;
           width: 40px;
           background: #fff;
           margin: 6px auto;
           transition: all .5s ease;
           border-radius: 2.5px;
       }
       .mobile-open nav .hamburger .top {
           transform: translateY(12px) rotateZ(45deg);
       }
       .mobile-open nav .hamburger .bottom {
           transform: translateY(-12px) rotateZ(-45deg);
       }
       .mobile-open nav .hamburger .middle {
           width: 0;
       }
       /* End of hamburger menu */
       /* Deal with opening the menu */
       @media (max-width: 840px) {
           .mobile-open nav {
               position: absolute;
               height: auto;
               top: -41px;
               padding-bottom: 15px;
           }
           .mobile-open nav .content_wrapper, .mobile-open nav .content_wrapper ul {
               display: block;
               float: none;
               clear: both;
           }
           .mobile-open nav .content_wrapper a {
               color: #eee;
               text-decoration: none;
               font-weight: normal;
               transition: all 0.75s ease-in;
           }
           .mobile-open nav .content_wrapper ul.nav > li {
               border-top: 3px solid #ccc;
           }
           .mobile-open nav .content_wrapper ul li {
               display: list-item;
           }
           .mobile-open nav .content_wrapper ul.dropdown-content {
               position: initial;
               box-shadow: none !important;
           }
       }
       /* Move page down to make space for navbar */
       #mw-content-text {
           margin-top: 48px;
       }
       /* Responsive sizing */
       @media (min-width: 840px) {
       nav .content_wrapper h1, nav .hamburger {

display: none; }

           nav .content_wrapper ul {

display: inherit; }

           nav .content_wrapper ul.nav li.dropdown > a::after {
               display: inline-block;
               margin-left: 5px;
               content: '▴';
               transform: rotateX(0deg);
               transition: transform 0.25s ease;
           }
           nav .content_wrapper ul.nav li.dropdown:hover > a::after {
               transform: rotateX(180deg);
           }
       }

@media (min-width: 992px) { nav .content_wrapper h1 { display: block; } nav .content_wrapper { width: 960px; }

       nav .content_wrapper h1 { display: inline-block }

}

@media (min-width: 1200px) { nav .content_wrapper { width: 1140px; }

           nav .content_wrapper ul.nav li a {
               font-size: 15px;
               padding: 15.5px 15px !important;
           }

}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { footer .sponsors svg, footer .sponsors img {

               height: 75px;
               width: 75px;
           }
   #useBetterBrowser {display: block !important}
   #toehold_switch {display: none}

}