Difference between revisions of "Template:Team:NUDT CHINA/CSS"

 
(15 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<html>
 
<html>
 
<head>
 
<head>
 +
<!--Javascript-->
 +
<!--jQuery-->
 
         <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.js"></script>
 
         <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.js"></script>
 
+
<!--MENU-->
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
$('#menu li a').hover( 
 +
function() {$(this).animate({'paddingLeft': '1.2em', 'paddingRight': '1.2em'}, 'fast');},
 +
function() {$(this).animate({'paddingLeft': '0.5em', 'paddingRight': '0.5em'}, 'fast');}
 +
);
 +
});
 +
</script>
 +
<!--NAVIGATION-->
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
$('#navigation li a').hover( 
 +
function() {$(this).animate({'paddingLeft': '1.2em', 'paddingRight': '1.2em'}, 'fast');}, 
 +
function() {$(this).animate({'paddingLeft': '0.5em', 'paddingRight': '0.5em'}, 'fast');}
 +
);
 +
});
 +
$(function(){
 +
$("a").click(function(){
 +
$("html,body").animate({ scrollTop:$($(this).attr("href")).offset().top + "px"},1000);}
 +
);
 +
});
 +
</script>
 +
<!--iGEM_LOGO-->
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
$("#iGEM_LOGO").mouseover(
 +
function(){$(this).animate({'width': '140px', 'height': '140px'},"fast");
 +
});
 +
$("#iGEM_LOGO").mouseout(
 +
function(){$(this).animate({'width': '137px', 'height': '137px'},"fast");
 +
});
 +
});
 +
  </script>
 +
<!--css-->
 
<!--RESET-->
 
<!--RESET-->
 
<style type="text/css">
 
<style type="text/css">
Line 21: Line 57:
 
background-position: 0px 0px;  
 
background-position: 0px 0px;  
 
height: 100%;
 
height: 100%;
 +
width: auto;
 +
}
 +
</style>
 +
<!-- MAINCONTAINER-->
 +
<style type="text/css">
 +
#mainContainer { 
 +
width: 900px;
 +
overflow:visible;
 +
float:center;
 +
margin-left:20px;
 +
margin-bottom: 10px;
 +
}
 +
</style>
 +
<!--BANNER CONTAINER-->
 +
<style type="text/css">
 +
#bannerContainer {
 +
margin-left:180px;
 
width: auto;
 
width: auto;
 
}
 
}
Line 46: Line 99:
 
#menu li
 
#menu li
 
{
 
{
 +
list-style-type:none;
 
position: relative;
 
position: relative;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 16px;
+
font-size: 15px;
 
}
 
}
 
#menu a
 
#menu a
Line 54: Line 108:
 
position: relative;
 
position: relative;
 
display: inline-block;
 
display: inline-block;
margin: 8px 0px 0px 0px;
+
margin: 4px 0px 0px 0px;
 
    padding: 0.3em .5em 0.3em;
 
    padding: 0.3em .5em 0.3em;
 
    text-decoration: none;
 
    text-decoration: none;
Line 76: Line 130:
 
color: #ffffff;
 
color: #ffffff;
 
border-radius: 0 1em 1em 0;
 
border-radius: 0 1em 1em 0;
font-size: 14px;
+
font-size: 13px;
 
}
 
}
 
#menu a:hover
 
#menu a:hover
Line 99: Line 153:
 
{
 
{
 
    position: fixed;
 
    position: fixed;
    top: 50px;
+
    top: 170px;
 
right: 0px;
 
right: 0px;
 
text-align: right;
 
text-align: right;
Line 107: Line 161:
 
margin-right: 30px;
 
margin-right: 30px;
 
margin-top: 0px;
 
margin-top: 0px;
 +
margin-bottom: 30px;
 
}
 
}
 
#navigation ul
 
#navigation ul
Line 115: Line 170:
 
#navigation li
 
#navigation li
 
{
 
{
 +
list-style-type:none;
 
position: relative;
 
position: relative;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 16px;
+
font-size: 15px;
 
}
 
}
 
#navigation a
 
#navigation a
Line 123: Line 179:
 
position: relative;
 
position: relative;
 
display: inline-block;
 
display: inline-block;
margin: 8px 0px 0px 0px;
+
margin: 4px 0px 0px 0px;
 
    padding: 0.3em .5em 0.3em;
 
    padding: 0.3em .5em 0.3em;
 
    text-decoration: none;
 
    text-decoration: none;
Line 132: Line 188:
 
cursor: pointer;
 
cursor: pointer;
 
}
 
}
#navigation a.b  
+
#navigation a.b
 
{
 
{
 
position: relative;
 
position: relative;
Line 145: Line 201:
 
color: #ffffff;
 
color: #ffffff;
 
border-radius: 1em 0em 0em 1em;
 
border-radius: 1em 0em 0em 1em;
font-size: 14px;
+
font-size: 13px;
 +
}
 +
#navigation a.t
 +
{
 +
position: relative;
 +
display: inline-block;
 +
margin: 1px 0px;
 +
    padding: 0.3em .5em 0.3em;
 +
    text-decoration: none;
 +
background-color: #ffffff;
 +
outline: none;
 +
cursor: pointer;
 +
background-color: #d82545;
 +
color: #ffffff;
 +
border-radius: 1em 0em 0em 1em;
 +
font-size: 20px;
 
}
 
}
 
#navigation a:hover
 
#navigation a:hover
Line 156: Line 227:
 
background-color: #888887;
 
background-color: #888887;
 
color:#f9d24b;
 
color:#f9d24b;
 +
}
 +
#navigation a.t:hover
 +
{
 +
background-color: #6b1877;
 +
color:#ffffff;
 
}
 
}
 
#navigation span
 
#navigation span
Line 163: Line 239:
 
}
 
}
 
</style>
 
</style>
<!--MAINCONTAINER-->
+
<!--IGEM LOGO-->
 
<style type="text/css">
 
<style type="text/css">
#mainContainer
+
#logoContainer {
 +
position: fixed;
 +
top: 30px;
 +
right: 30px;
 +
}
 +
</style>
 +
<!--NUDT_Container-->
 +
<!--NUDT_Container-->
 +
<style type="text/css">
 +
#NUDT_Container
 
{
 
{
 
clear: both;
 
clear: both;
 
width: 900px;
 
width: 900px;
margin: 30px 200px;
+
margin: 30px 180px;
 
padding: 30px 0px;
 
padding: 30px 0px;
 
font-family: 'verdana',sans-serif;
 
font-family: 'verdana',sans-serif;
Line 176: Line 261:
 
position: relative;
 
position: relative;
 
}
 
}
#mainContainer ul
+
#NUDT_Container ul
 
{
 
{
 
list-style-position:inside;
 
list-style-position:inside;
Line 183: Line 268:
  
 
}
 
}
#mainContainer li
+
#NUDT_Container li
 
{
 
{
 
padding: 0;
 
padding: 0;
Line 189: Line 274:
 
}
 
}
  
#mainContainer p{
+
#NUDT_Container p{
 
text-decoration: none;
 
text-decoration: none;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
Line 197: Line 282:
 
font-size: 16px;
 
font-size: 16px;
 
}
 
}
#mainContainer a {
+
#NUDT_Container a {
 
position: relative;
 
position: relative;
    text-decoration: none;
+
    text-decoration:none;
background-color: #c3c3c3;
+
    color:#d82545;
color: #888887;
+
 
}
 
}
  
#mainContainer a:hover  
+
#NUDT_Container a:hover  
 
{
 
{
 
text-decoration:underline;
 
text-decoration:underline;
color:#d82545;
 
 
}
 
}
#mainContainer h1, h2, h3, h4, h5, h6{
+
#NUDT_Container h1, h2, h3, h4, h5{
 
color: #444;
 
color: #444;
 
margin: 20px 0px;
 
margin: 20px 0px;
Line 217: Line 300:
 
position: relative;
 
position: relative;
 
}
 
}
#mainContainer h1 {
+
#NUDT_Container h1 {
 
font:bold 28px/12px 'verdana',sans-serif;
 
font:bold 28px/12px 'verdana',sans-serif;
 
border-left: 10px solid #444;
 
border-left: 10px solid #444;
 
}
 
}
#mainContainer h2 {
+
#NUDT_Container h2 {
 
font:bold 24px/10px 'verdana',sans-serif;
 
font:bold 24px/10px 'verdana',sans-serif;
 
border-left: 20px solid #444;
 
border-left: 20px solid #444;
 
}
 
}
#mainContainer h3 {
+
#NUDT_Container h3 {
 
font:bold 22px/8px 'verdana',sans-serif;
 
font:bold 22px/8px 'verdana',sans-serif;
 
border-left: 30px solid #444;
 
border-left: 30px solid #444;
 
}
 
}
#mainContainer h4 {
+
#NUDT_Container h4 {
 
font:bold 22px/6px 'verdana',sans-serif;
 
font:bold 22px/6px 'verdana',sans-serif;
 
border-left: 35px solid #444;
 
border-left: 35px solid #444;
 
}
 
}
#mainContainer h5 {
+
#NUDT_Container h5 {
 
font:bold 20px/4px 'verdana',sans-serif;
 
font:bold 20px/4px 'verdana',sans-serif;
 
border-left: 40px solid #444;
 
border-left: 40px solid #444;
 
}
 
}
#mainContainer h6 {
+
/*CASE*/
font:bold 18px/2px 'verdana',sans-serif;
+
#NUDT_Container ca {
border-left: 45px solid #444;
+
position: relative;
 +
display: inline-block;
 +
margin: 10px 100px;
 +
    padding: 10px 20px;
 +
    text-decoration: none;
 +
background-color: #bcbcbc;
 +
color: #000000;
 +
border-radius: 8px 8px;
 +
outline: none;
 +
cursor: pointer;
 +
font-family: "Trebuchet MS", Helvetica, sans-serif;
 +
font-size: 16px;
 
}
 
}
 
</style>
 
</style>
</head>
+
<!--Common-->
<body>
+
<div id = "mainContainer">
<div id = "menu">
+
<div id = "bannerContainer">
<img src="https://static.igem.org/mediawiki/2015/9/99/Menu.png"/>
+
<img src="https://static.igem.org/mediawiki/2015/0/06/Team_NUDT_CHINA_banner.jpg" style="width: 900px"/>
<ul> 
+
</div>
 +
<div id = "menu">
 +
<img src="https://static.igem.org/mediawiki/2015/9/99/Menu.png"/>  
 
<li><a id = "HOME" href="https://2015.igem.org/Team:NUDT_CHINA"><span>HOME</span></a></li>
 
<li><a id = "HOME" href="https://2015.igem.org/Team:NUDT_CHINA"><span>HOME</span></a></li>
 
 
Line 259: Line 355:
 
<li><a id = "Basic" href = "https://2015.igem.org/Team:NUDT_CHINA/Basic_Part" class = "b"><span>Basic Parts</span></a></li>
 
<li><a id = "Basic" href = "https://2015.igem.org/Team:NUDT_CHINA/Basic_Part" class = "b"><span>Basic Parts</span></a></li>
 
<li><a id = "Composite" href="https://2015.igem.org/Team:NUDT_CHINA/Composite_Part"  class = "b"><span>Composite Parts</span></a></li>
 
<li><a id = "Composite" href="https://2015.igem.org/Team:NUDT_CHINA/Composite_Part"  class = "b"><span>Composite Parts</span></a></li>
<li><a id = "Part" href="https://2015.igem.org/Team:NUDT_CHINA/Part_Collection" class = "b"><span>Part Collection</span></a></li>
+
 
  
 
<li><a id = "NOTEBOOK" href="https://2015.igem.org/Team:NUDT_CHINA/Notebook"><span>NOTEBOOK</span></a></li>   
 
<li><a id = "NOTEBOOK" href="https://2015.igem.org/Team:NUDT_CHINA/Notebook"><span>NOTEBOOK</span></a></li>   
Line 268: Line 364:
 
<li><a id = "MODELING" href="https://2015.igem.org/Team:NUDT_CHINA/Modeling"><span>MODELING</span></a></li>   
 
<li><a id = "MODELING" href="https://2015.igem.org/Team:NUDT_CHINA/Modeling"><span>MODELING</span></a></li>   
 
<li><a id = "MEASUREMENT" href="https://2015.igem.org/Team:NUDT_CHINA/Measurement"><span>MEASUREMENT</span></a></li>   
 
<li><a id = "MEASUREMENT" href="https://2015.igem.org/Team:NUDT_CHINA/Measurement"><span>MEASUREMENT</span></a></li>   
<li><a id = "SOFTWARE" href="https://2015.igem.org/Team:NUDT_CHINA/Software"><span>SOFTWARE</span></a></li>
+
<li><a id = "ENTREPRENEURSHIP" href="https://2015.igem.org/Team:NUDT_CHINA/Entrepreneurship"><span>ENTREPRENEURSHIP</span></a></li>
<li><a id = "ENTREPRENEURSHIP" href="https://2015.igem.org/Team:NUDT_CHINA/Entrepreneurship"><span>ENTREPRENEURSHIP</span></a></li>
+
    </div>
</ul>
+
    <div id = "logoContainer">
<script type="text/javascript">
+
    <a href="https://igem.org/Main_Page"><img  id = "iGEM_LOGO" src="https://static.igem.org/mediawiki/2015/e/ec/TEAM_NUDT_CHINA_iGEM_Logo.png" style="width: 130px; height:135px"/></a>
$(document).ready(function() {
+
    </div>
$('#menu li a').hover( 
+
</head>
function() { 
+
$(this).animate({'paddingLeft': '1.2em', 'paddingRight': '1.2em'}, 'fast');
+
}, 
+
function() {
+
$(this).animate({'paddingLeft': '0.5em', 'paddingRight': '0.5em'}, 'fast'); 
+
}
+
);
+
});
+
</script> 
+
    </div>
+
<div id = "navigation">
+
<ul> 
+
<li><a href="#pos1"><span>Title 1</span></a></li>
+
+
<li><a href = "#pos2"><span>Title 2</span></a></li>
+
<li><a href = "#pos2" class = "b"><span>Title 2.1</span></a></li>
+
<li><a href = "#pos3" class = "b"><span>Title 2.2</span></a></li>
+
 
+
<li><a href = "#pos4"><span>Title 3</span></a></li>
+
<li><a href = "#pos4" class = "b"><span>Title 3.1</span></a></li>
+
 
+
<li><a href = "#pos5"><span>Title 4</span></a></li>
+
<li><a href = "#pos6"><span>Title 5</span></a></li>
+
</ul>
+
<script type="text/javascript">
+
$(document).ready(function() {
+
$('#navigation li a').hover( 
+
function() { 
+
$(this).animate({'paddingLeft': '1.2em', 'paddingRight': '1.2em'}, 'fast');
+
}, 
+
function() {
+
$(this).animate({'paddingLeft': '0.5em', 'paddingRight': '0.5em'}, 'fast'); 
+
}
+
);
+
});
+
</script> 
+
<img src="https://static.igem.org/mediawiki/2015/9/93/Team_NUDT_CHINA_Navigate.png"/>
+
    </div>
+
<div id = "mainContainer" class = "clearStyle">
+
<h1 id = "pos1">Title 1</h1>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<h2 id = "pos2" >Title 2.1</h2>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<h3 id = "pos3" >Title 2.2</h3>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<h4 id = "pos4" >Title 3.1 </h4>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<h5 id = "pos5" >Title 4</h5>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<h6 id = "pos6" >Title 5</h6>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut justo nibh, mattis sit amet consequat a, varius vitae metus. Proin pharetra sodales pellentesque."</p>
+
<ul> 
+
<li><a href="http://wwww.baidu.com">BAIDU</a></li>
+
<li><a href="http://wwww.baidu.com">BAIDU</a></li>
+
<li><a href="http://wwww.baidu.com">BAIDU</a></li>
+
</ul>
+
</div>
+
</body>
+
 
</html>
 
</html>

Latest revision as of 00:45, 22 August 2015