Line 76: | Line 76: | ||
/* FONTS END */ | /* FONTS END */ | ||
− | a | + | a { |
− | + | ||
color: unset; | color: unset; | ||
text-decoration: none; | text-decoration: none; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 165: | Line 160: | ||
padding-right: var(--desktop-spacing); | padding-right: var(--desktop-spacing); | ||
height: var(--navbar-height); | height: var(--navbar-height); | ||
+ | font-size: 20px; | ||
} | } | ||
Line 198: | Line 194: | ||
.navbar-brand { | .navbar-brand { | ||
font-weight: var(--text-bold-medium-weight); | font-weight: var(--text-bold-medium-weight); | ||
+ | font-size: 25px; | ||
} | } | ||
Line 415: | Line 412: | ||
.banner-overlay { | .banner-overlay { | ||
width: 100%; | width: 100%; | ||
− | height: | + | height: 630px; |
position: absolute; | position: absolute; | ||
top: 200px; | top: 200px; | ||
Line 453: | Line 450: | ||
.banner-overlay { | .banner-overlay { | ||
− | top: | + | top: 100px; |
+ | height: 430px; | ||
} | } | ||
Line 839: | Line 837: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
+ | font-size: 20px; | ||
} | } | ||
Line 877: | Line 876: | ||
} | } | ||
− | .footer-list-item:hover { | + | .footer-list span { |
+ | color: var(--text-light-inactive-color) !important; | ||
+ | } | ||
+ | |||
+ | .footer-list-item:hover, | ||
+ | .footer-list span:hover { | ||
color: var(--text-light-color) !important; | color: var(--text-light-color) !important; | ||
} | } | ||
Line 885: | Line 889: | ||
} | } | ||
− | .footer-list-item-active { | + | .footer-list-item-active, |
+ | .footer-list-item-active span { | ||
color: var(--text-light-color) !important; | color: var(--text-light-color) !important; | ||
} | } | ||
Line 953: | Line 958: | ||
color: var(--text-light-color) !important; | color: var(--text-light-color) !important; | ||
margin: 5px; | margin: 5px; | ||
+ | } | ||
+ | |||
+ | .contact span { | ||
+ | color: var(--text-light-color) !important; | ||
} | } | ||
Revision as of 21:51, 18 October 2020
- {
font-family: "Montserrat", sans-serif !important; /* font-size: 20px; */
}
html, body {
overflow-x: hidden;
}
div, p, h1, h2, h3, h4, h5, h6, li {
text-decoration: none; padding: 0; margin: 0; font-weight: var(--text-normal-weight); /* color: var(--text-dark-color); */
}
/* FONTS */ @font-face {
font-family: "Montserrat"; font-style: normal; font-weight: 300; src: local("Montserrat Light"), local("Montserrat-Light"), url(https://static.igem.org/mediawiki/2020/3/36/T--IIT_Roorkee--fonts--Montserrat--Montserrat-Light.ttf) format("truetype"); font-display: swap;
} @font-face {
font-family: "Montserrat"; font-style: normal; font-weight: 400; src: local("Montserrat Regular"), local("Montserrat-Regular"), url(https://static.igem.org/mediawiki/2020/0/0c/T--IIT_Roorkee--fonts--Montserrat--Montserrat-Regular.ttf) format("truetype"); font-display: swap;
} @font-face {
font-family: "Montserrat"; font-style: normal; font-weight: 500; src: local("Montserrat Medium"), local("Montserrat-Medium"), url(https://static.igem.org/mediawiki/2020/6/66/T--IIT_Roorkee--fonts--Montserrat--Montserrat-Medium.ttf) format("truetype"); font-display: swap;
} @font-face {
font-family: "Montserrat"; font-style: normal; font-weight: 600; src: local("Montserrat SemiBold"), local("Montserrat-SemiBold"), url(https://static.igem.org/mediawiki/2020/7/73/T--IIT_Roorkee--fonts--Montserrat--Montserrat-SemiBold.ttf) format("truetype"); font-display: swap;
} @font-face {
font-family: "Montserrat"; font-style: normal; font-weight: 700; src: local("Montserrat Bold"), local("Montserrat-Bold"), url(https://static.igem.org/mediawiki/2020/7/79/T--IIT_Roorkee--fonts--Montserrat--Montserrat-Bold.ttf) format("truetype"); font-display: swap;
} @font-face {
font-family: "Montserrat"; font-style: normal; font-weight: 800; src: local("Montserrat Bold"), local("Montserrat-Bold"), url(https://static.igem.org/mediawiki/2020/c/c9/T--IIT_Roorkee--fonts--Montserrat--Montserrat-ExtraBold.ttf) format("truetype"); font-display: swap;
}
/* FONTS END */ a {
color: unset; text-decoration: none;
}
a:hover {
text-decoration: none; color: unset;
}
html {
scroll-behavior: smooth;
}
/* LAYOUT */
- root {
--main-dark-color: #272727; --main-light-color: #ffffff; --main-green-color: #5bbd70; --main-dark-green-color: #2c8f42; --main-blue-color: #7bb9fa; --main-darker-blue-color: #397bcb; --main-even-darker-blue-color: #2966b1;
--main-top-spacing: 80px; --desktop-spacing: 7.5vw; --mobile-spacing: 10px;
--text-light-color: #ffffff; --text-light-inactive-color: #ffffff81; --text-dark-color: #010104; --text-dark-inactive-color: #27272765;
--text-hover-weight: 500; --text-active-weight: 700; --text-bold-medium-weight: 600; --text-normal-weight: 400;
--border-radius-medium: 4px; --border-radius-rounder: 20px;
--tab-underline-color: #7bb9fa; --tab-underline-size: 3px;
--transition-time: 0.1s; --transition-time-2: 0.3s;
--sidebar-width: 250px; --middle-white-space: 50px;
--fab-size: 80px; --fab-size-mobile: 56px; --fab-bottom: 30px; --fab-right: 30px;
--fab-progress-bottom: 30px; --fab-progress-right: 30px;
--navbar-overlay-1: 60px; --navbar-overlay-2: 200px;
--navbar-height: 86px; --navbar-top-bottom-padding: 20px; --navbar-height-mobile: 80px; --navbar-top-bottom-padding-mobile: 15px;
}
button:focus {
outline: none;
} /* LAYOUT END */
/* COLORS */ .bg-dark {
background-color: var(--main-dark-color) !important;
} /* COLORS END */
/* NAVBAR */ nav.navbar {
padding: var(--navbar-top-bottom-padding); padding-left: var(--desktop-spacing); padding-right: var(--desktop-spacing); height: var(--navbar-height); font-size: 20px;
}
.navbar-overlay-1 {
position: absolute; top: 0; width: 100%; height: var(--navbar-overlay-1); background-color: #000000;
}
.navbar-overlay-2 {
position: absolute; top: calc(var(--navbar-overlay-1)); width: 100%; height: var(--navbar-overlay-2); background: linear-gradient(to top, #ffffff00, #000000);
}
.navbar-dark .navbar-toggler {
border: none; color: var(--main-light-color);
}
.wiki-navbar {
/* background: linear-gradient(to top, #ffffff00, #000000); */
}
.navbar-dark-opaque {
background: var(--main-dark-color);
}
.navbar-brand {
font-weight: var(--text-bold-medium-weight); font-size: 25px;
}
.nav-link {
color: var(--text-light-inactive-color); font-weight: var(--text-bold-medium-weight);
}
.nav-link-active {
color: var(--text-light-color) !important;
}
.dropdown-toggle::after {
display: none;
}
.dropdown-menu {
background-color: var(--main-dark-color); border: none; border-radius: 4px; box-shadow: 0px 4px 13px rgba(0, 0, 0, 0.25);
}
.dropdown-item {
color: var(--text-light-inactive-color) !important; font-weight: var(--text-bold-medium-weight); padding: 15px 30px;
}
.dropdown-item:focus, .dropdown-item:hover {
color: var(--text-light-color) !important; text-decoration: none; background-color: var(--main-dark-color);
}
.dropdown-item:hover::after {
content: ""; display: block; width: 60%; margin-top: 3px; border-radius: 10px; /* transform: translateX(0%); */ height: var(--tab-underline-size, 2px); background-color: var(--tab-underline-color, currentColor); opacity: 1;
}
.dropdown-item-active {
color: var(--text-light-color) !important;
}
.dropdown-item::after {
content: ""; display: block; width: 0%; transition: 0.2s ease-in; margin-top: 3px; border-radius: 10px; transform: translateX(0%); height: var(--tab-underline-size, 2px); background-color: var(--tab-underline-color, currentColor); transition: 0.1s ease-in;
}
.dropdown-item-active::after {
opacity: 1;
}
.header-progress {
height: 5px; width: 100%; position: fixed; top: var(--navbar-height); z-index: 3; box-shadow: 0px 4px 13px rgba(0, 0, 0, 0.25); display: none; background-color: var(--main-dark-color);
}
.header-progress-indicator {
height: 5px; width: 60%; background-color: var(--main-blue-color);
}
@media screen and (max-width: 768px) {
nav.navbar { padding: var(--navbar-top-bottom-mobile-padding); height: var(--navbar-height-mobile); }
.header-progress { top: 80px; top: var(--navbar-height-mobile); }
} /* NAVBAR END */
/* TABS */ .tab {
--animation-time: 200ms;
position: relative; overflow: hidden;
}
.tab::after {
content: ""; display: block; bottom: 0; left: 10px; width: 0%; border-radius: 10px; height: var(--tab-underline-size); position: absolute; background-color: var(--tab-underline-color, currentColor); transition: 0.1s ease;
}
.tab:hover::after {
width: 60%; opacity: 1;
}
.tabs-wrapper {
display: flex; justify-content: center; border-radius: 6px 6px 0 0;
}
.tab {
color: inherit; padding: 10px; text-decoration: none; white-space: nowrap; line-height: 1;
}
.nav-link-active::after {
content: ""; display: block; bottom: 0; left: 10px; width: 60%; border-radius: 10px; transform: translateX(0%); height: var(--tab-underline-size, 2px); position: absolute; background-color: var(--tab-underline-color, currentColor); opacity: 1 !important;
}
.navbar .nav-item .dropdown-menu {
display: none;
}
.navbar .nav-item:hover .dropdown-menu {
display: block;
}
.navbar .nav-item .dropdown-menu {
margin-top: 0;
}
@media screen and (max-width: 768px) {
.nav-item .tab::after { left: 0; padding-right: 0; }
}
/* TABS END */
/* MAIN */ main.container {
height: auto; margin: 0 var(--desktop-spacing); margin-top: var(--main-top-spacing); padding: 0; display: flex; flex-direction: column; max-width: calc(100% - 2 * var(--desktop-spacing)) !important; overflow: hidden;
}
main.wiki {
width: 100%; position: relative;
}
@media screen and (max-width: 768px) {
main.container { margin: 0 var(--mobile-spacing); max-width: calc(100% - 2 * var(--mobile-spacing)) !important; }
} /* MAIN END */
/* BANNER */ .banner {
width: 100%; margin-top: 0; padding: 0 0; height: 800px; background-image: url(); background-position: center; background-repeat: no-repeat; background-size: cover; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 60px var(--desktop-spacing);
}
.banner-overlay {
width: 100%; height: 630px; position: absolute; top: 200px; left: 0; background: linear-gradient(to bottom, #ffffff00, #000000);
}
.banner-h1 {
font-size: 70px; font-weight: 700; color: var(--main-light-color); margin-top: 20px; z-index: 2;
}
.banner-h2 {
font-size: 40px; font-weight: 500; color: var(--main-light-color); margin-top: 50px; z-index: 2;
}
.banner-p {
font-size: 20px; color: var(--main-light-color); margin-top: 50px; font-weight: 500; z-index: 2;
}
@media screen and (max-width: 768px) {
.banner { padding: 20px var(--mobile-spacing); height: 500px; }
.banner-overlay { top: 100px; height: 430px; }
.banner-h1 { font-size: 40px; }
.banner-h2 { font-size: 30px; margin-top: 20px; }
.banner-p { font-size: 15px; margin-top: 20px; }
} /* BANNER END */
/* SIDE NAV */ .side-nav {
font-size: 20px; width: var(--sidebar-width); float: left; background-color: var(--main-light-color);
}
@media screen and (min-width: 768px) {
.side-nav-fixed { position: fixed; top: 160px; }
.side-nav-absolute { position: absolute; }
}
@media screen and (max-width: 768px) {
.side-nav { position: relative; top: unset; z-index: 2; margin: 30px 0; }
}
.page-title {
color: var(--main-green-color); text-transform: uppercase; font-size: 25px; font-weight: var(--text-active-weight); margin: 0 0 30px 0;
}
.side-nav-menu {
display: flex; flex-direction: column;
}
.side-nav-menu-item {
color: var(--text-dark-inactive-color); margin: 10px 0; width: min-content; white-space: nowrap; font-weight: var(--text-bold-medium-weight); transition: var(--transition-time) ease;
}
.side-nav-menu-item-active {
color: #6761d6 !important; font-weight: var(--text-active-weight);
}
.side-nav-menu-item:hover {
text-transform: none; text-decoration: none;
}
.side-nav-menu-item:not(.side-nav-menu-item-active):hover {
color: var(--text-dark-color);
}
.side-nav-menu-item::before {
content: ""; border: 2px solid #7bb8fa46; background-color: #7bb9fa46; height: 50%; width: 2px; transform: translateY(-1rem); margin-right: 10px; opacity: 0; transition: var(--transition-time) ease-in;
}
.side-nav-menu-item-active::before {
border: 2px solid var(--main-blue-color); background-color: var(--main-blue-color); opacity: 1;
}
.side-nav-menu-item:hover::before {
opacity: 1;
}
/* SIDE NAV END */
/* WIKI CONTENT */ .wiki-content {
width: calc(100% - var(--sidebar-width) - var(--middle-white-space)); float: right; margin-left: calc(var(--middle-white-space) + var(--sidebar-width)); position: relative;
}
@media screen and (max-width: 768px) {
.wiki-content { width: 100%; margin: 0px; }
} /* WIKI CONTENT END */
/* WIKI COMPONENTS */ .wiki-h {
color: var(--main-darker-blue-color); font-weight: 600; margin: 15px 0;
}
.wiki-h1 {
font-size: 60px; margin-top: -100px; padding-top: 105px;
}
.wiki-h1:first-of-type {
margin-top: -100px; padding-top: 100px;
}
.wiki-h2 {
font-size: 40px;
}
.wiki-h3 {
font-size: 30px;
}
.wiki-h4 {
font-size: 25px;
}
.wiki-p {
font-size: 20px; margin: 10px 0; /* font-weight: 500; */
}
.wiki-bold {
font-size: 20px; font-weight: 700;
}
.wiki-a {
color: var(--main-darker-blue-color); font-weight: 700; text-decoration: none;
}
.wiki-a:hover {
text-decoration: underline; color: var(--main-darker-blue-color);
}
.wiki-link-button {
margin: 15px auto; padding: 15px 25px; background-color: var(--main-darker-blue-color); border-radius: 10px; color: var(--main-light-color) !important; font-weight: var(--text-active-weight); text-align: center; transition: all 0.1s ease; display: block; white-space: nowrap; width: min-content; box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.2);
}
.wiki-link-button:hover {
background-color: var(--main-even-darker-blue-color); box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.322); color: var(--text-light-color);
}
.wiki-ol li, .wiki-ul li {
font-size: 20px !important;
}
.wiki-ul {
font-size: 20px; list-style: none; margin: 40px 10px; margin-left: 40px;
}
.wiki-ul li::before {
content: "\2022"; color: var(--main-green-color); font-weight: 800; display: inline-block; width: 1em; font-size: 30px; margin-left: -1em;
}
.wiki-ol {
margin: 40px 10px; counter-reset: item;
}
.wiki-ol li {
display: block; margin-bottom: 15px;
}
.wiki-ol li:before {
content: counter(item) ". "; counter-increment: item; color: var(--main-green-color); font-weight: 700; margin-right: 15px;
}
.wiki-ol .wiki-ol, .wiki-ul .wiki-ul, .wiki-ul .wiki-ol, .wiki-ol .wiki-ul {
margin: 15px 0;
}
.wiki-table { }
.wiki-graphic {
margin: 40px auto; display: flex; flex-direction: column; align-items: center;
}
.wiki-graphic img {
max-width: 80%; display: block; border-radius: 10px; margin: 0;
}
.wiki-graphic-reference {
font-size: 16px; margin: 5px 0; font-weight: var(--text-bold-medium-weight);
}
.table {
margin: 40px auto;
}
.table .thead-dark th {
background-color: var(--main-dark-color);
} /* WIKI COMPONENTS END */
/* FAB */ .fab-border {
width: calc(var(--fab-size)); height: calc(var(--fab-size)); background-color: var(--main-dark-color); border-radius: 100px; box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; position: fixed; bottom: var(--fab-bottom); right: var(--fab-right); z-index: 10; transition: all 0.1s ease;
}
.fab {
position: fixed; bottom: calc(var(--fab-bottom) + 7px); right: calc(var(--fab-right) + 7px); height: calc(var(--fab-size) - 15px); width: calc(var(--fab-size) - 15px); border-radius: 100px; background-color: var(--main-dark-color); display: flex; align-items: center; justify-content: center; z-index: 15;
}
.fab:hover {
cursor: pointer; opacity: 0.9;
}
.fab-next-section {
width: 50%;
}
.fab-top-section {
width: 35%;
}
.fab-top-section {
display: none;
}
.circular-progress-container {
position: fixed; bottom: var(--fab-progress-bottom); right: var(--fab-progress-right); height: calc(var(--fab-size)); width: calc(var(--fab-size)); z-index: 14; border-radius: 100%;
}
.circular-progress-container svg {
transform: rotate(-90deg);
}
.circular-progress-container svg circle {
stroke: rgba(0, 0, 0, 0.1); stroke-width: 4px; fill: transparent; position: fixed; bottom: var(--fab-progress-bottom); right: var(--fab-progress-right); height: calc(var(--fab-size) * 3); width: calc(var(--fab-size) * 3);
}
.circular-progress-container .progress-pie {
stroke: var(--main-green-color);
}
/* @media screen and (max-width: 768px) {
.fab-border { width: calc(var(--fab-size-mobile) + 8px); height: calc(var(--fab-size-mobile) + 8px); }
.fab-progress-indicator { width: calc(var(--fab-size-mobile) + 8px); height: calc(var(--fab-size-mobile) + 8px); }
.fab { height: var(--fab-size-mobile); width: var(--fab-size-mobile); bottom: calc(var(--fab-bottom) + 4px); right: calc(var(--fab-right) + 4px); }
.circular-progress-container { bottom: calc(var(--fab-progress-bottom) - 10px); right: calc(var(--fab-progress-right) - 10px); }
} */ /* FAB ENDS */
/* FOOTER */ .footer {
width: 100%; background: var(--main-dark-color); color: var(--main-light-color); clear: both; padding: 45px var(--desktop-spacing); display: flex; flex-direction: column; font-size: 20px;
}
.footer-brand a {
color: var(--main-blue-color); font-weight: 600; font-size: 25px;
}
.footer-lists {
font-weight: var(--text-bold-medium-weight); display: flex; flex-direction: row; justify-content: space-between; margin-top: 20px;
}
.footer-list {
display: flex; flex-direction: column;
}
.footer-list-title {
text-transform: uppercase; color: var(--main-green-color) !important; font-size: 20px; padding: 30px 0; font-weight: var(--text-bold-medium-weight);
}
.footer-list-item {
color: var(--text-light-inactive-color) !important; padding: 0; padding-bottom: 10px; margin: 15px 0; width: min-content; font-weight: var(--text-normal-weight);
}
.footer-list span {
color: var(--text-light-inactive-color) !important;
}
.footer-list-item:hover, .footer-list span:hover {
color: var(--text-light-color) !important;
}
.footer-list-item::after {
left: 0;
}
.footer-list-item-active, .footer-list-item-active span {
color: var(--text-light-color) !important;
}
.footer-list-item-active::after {
width: 60%;
}
.footer-section-heading {
font-weight: var(--text-bold-medium-weight) !important; margin: 0 0 20px 0;
}
.footer-info {
display: flex; justify-content: space-between; margin-top: 60px;
}
.footer-info-address {
color: var(--main-light-color) !important; max-width: 400px; display: flex; flex-direction: column; justify-content: space-between;
}
.footer-james-thomason {
width: 400px; padding-top: 40px;
}
.footer-james-thomason-mobile {
width: 90%; margin: 0 auto; display: none; padding-top: 20px;
}
.footer-info-socials {
text-align: right;
}
.socials {
margin: 30px 0;
}
.social {
margin: 20px;
}
.social img {
width: 30px;
}
.social img:hover {
opacity: 0.8;
}
.contacts {
display: flex; flex-direction: column; margin: 30px 0;
}
.contact {
color: var(--text-light-color) !important; margin: 5px;
}
.contact span {
color: var(--text-light-color) !important;
}
@media screen and (max-width: 768px) {
.footer { padding: 30px var(--mobile-spacing); text-align: center; }
.footer-lists { display: none; }
.footer-info { flex-direction: column; margin-top: 30px; }
.footer-info-address { max-width: unset; }
.footer-james-thomason { width: 90%; margin: 0 auto; display: none; }
.footer-james-thomason-mobile { display: inline-block; }
.footer-info-socials { text-align: center; margin-top: 20px; }
} /* FOOTER END */