Line 1: | Line 1: | ||
+ | <!DOCTYPE html> | ||
+ | |||
<html> | <html> | ||
<head> | <head> | ||
<title>Tongji Software | Pathlab</title> | <title>Tongji Software | Pathlab</title> | ||
− | + | <style> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <style | + | |
#sideMenu, | #sideMenu, | ||
#top_title { | #top_title { | ||
Line 29: | Line 17: | ||
margin-left: -0.4vw; | margin-left: -0.4vw; | ||
} | } | ||
− | + | /*content style*/ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
html, | html, | ||
Line 123: | Line 104: | ||
border: 0; | border: 0; | ||
font-size: 100%; | font-size: 100%; | ||
− | + | font: inherit; | |
vertical-align: baseline; | vertical-align: baseline; | ||
} | } | ||
Line 169: | Line 150: | ||
border-spacing: 0; | border-spacing: 0; | ||
} | } | ||
− | /* -------------------------------- | + | /* -------------------------------- Primary style -------------------------------- */ |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
*, | *, | ||
Line 187: | Line 164: | ||
font-family: "Source Sans Pro", sans-serif; | font-family: "Source Sans Pro", sans-serif; | ||
color: rgba(2, 23, 37, 0.7); | color: rgba(2, 23, 37, 0.7); | ||
+ | background-color: black; | ||
overflow: hidden; | overflow: hidden; | ||
+ | /* 溢出隐藏 */ | ||
/*background: url("../img/cover.jpg") center no-repeat;*/ | /*background: url("../img/cover.jpg") center no-repeat;*/ | ||
-webkit-background-size: cover; | -webkit-background-size: cover; | ||
background-size: cover; | background-size: cover; | ||
− | |||
− | |||
} | } | ||
body.overflow-hidden { | body.overflow-hidden { | ||
− | /* when primary navigation is visible, the content in the background won't scroll */ | + | /* when primary |
+ | navigation is visible, the content in the background won't scroll */ | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
Line 204: | Line 182: | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
− | + | /* -------------------------------- Modules - reusable parts of our design -------------------------------- */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | /* -------------------------------- | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
.cd-container { | .cd-container { | ||
Line 231: | Line 196: | ||
clear: both; | clear: both; | ||
} | } | ||
− | /* -------------------------------- | + | /* -------------------------------- Main components -------------------------------- */ |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
html, | html, | ||
body { | body { | ||
height: 100%; | height: 100%; | ||
− | |||
} | } | ||
.cd-header { | .cd-header { | ||
− | position: | + | position: absolute; |
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
Line 280: | Line 240: | ||
backface-visibility: hidden; | backface-visibility: hidden; | ||
} | } | ||
− | + | .cd-header.is-fixed { | |
− | /* when the user scrolls down, we hide the header right above the viewport */ | + | /* when |
− | + | the user scrolls down, we hide the header right above the viewport */ | |
− | + | position: fixed; | |
− | + | top: -80px; | |
− | + | background-color: rgba(2, 23, 37, 0.96); | |
− | + | -webkit-transition: -webkit-transform 0.3s; | |
− | + | -moz-transition: -moz-transform 0.3s; | |
+ | transition: transform 0.3s; | ||
+ | } | ||
+ | .cd-header.is-visible { | ||
+ | /* if the user changes the scrolling direction, we show the header */ | ||
+ | -webkit-transform: translate3d(0, 100%, 0); | ||
+ | -moz-transform: translate3d(0, 100%, 0); | ||
+ | -ms-transform: translate3d(0, 100%, 0); | ||
+ | -o-transform: translate3d(0, 100%, 0); | ||
+ | transform: translate3d(0, 100%, 0); | ||
+ | } | ||
+ | .cd-header.menu-is-open { | ||
+ | /* add a background color to the header when the navigation is open */ | ||
+ | /*菜单打开后最上边那条横杠的颜色*/ | ||
+ | background-color: rgba(2, 23, 37, 0); | ||
+ | } | ||
} | } | ||
− | + | .cd-logo { | |
− | + | display: block; | |
− | + | position: absolute; | |
− | + | top: 50%; | |
− | + | bottom: auto; | |
− | + | -webkit-transform: translateY(-50%); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
-moz-transform: translateY(-50%); | -moz-transform: translateY(-50%); | ||
-ms-transform: translateY(-50%); | -ms-transform: translateY(-50%); | ||
-o-transform: translateY(-50%); | -o-transform: translateY(-50%); | ||
− | transform: translateY(-50%); | + | transform: translateY(-50%); |
+ | left: .875em; | ||
+ | } | ||
− | + | .cd-logo img { | |
− | + | display: block; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | ||
− | + | @media only screen and (min-width: 768px) { | |
− | + | .cd-logo { | |
− | + | left: 2.6em; | |
− | + | } | |
− | + | } | |
+ | |||
+ | .cd-secondary-nav { | ||
+ | position: absolute; | ||
+ | top: 50%; | ||
+ | bottom: auto; | ||
+ | -webkit-transform: translateY(-50%); | ||
-moz-transform: translateY(-50%); | -moz-transform: translateY(-50%); | ||
-ms-transform: translateY(-50%); | -ms-transform: translateY(-50%); | ||
-o-transform: translateY(-50%); | -o-transform: translateY(-50%); | ||
− | transform: translateY(-50%);*/ | + | transform: translateY(-50%); |
+ | right: 10em; | ||
+ | /* hidden on small devices */ | ||
+ | display: none; | ||
+ | } | ||
− | + | .cd-secondary-nav li { | |
− | + | display: inline-block; | |
+ | margin-left: 2.2em; | ||
+ | } | ||
− | + | .cd-secondary-nav a { | |
− | + | display: inline-block; | |
− | + | color: white; | |
− | + | text-transform: uppercase; | |
− | + | font-weight: 700; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | @media only screen and (min-width: 768px) { | |
− | + | .cd-secondary-nav { | |
− | + | display: block; | |
− | + | } | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | .cd-primary-nav-trigger { | |
− | + | position: absolute; | |
− | + | right: 0; | |
− | + | top: 0; | |
+ | height: 100%; | ||
+ | width: 50px; | ||
+ | /*响应缩进后三条杠的颜色*/ | ||
+ | background-color: rgba(2, 23, 37, 0); | ||
+ | } | ||
− | display: inline-block; | + | .cd-primary-nav-trigger .cd-menu-text { |
− | + | position: absolute; | |
− | + | float: right; | |
− | + | right: 60px; | |
− | + | color: white; | |
− | + | text-transform: uppercase; | |
− | + | font-family: "Cambria"; | |
+ | font-size: 18px; | ||
+ | /*font-weight: 50;*/ | ||
+ | /* hide the text on small devices */ | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .cd-primary-nav-trigger .cd-menu-icon { | ||
+ | /* this span is the central line of the menu icon */ | ||
+ | display: inline-block; | ||
+ | position: absolute; | ||
+ | left: 50%; | ||
+ | top: 50%; | ||
+ | bottom: auto; | ||
+ | right: auto; | ||
+ | -webkit-transform: translateX(-50%) translateY(-50%); | ||
-moz-transform: translateX(-50%) translateY(-50%); | -moz-transform: translateX(-50%) translateY(-50%); | ||
-ms-transform: translateX(-50%) translateY(-50%); | -ms-transform: translateX(-50%) translateY(-50%); | ||
-o-transform: translateX(-50%) translateY(-50%); | -o-transform: translateX(-50%) translateY(-50%); | ||
− | transform: translateX(-50%) translateY(-50%); */ | + | transform: translateX(-50%) translateY(-50%); |
+ | width: 28px; | ||
+ | height: 2px; | ||
+ | background-color: white; | ||
+ | -webkit-transition: background-color 0.3s; | ||
+ | -moz-transition: background-color 0.3s; | ||
+ | transition: background-color 0.3s; | ||
+ | /* these are the upper and lower lines in the menu icon */ | ||
+ | } | ||
− | + | .cd-primary-nav-trigger .cd-menu-icon::before, | |
− | + | .cd-primary-nav-trigger .cd-menu-icon:after { | |
− | + | content: ''; | |
− | + | width: 100%; | |
− | + | height: 100%; | |
− | + | position: absolute; | |
− | + | background-color: white; | |
− | + | right: 0; | |
− | + | -webkit-transition: -webkit-transform .3s, top .3s, background-color 0s; | |
− | + | -moz-transition: -moz-transform .3s, top .3s, background-color 0s; | |
− | + | transition: transform .3s, top .3s, background-color 0s; | |
− | + | } | |
− | + | ||
− | + | .cd-primary-nav-trigger .cd-menu-icon::before { | |
− | + | top: -5px; | |
− | + | } | |
− | + | ||
− | + | .cd-primary-nav-trigger .cd-menu-icon::after { | |
− | + | top: 5px; | |
− | + | } | |
− | + | ||
− | + | .cd-primary-nav-trigger .cd-menu-icon.is-clicked { | |
− | + | background-color: rgba(255, 255, 255, 0); | |
− | + | } | |
− | + | ||
− | + | .cd-primary-nav-trigger .cd-menu-icon.is-clicked::before, | |
− | + | .cd-primary-nav-trigger .cd-menu-icon.is-clicked::after { | |
− | + | background-color: white; | |
− | + | } | |
− | + | ||
− | + | .cd-primary-nav-trigger .cd-menu-icon.is-clicked::before { | |
− | + | top: 0; | |
− | + | -webkit-transform: rotate(135deg); | |
− | + | -moz-transform: rotate(135deg); | |
− | + | -ms-transform: rotate(135deg); | |
− | + | -o-transform: rotate(135deg); | |
− | + | transform: rotate(135deg); | |
− | + | } | |
− | + | ||
− | + | .cd-primary-nav-trigger .cd-menu-icon.is-clicked::after { | |
− | + | top: 0; | |
− | + | -webkit-transform: rotate(225deg); | |
− | + | -moz-transform: rotate(225deg); | |
− | + | -ms-transform: rotate(225deg); | |
− | + | -o-transform: rotate(225deg); | |
− | + | transform: rotate(225deg); | |
− | + | } | |
− | + | ||
− | + | @media only screen and (min-width: 768px) { | |
− | + | .cd-primary-nav-trigger { | |
− | + | width: 100px; | |
− | + | padding-left: 1em; | |
− | + | background-color: transparent; | |
− | + | height: 30px; | |
− | + | line-height: 30px; | |
− | + | /*菜单栏整体位置*/ | |
− | + | left: 110px; | |
− | + | top: 200%; | |
− | + | bottom: auto; | |
− | + | -webkit-transform: translateY(-50%); | |
− | + | ||
-moz-transform: translateY(-50%); | -moz-transform: translateY(-50%); | ||
-ms-transform: translateY(-50%); | -ms-transform: translateY(-50%); | ||
-o-transform: translateY(-50%); | -o-transform: translateY(-50%); | ||
− | transform: translateY(-50%); | + | transform: translateY(-50%); |
+ | } | ||
+ | .cd-primary-nav-trigger .cd-menu-text { | ||
+ | display: inline-block; | ||
+ | } | ||
+ | .cd-primary-nav-trigger .cd-menu-icon { | ||
+ | left: auto; | ||
+ | right: 1em; | ||
+ | -webkit-transform: translateX(0) translateY(-50%); | ||
+ | -moz-transform: translateX(0) translateY(-50%); | ||
+ | -ms-transform: translateX(0) translateY(-50%); | ||
+ | -o-transform: translateX(0) translateY(-50%); | ||
+ | transform: translateX(0) translateY(-50%); | ||
+ | } | ||
} | } | ||
− | .cd-primary-nav- | + | .cd-primary-nav { |
+ | /* by default it's hidden - on top of the viewport */ | ||
+ | position: fixed; | ||
+ | left: 0; | ||
+ | top: 0; | ||
+ | height: 100%; | ||
+ | width: 100%; | ||
+ | font-family: "Cambria"; | ||
+ | /*菜单下来后的背景色*/ | ||
+ | /*background: rgba(2, 23, 37, 0.8);*/ | ||
+ | background: rgba(0, 0, 0, 0.7); | ||
+ | z-index: 2; | ||
+ | text-align: center; | ||
+ | padding: 50px 0; | ||
+ | -webkit-backface-visibility: hidden; | ||
+ | backface-visibility: hidden; | ||
+ | overflow: auto; | ||
+ | /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */ | ||
+ | -webkit-overflow-scrolling: touch; | ||
+ | -webkit-transform: translateY(-100%); | ||
+ | -moz-transform: translateY(-100%); | ||
+ | -ms-transform: translateY(-100%); | ||
+ | -o-transform: translateY(-100%); | ||
+ | transform: translateY(-100%); | ||
+ | -webkit-transition-property: -webkit-transform; | ||
+ | -moz-transition-property: -moz-transform; | ||
+ | transition-property: transform; | ||
+ | -webkit-transition-duration: 0.4s; | ||
+ | -moz-transition-duration: 0.4s; | ||
+ | transition-duration: 0.4s; | ||
+ | } | ||
+ | |||
+ | .cd-primary-nav li { | ||
+ | font-size: 22px; | ||
+ | font-size: 1.375rem; | ||
+ | font-weight: 300; | ||
+ | -webkit-font-smoothing: antialiased; | ||
+ | -moz-osx-font-smoothing: grayscale; | ||
+ | margin: .2em 0; | ||
+ | text-transform: capitalize; | ||
+ | /*text-transform: uppercase;*/ | ||
+ | } | ||
+ | |||
+ | .cd-primary-nav a { | ||
display: inline-block; | display: inline-block; | ||
+ | padding: .4em 1em; | ||
+ | border-radius: 0.25em; | ||
+ | -webkit-transition: background 0.2s; | ||
+ | -moz-transition: background 0.2s; | ||
+ | transition: background 0.2s, color 0.2s; | ||
} | } | ||
− | .cd-primary-nav | + | .no-touch .cd-primary-nav a:hover { |
− | + | background-color: white; | |
− | + | color: black; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | |||
− | |||
− | |||
− | color: | + | .cd-primary-nav .cd-label { |
− | + | color: rgba(200, 40, 255, 1); | |
− | + | /*color: rgba(142,255,255,1);*/ | |
− | + | text-transform: uppercase; | |
− | + | font-weight: 700; | |
− | + | font-size: 14px; | |
− | + | font-size: 0.875rem; | |
− | + | margin: 2.4em 0 .8em; | |
+ | } | ||
− | + | .cd-primary-nav .cd-social { | |
− | + | display: inline-block; | |
− | + | margin: 0 .4em; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | - | + | .cd-primary-nav .cd-social a { |
− | + | width: 44px; | |
− | + | height: 44px; | |
− | + | padding: 0; | |
− | + | background-image: url("../img/cd-socials.svg"); | |
− | + | background-repeat: no-repeat; | |
− | + | /* image replacement */ | |
− | + | overflow: hidden; | |
− | + | text-indent: 100%; | |
− | + | white-space: nowrap; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | .cd-primary-nav .cd-facebook a { | |
− | + | background-position: 0 0; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | .cd-primary-nav .cd-instagram a { | |
− | + | background-position: -44px 0; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | ||
− | + | .cd-primary-nav .cd-dribbble a { | |
− | .cd-primary-nav | + | background-position: -88px 0; |
− | + | ||
− | + | ||
} | } | ||
− | .cd-primary-nav .cd- | + | .cd-primary-nav .cd-twitter a { |
− | + | background-position: -132px 0; | |
− | + | ||
} | } | ||
− | + | ||
− | + | .cd-primary-nav.is-visible { | |
− | .cd- | + | -webkit-transform: translateY(0); |
− | + | -moz-transform: translateY(0); | |
− | + | -ms-transform: translateY(0); | |
+ | -o-transform: translateY(0); | ||
+ | transform: translateY(0); | ||
} | } | ||
− | + | ||
− | + | @media only screen and (min-width: 768px) { | |
+ | .cd-primary-nav { | ||
+ | padding: 80px 0; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | @media only screen and (min-width: 1170px) { | ||
+ | .cd-primary-nav li { | ||
+ | font-size: 30px; | ||
+ | font-size: 1.875rem; | ||
+ | } | ||
+ | .cd-primary-nav .cd-label { | ||
+ | font-size: 16px; | ||
+ | font-size: 1rem; | ||
+ | } | ||
+ | } | ||
+ | |||
.cd-intro { | .cd-intro { | ||
− | height: | + | position: relative; |
+ | height: 100%; | ||
+ | background: url("../img/cd-background-img.jpg") no-repeat center center; | ||
+ | background-size: cover; | ||
+ | z-index: 1; | ||
+ | -webkit-font-smoothing: antialiased; | ||
+ | -moz-osx-font-smoothing: grayscale; | ||
} | } | ||
− | + | ||
− | + | .cd-intro h1 { | |
− | + | position: absolute; | |
− | + | width: 90%; | |
− | + | max-width: 1170px; | |
− | + | left: 50%; | |
− | + | top: 50%; | |
− | + | bottom: auto; | |
− | + | right: auto; | |
− | + | -webkit-transform: translateX(-50%) translateY(-50%); | |
− | + | -moz-transform: translateX(-50%) translateY(-50%); | |
− | + | -ms-transform: translateX(-50%) translateY(-50%); | |
+ | -o-transform: translateX(-50%) translateY(-50%); | ||
+ | transform: translateX(-50%) translateY(-50%); | ||
+ | color: white; | ||
font-size: 20px; | font-size: 20px; | ||
font-size: 1.25rem; | font-size: 1.25rem; | ||
+ | font-weight: 300; | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | @media only screen and (min-width: 768px) { | ||
+ | .cd-intro h1 { | ||
+ | font-size: 30px; | ||
+ | font-size: 1.875rem; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | @media only screen and (min-width: 1170px) { | ||
+ | .cd-intro { | ||
+ | height: 700px; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | .cd-main-content { | ||
+ | position: relative; | ||
+ | z-index: 1; | ||
+ | } | ||
+ | |||
+ | .cd-main-content p { | ||
+ | line-height: 1.6; | ||
+ | margin: 2em 0; | ||
+ | } | ||
+ | |||
+ | @media only screen and (min-width: 1170px) { | ||
+ | .cd-main-content p { | ||
+ | font-size: 20px; | ||
+ | font-size: 1.25rem; | ||
+ | } | ||
} | } | ||
− | |||
</style> | </style> | ||
+ | <!-- Resource style --> | ||
+ | <!-- <script src="js/modernizr.js"></script> --> | ||
+ | <!-- Modernizr --> | ||
</head> | </head> | ||
<body> | <body> | ||
− | <div id=" | + | <div id="coverText"> |
+ | </div> | ||
+ | <div id="indexMenu"> | ||
<header class="cd-header"> | <header class="cd-header"> | ||
<div id="menuButtom"> | <div id="menuButtom"> | ||
Line 640: | Line 647: | ||
</header> | </header> | ||
− | <nav | + | <nav> |
<ul class="cd-primary-nav"> | <ul class="cd-primary-nav"> | ||
− | + | <li><a href="#0">HOME</a></li> | |
− | <li><a href=" | + | |
<li class="cd-label">About Us</li> | <li class="cd-label">About Us</li> | ||
− | |||
<li><a href="#0">Our Projects</a></li> | <li><a href="#0">Our Projects</a></li> | ||
+ | <li><a href="#0">Team Information</a></li> | ||
<li class="cd-label">Other</li> | <li class="cd-label">Other</li> | ||
<li><a href="#0">Safety</a></li> | <li><a href="#0">Safety</a></li> | ||
<li><a href="#0">Human Practices</a></li> | <li><a href="#0">Human Practices</a></li> | ||
− | <li><a href=" | + | <li><a href="#0">Education & Engagement</a></li> |
<li><a href="#0">Model</a></li> | <li><a href="#0">Model</a></li> | ||
<li><a href="#0">Medal</a></li> | <li><a href="#0">Medal</a></li> | ||
Line 666: | Line 672: | ||
</nav> | </nav> | ||
− | + | <main class="cd-main-content"> | |
+ | <div class="cd-container"> | ||
+ | </div> | ||
+ | </main> | ||
+ | <!-- <script src="js/jquery-2.1.0.min.js"></script> | ||
+ | <script src="js/main.js"></script> --> | ||
<script src="https://2019.igem.org/Template:Tongji_Software/js/jquery_210_min_js?action=raw&ctype=text/javascript"></script> | <script src="https://2019.igem.org/Template:Tongji_Software/js/jquery_210_min_js?action=raw&ctype=text/javascript"></script> | ||
<script src="https://2019.igem.org/Template:Tongji_Software/js/main_js?action=raw&ctype=text/javascript"></script> | <script src="https://2019.igem.org/Template:Tongji_Software/js/main_js?action=raw&ctype=text/javascript"></script> | ||
<!-- Resource jQuery --> | <!-- Resource jQuery --> | ||
− | |||
<div id="foot"></div> | <div id="foot"></div> | ||
</div> | </div> | ||
− | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 13:41, 8 October 2019
<!DOCTYPE html>