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

(Created page with "{{Template_All_Teams}} <!-- Declare that you are going to use html code instead of wiki code --> <html> <!-- Start of CSS--> <style type="text/css"> PAGE LAYOUT: ...")
 
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Template_All_Teams}}
 
{{Template_All_Teams}}
 
<!-- Declare that you are going to use html code instead of wiki code -->
 
 
<html>
 
<html>
 
+
<head>
<!-- Start of CSS-->
+
<!--Javascript-->
 +
<!--jQuery-->
 +
        <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-->
 
<style type="text/css">
 
<style type="text/css">
 
+
.clearStyle {
/* PAGE LAYOUT */
+
margin: 0;
 
+
padding: 0;
/* Change Background color*/
+
border: 0;
body {
+
font-size: 100%;
background-color: #fff;
+
font: inherit;
 +
vertical-align: baseline;
 
}
 
}
 
+
body {
/* Creates a container that will wrap all of the content inside your wiki pages. */
+
background-color: #f3f3f3;
 +
background-image: url(https://static.igem.org/mediawiki/2015/8/8a/Team_NUDT_CHINA_Soft_wallpaper.png);
 +
background-repeat: repeat;
 +
background-attachment: fixed;
 +
background-position: 0px 0px;
 +
height: 100%;
 +
width: auto;
 +
}
 +
</style>
 +
<!-- MAINCONTAINER-->
 +
<style type="text/css">
 
#mainContainer {   
 
#mainContainer {   
width: 978px;
+
width: 900px;
overflow:hidden;
+
overflow:visible;
float:left;
+
float:center;
 
margin-left:20px;
 
margin-left:20px;
 
margin-bottom: 10px;
 
margin-bottom: 10px;
background-color: #fff;
 
border-bottom: 14px solid #565656;
 
border-right: 2px solid #565656;
 
border-left: 2px solid #565656;
 
border-top: 2px solid #565656;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
 
}
 
}
 +
</style>
 +
<!--BANNER CONTAINER-->
 +
<style type="text/css">
 +
#bannerContainer {
 +
margin-left:180px;
 +
width: auto;
 +
}
 +
</style>
 +
<!--MENU-->
 +
<style type="text/css">
 +
#menu
 +
{
 +
    position: fixed;
 +
    top: 30px;
 +
left: 0px;
 +
}
 +
#menu img
 +
{
 +
margin-left: 30px;
 +
margin-bottom: 0px
 +
}
 +
#menu ul
 +
{
 +
list-style-type:none;
 +
padding: 0;
 +
border: 0;
  
/* Creates the container for the menu */
 
#menuContainer  {
 
float:left;
 
width: 134px;
 
padding: 20px 0px;
 
border-top: 14px solid #565656;
 
background-color: #E8E8E9;
 
 
}
 
}
 
+
#menu li
/* Creates the container for the content */
+
{
#contentContainer {
+
list-style-type:none;
padding-top:20px;
+
position: relative;
padding-right:10px;
+
margin-bottom: 20px;
+
width: 814px;
+
padding-left: 20px;
+
float: left;
+
background-color: #fff;
+
border-top: 14px solid #565656;
+
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 +
font-size: 15px;
 
}
 
}
 
+
#menu a
/*Set up height place holder for the banner*/
+
{
#bannerContainer {
+
position: relative;
height:200px;
+
display: inline-block;
margin:auto;
+
margin: 4px 0px 0px 0px;
text-align:center;
+
    padding: 0.3em .5em 0.3em;
color: #24B694;
+
    text-decoration: none;
 +
background-color: #ffffff;
 +
color: #888887;
 +
border-radius: 0 .4em .4em 0;
 +
outline: none;
 +
cursor: pointer;
 
}
 
}
 
+
#menu a.b
/*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */
+
{
 
+
position: relative;
/*Change the styling of text for everything inside main container*/
+
display: inline-block;
#mainContainer p {
+
margin: 1px 0px;
font-size: 13px;
+
    padding: 0.3em .5em 0.3em;
color: #000000;
+
    text-decoration: none;
 +
background-color: #ffffff;
 +
outline: none;
 +
cursor: pointer;
 +
background-color: #888887;
 +
color: #ffffff;
 +
border-radius: 0 1em 1em 0;
 +
font-size: 13px;
 +
}
 +
#menu a:hover
 +
{
 +
background-color: #ffffff;
 +
color:#d82545;
 
}
 
}
+
#menu a.b:hover
/*This changes the color and font family */
+
{
#contentContainer h1, h2, h3, h4, h5, h6 {  
+
background-color: #888887;
color: #565656;
+
color:#f9d24b;
border-bottom: none;
+
}
font-weight: bold;
+
#menu span
 +
{
 +
padding-left: 10px;
 +
padding-right: 10px;
 +
}
 +
</style>
 +
<!--NAVIGATION-->
 +
<style type="text/css">
 +
#navigation
 +
{
 +
    position: fixed;
 +
    top: 170px;
 +
right: 0px;
 +
text-align: right;
 +
}
 +
#navigation img
 +
{
 +
margin-right: 30px;
 +
margin-top: 0px;
 +
margin-bottom: 30px;
 +
}
 +
#navigation ul
 +
{
 +
list-style-type:none;
 +
border: 0;
 +
}
 +
#navigation li
 +
{
 +
list-style-type:none;
 +
position: relative;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
 
font-family: "Trebuchet MS", Helvetica, sans-serif;
margin-top:10px;
+
font-size: 15px;
 
}
 
}
 
+
#navigation a
/*Style of the links - links are different inside the menu */
+
{
#contentContainer a {  
+
position: relative;
font-weight: bold;
+
display: inline-block;
color: #23b593;
+
margin: 4px 0px 0px 0px;
 +
    padding: 0.3em .5em 0.3em;
 +
    text-decoration: none;
 +
background-color: #ffffff;
 +
color: #888887;
 +
border-radius: .4em 0em 0em .4em;
 +
outline: none;
 +
cursor: pointer;
 
}
 
}
 
+
#navigation a.b
  /* Styling links on hover- links are different inside the menu */
+
{
#contentContainer a:hover {
+
position: relative;
color: #59bf92;
+
display: inline-block;
 +
margin: 1px 0px;
 +
    padding: 0.3em .5em 0.3em;
 +
    text-decoration: none;
 +
background-color: #ffffff;
 +
outline: none;
 +
cursor: pointer;
 +
background-color: #888887;
 +
color: #ffffff;
 +
border-radius: 1em 0em 0em 1em;
 +
font-size: 13px;
 
}
 
}
 
+
#navigation a.t
/*Change the styling of tables */
+
{
        #contentContainer table {
+
position: relative;
    border: 1px solid #565656;
+
display: inline-block;
    border-collapse: collapse;
+
margin: 1px 0px;
    width: 90%
+
    padding: 0.3em .5em 0.3em;
    margin: auto;
+
    text-decoration: none;
    margin-bottom: 15px;
+
background-color: #ffffff;
    margin-top: 15px;
+
outline: none;
    margin-right: 10px;
+
cursor: pointer;
    margin-left: 10px;
+
background-color: #d82545;
    }
+
color: #ffffff;
 
+
border-radius: 1em 0em 0em 1em;
/*Change the styling of table cells*/
+
font-size: 20px;
    #contentContainer  td {
+
    padding: 10px;
+
    border: 1px solid #565656;
+
    border-collapse: collapse;
+
    vertical-align: text-top;
+
    }
+
 
+
/*Change the styling of table headers */
+
    #contentContainer th {
+
    background-color: #E8E8E9;
+
    padding: 10px;
+
    border: 1px solid #565656;
+
    border-collapse: collapse;
+
    vertical-align: text-top;
+
    }
+
 
+
 
+
 
+
/*MENU STYLING */
+
 
+
/*Styling for the links in the menu */
+
#menuContainer a {
+
color: #565656;
+
text-decoration:none;
+
font-weight: bold;
+
 
}
 
}
 
+
#navigation a:hover
/* Sets the style for lists inside menuContainer  */
+
{
#menuContainer ul {  
+
background-color: #ffffff;
list-style: none;
+
color:#d82545;
margin-left:0px;
+
 
}
 
}
 
+
#navigation a.b:hover
/*Styles the list items to become menu buttons */
+
{
#menuContainer ul li {  
+
background-color: #888887;
text-align: center;
+
color:#f9d24b;
display: block;
+
width: 100%;
+
height:30px;
+
padding-top:10px;
+
 
}
 
}
 
+
#navigation a.t:hover
/*For the menu buttons, changes the color when hovering*/
+
{
#menuContainer li:hover {
+
background-color: #6b1877;
color: #FFF;
+
color:#ffffff;
background-color: #24B694;
+
 
}
 
}
 +
#navigation span
 +
{
 +
padding-left: 10px;
 +
padding-right: 10px;
 +
}
 +
</style>
 +
<!--IGEM LOGO-->
 +
<style type="text/css">
 +
#logoContainer {
 +
position: fixed;
 +
top: 30px;
 +
right: 30px;
 +
}
 +
</style>
 +
<!--NUDT_Container-->
 +
<!--NUDT_Container-->
 +
<style type="text/css">
 +
#NUDT_Container
 +
{
 +
clear: both;
 +
width: 900px;
 +
margin: 30px 180px;
 +
padding: 30px 0px;
 +
font-family: 'verdana',sans-serif;
 +
background: #fff;
 +
box-shadow: 0 3px 8px rgba(0,0,0,.1);
 +
position: relative;
 +
}
 +
#NUDT_Container ul
 +
{
 +
list-style-position:inside;
 +
padding: 10px 50px;
 +
border: 0;
  
/*Submenus are not displayed as default*/
+
}
#menuContainer li ul {
+
#NUDT_Container li
display: none;
+
{
padding-top:15px;
+
padding: 0;
margin-left: -19px;
+
border: 0;
 
}
 
}
  
/*Submenus are displayed when hovering the menu button */
+
#NUDT_Container p{
#menuContainer li:hover ul {
+
text-decoration: none;
/*display: inline-block; */
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
display: block;  
+
color: #888887;
position: absolute;  
+
position: relative;
float:right;
+
padding: 10px 50px;
margin-left: 134px;
+
font-size: 16px;
margin-top:-42px;
+
}
}
+
#NUDT_Container a {
 
+
position: relative;
/*Style the submenu buttons*/
+
    text-decoration:none;
#menuContainer li ul li{
+
    color:#d82545;
background-color: #59BF92;  
+
padding-left:20px;
+
padding-right:20px;
+
height:30px;
+
padding-top:10px;
+
margin-top:-2px;
+
color: #565656;
+
width: 150px;
+
 
}
 
}
  
/*CLASSES */
+
#NUDT_Container a:hover
 
+
{
/*Clear class for all the pages, adds spacing too*/
+
text-decoration:underline;
.clear{
+
}
clear:both;
+
#NUDT_Container h1, h2, h3, h4, h5{
height: 10px;
+
color: #444;
 +
margin: 20px 0px;
 +
padding:4px 8px;
 +
letter-spacing: -1px;
 +
text-transform: uppercase;
 +
position: relative;
 +
}
 +
#NUDT_Container h1 {
 +
font:bold 28px/12px 'verdana',sans-serif;
 +
border-left: 10px solid #444;
 +
}
 +
#NUDT_Container h2 {
 +
font:bold 24px/10px 'verdana',sans-serif;
 +
border-left: 20px solid #444;
 +
}
 +
#NUDT_Container h3 {
 +
font:bold 22px/8px 'verdana',sans-serif;
 +
border-left: 30px solid #444;
 +
}
 +
#NUDT_Container h4 {
 +
font:bold 22px/6px 'verdana',sans-serif;
 +
border-left: 35px solid #444;
 +
}
 +
#NUDT_Container h5 {
 +
font:bold 20px/4px 'verdana',sans-serif;
 +
border-left: 40px solid #444;
 +
}
 +
/*CASE*/
 +
#NUDT_Container ca {
 +
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;
 
}
 
}
 
 
/* highlight box for special messages */
 
    .highlightBox {
 
        width:500px;
 
        margin:auto;
 
        background-color: #E8E8E9;
 
margin-bottom: 15px;
 
margin-top: 15px;
 
padding: 15px;
 
padding-top: 5px;
 
    }
 
 
 
 
</style>
 
</style>
<!-- End of CSS -->
+
<!--Common-->
 +
<div id = "mainContainer">
 +
<div id = "bannerContainer">
 +
<img src="https://static.igem.org/mediawiki/2015/0/06/Team_NUDT_CHINA_banner.jpg" style="width: 900px"/>
 +
</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 = "PROJECT" href = "#"><span>PROJECT</span></a></li>
 +
<li><a id = "Description" href = "https://2015.igem.org/Team:NUDT_CHINA/Description" class = "b"><span>Description</span></a></li>
 +
<li><a id = "Experiments" href = "https://2015.igem.org/Team:NUDT_CHINA/Experiments" class = "b"><span>Experiments &amp; Protocols</span></a></li>
 +
<li><a id = "Results" href="https://2015.igem.org/Team:NUDT_CHINA/Results"  class = "b"><span>Results</span></a></li>
 +
<li><a id = "Design" href="https://2015.igem.org/Team:NUDT_CHINA/Design" class = "b"><span>Design</span></a></li>
 +
 +
<li><a id = "PARTS" href = "#"><span>PARTS</span></a></li>
 +
<li><a id = "Team" href = "https://2015.igem.org/Team:NUDT_CHINA/Parts" class = "b"><span>Team 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>
  
  
<!-- Start of the template html elements. -->
+
<li><a id = "NOTEBOOK" href="https://2015.igem.org/Team:NUDT_CHINA/Notebook"><span>NOTEBOOK</span></a></li>   
<div id ="mainContainer"><!--The closing tag for mainContainer should be placed at the bottom of each content page.-->
+
<li><a id = "ATTRIBUTIONS" href="https://2015.igem.org/Team:NUDT_CHINA/Attributions"><span>ATTRIBUTIONS</span></a></li>
 
+
<li><a id = "COLLABORATIONS" href="https://2015.igem.org/Team:NUDT_CHINA/Collaborations"><span>COLLABORATIONS</span></a></li>
 
+
<li><a id = "HUMAN" href="https://2015.igem.org/Team:NUDT_CHINA/Practices"><span>HUMAN PRACTICES</span></a></li>  
<div id="bannerContainer">
+
<li><a id = "SAFETY" href="https://2015.igem.org/Team:NUDT_CHINA/Safety"><span>SAFETY</span></a></li>  
<img src="https://static.igem.org/mediawiki/2015/0/06/Team_NUDT_CHINA_banner.jpg" style="top-margin: 15px; left-margin: 15px;"/>
+
<li><a id = "MODELING" href="https://2015.igem.org/Team:NUDT_CHINA/Modeling"><span>MODELING</span></a></li>
<!-- <br><br>
+
<li><a id = "MEASUREMENT" href="https://2015.igem.org/Team:NUDT_CHINA/Measurement"><span>MEASUREMENT</span></a></li>
<h2> Add a banner to your wiki! </h2>
+
<li><a id = "ENTREPRENEURSHIP" href="https://2015.igem.org/Team:NUDT_CHINA/Entrepreneurship"><span>ENTREPRENEURSHIP</span></a></li>
+
    </div>
<p>You can make the image 980px  by  200px</p>
+
    <div id = "logoContainer">
<p> Remember to call the file: "<i>Team_NUDT_CHINA_banner.jpg</i>" </p>
+
    <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>
  --> </div>
+
    </div>
 
+
</head>
<!-- Start of menu -->
+
<div id="menuContainer">
+
 
+
<!-- This list is your menu, every list item is a menu button and nested listed become submenu buttons -->
+
<ul>
+
<a href="https://2015.igem.org/Team:NUDT_CHINA"><li>HOME</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Team"><li>TEAM</li></a>
+
 
+
<a href="#"><li>PROJECT
+
            <ul>
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Description"><li>Description</li></a>
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Experiments"><li>Experiments &amp; Protocols</li></a
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Results"><li>Results</li></a> 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Design"><li>Design</li></a>
+
</ul>
+
</li></a>
+
 
+
<a href="#"><li>PARTS
+
            <ul>
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Parts"><li>Team Parts</li></a>
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Basic_Part"><li>Basic Parts</li></a
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Composite_Part"><li>Composite Parts</li></a>
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Part_Collection"><li>Part Collection</li></a>
+
</ul>
+
</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Notebook"><li>NOTEBOOK</li></a>
+
     
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Attributions"><li>ATTRIBUTIONS</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Collaborations"><li>COLLABORATIONS</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Practices"><li>HUMAN PRACTICES</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Safety"><li>SAFETY</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Modeling"><li>MODELING</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Measurement"><li>MEASUREMENT</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Software"><li>SOFTWARE</li></a>
+
 
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Entrepreneurship"><li>ENTREPRENEURSHIP</li></a>
+
 
+
<!-- Start of test -->
+
<a href="https://2015.igem.org/Team:NUDT_CHINA/Temporary Test"><li>TEST</li></a>
+
<!-- End of test -->
+
 
+
</ul>
+
</div>
+
<!-- End of menu  -->
+
 
+
<!-- Start of content -->
+
<div id="contentContainer"> <!--The closing tag for contentContainer should be placed at the bottom of each content page.-->
+
 
</html>
 
</html>

Latest revision as of 00:45, 22 August 2015