Team:NYMU-Taipei/HeaderCSS

From 2014.igem.org

(Difference between revisions)
m
 
(54 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<head>
 
<style type="text/css">
<style type="text/css">
-
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .visualClear {display: none;} /*-- hides default wiki settings --*/
+
body{
-
 
+
  background-color:#F0F8FF;
-
.firstHeading {
+
-
width: 975px;
+
-
margin: 0px auto;
+
-
padding-top: 100px;
+
-
margin-bottom: 20px;
+
-
font-family: Georgia, Times, "Times New Roman", serif;  
+
}
}
-
 
+
#content{
-
h1, h2, h3, h4, h5 { font-family: Georgia, Times, "Times New Roman", serif;}
+
  width:100%;
-
 
+
  padding:0px;
-
#top-section { /*-- styling for default menu bar (edit, page, history, etc.) --*/
+
  border-width:0px;
-
background-color: #383838;
+
  background-color:#F0F8FF;
-
border: 0 none;
+
-
height: 14px;
+
-
z-index: 100;
+
-
top: 0;
+
-
position: fixed;
+
-
width: 975px;  
+
-
left: 50%;
+
-
margin-left: -487px;
+
}
}
-
 
+
#top-section , .firstHeading ,#footer-box , #catlinks {
-
#top-section-bar { /*-- styling full width bar which hides behind default menu bar (edit, page, history, etc.) --*/
+
  display:none;
-
background-color: #383838;
+
  height:0;
-
height: 14px;
+
-
display: block;
+
-
z-index: 10;
+
-
position: fixed;
+
-
width: 100%;
+
-
top: 0;
+
}
}
-
 
+
.bg{
-
#menubar a:link, #menubar a:active, #menubar a:visited, #menubar a:hover, #menubar:hover { /*-- styling for default menu bar links (edit, page, history, etc.) --*/
+
  width:1000px;
-
color: #727272;  
+
  margin: 0 auto;
-
text-decoration: none;  
+
  height:200px;
-
background-color: transparent;
+
  margin-top:-10px;
 +
  border-radius: 20px;
 +
  background-color:#FFFF00;
 +
  border: solid 5px #CDBE70;
}
}
-
 
+
.main-content{
-
body {  
+
  width:70%;
-
background-color: #fff;
+
  margin: 0 auto;
 +
  background-color:#FFFFFF;
}
}
-
#globalWrapper, #content { /*-- changes default wiki settings --*/
+
.nav-bar{
-
width: 100%;
+
  margin-top:85px;
-
height: 100%;
+
-
border: 0px;
+
-
background-color: transparent;
+
-
margin: 0px;
+
-
padding: 0px;
+
}
}
-
html, body, .wrapper { /*-- changes default wiki settings --*/
+
.left-bar{
-
width: 100%;  
+
  margin-top:40px;
-
height: 100%;  
+
  width:180px;
-
background-color: transparent;
+
  margin-left:10px;
 +
  height:250px;
 +
  background-image:url(https://static.igem.org/mediawiki/2014/b/b4/NYMU2014_left_sidebar.png);
 +
  background-size: 180px 250px;
 +
  position:fixed;
}
}
-
#contentcontainer { /*-- creates container for all content on page --*/
+
.left-bar a{
-
font-family: Arial, Helvetica, sans-serif;  
+
  font: 15px comic sans ms;
-
font-weight: normal;
+
  cursor:pointer;
-
font-size: 14px;
+
-
color: #414141;
+
-
width: 960px;
+
-
margin-left: auto;
+
-
margin-right: auto;
+
-
background-color: #transparent;
+
-
margin-top: 0px;  
+
}
}
-
.sidemenu, .sidemenu li {  
+
.left-bar p{
-
list-style-type: none;
+
  margin-left:25px;
-
list-style-image: none;
+
-
font-family: verdana;
+
-
text-decoration: none;
+
-
color:#000;
+
-
font-size: 14px;
+
}
}
-
.sidemenu li {display: block;}
+
.main-content p{
-
 
+
  margin-left: 20px;
-
.sidemenu a {
+
  line-height: 1.5em;
-
text-decoration:none;  
+
  font-size: 127%;
-
color: #000;
+
-
display: block;
+
-
width: 180px;
+
-
height: 100%;
+
-
padding: 3px 5px;
+
-
transition: .25s ease-in-out;
+
-
-moz-transition: .25s ease-in-out;
+
-
-webkit-transition: .25s ease-in-out;
+
-
}
+
-
 
+
-
.sidemenu a:hover {
+
-
color:#666;
+
-
background-color: #d9f5aa;
+
}
}
-
.sub-sidemenu {font-size: 10px; margin-bottom: 20px; color: #666; display: none;}
+
.main-content span{
-
.sub-sidemenu a {color: #666;}
+
  font-size:2em;
-
 
+
  color:orange;
-
a.anchor{display: block; position: relative; top: -80px; visibility: hidden;}
+
-
 
+
-
.contentpara {margin-bottom: 30px;}
+
-
 
+
-
 
+
-
#alertContainer {border: 2px solid red; margin-bottom: 10px; width: 936px;}
+
-
#annContainer {margin-left: 8px;}
+
-
#newsContainer {border: 1px solid #ccc;}
+
-
 
+
-
.newsTitle {
+
-
display: block;
+
-
color: #414141;
+
-
font-size: 25px; 
+
-
        font-family: Georgia, Times, "Times New Roman", serif;
+
-
padding: 15px 15px 5px 10px;
+
-
border-bottom: 1px solid #ccc;
+
-
margin-bottom: 10px;  
+
}
}
-
.newsItem {
 
-
border-bottom: 1px solid #ccc;
 
-
display: block;
 
-
padding: 5px 15px 10px 10px;
 
-
margin-bottom: 5px;
 
-
}
 
-
 
-
.newsItem h3 {
 
-
width: auto;
 
-
display: inline;
 
-
font-size: 14px;
 
-
font-family: Arial, Helvetica, sans-serif;
 
-
padding: 0px;
 
-
margin: 0px;
 
-
}
 
-
 
-
.newsItem img {
 
-
float: right;
 
-
clear: right;
 
-
width: 80px;
 
-
padding-left: 15px;
 
-
display: inline-block;
 
-
}
 
-
 
-
.newsItem .newsDate {
 
-
font-style: italic;
 
-
font-size: 14px;
 
-
display: inline-block;
 
-
color: #999;
 
-
float: right;
 
-
padding: 0px 0px 10px 15px;
 
-
}
 
-
 
-
.newsItem p, .newsItem ul, .newsItem li {
 
-
padding: 0px;
 
-
margin-left: 20px;
 
-
font-size: 12px;
 
-
line-height: 1.2;
 
-
}
 
-
 
-
.newsItem p {margin-top: 10px;}
 
-
 
-
.annItem {
 
-
border: 2px solid #96d359;
 
-
display: block;
 
-
padding: 0px 15px 10px 10px;
 
-
margin-bottom: 18px;
 
-
position: relative;
 
-
height: 160px;
 
-
vertical-align: middle;
 
-
}
 
-
 
-
.annItem .annCentered {
 
-
display: table-cell;
 
-
vertical-align: middle;
 
-
height: 160px;
 
-
}
 
-
 
-
.annCentered h3 {
 
-
padding: 0px;
 
-
display: block;
 
-
margin-left: auto;
 
-
margin-right: auto;
 
-
text-align: center;
 
-
}
 
-
 
-
.annItem ul, .annItem li {padding: 0px; margin: 0px;}
 
-
.annItem li {list-style: none; margin: 5px}
 
-
 
-
div.header{
 
-
  position:absolute;
 
-
  top:-10px;
 
-
  z-index:-99;
 
-
}
 
-
.firstHeading {
 
-
  z-index:-100;
 
-
}
 
</style>
</style>
<div class="header">
<div class="header">
-
     <img src="https://static.igem.org/mediawiki/2014/0/07/NYMU2014_bg.jpg" width="100%" height="200">
+
     <div class="bg">
 +
      <div class="nav-bar">
 +
</html>
 +
{{:Team:NYMU-Taipei/TopBar}}
 +
<html>
 +
      </div>
 +
      <img src="https://static.igem.org/mediawiki/2014/e/ed/NYMU2014_b2.png" width="80px" style="position:absolute; top:40px; left:700px;">
 +
      <img src="https://static.igem.org/mediawiki/2014/e/ed/NYMU2014_b2.png" width="60px" style="position:absolute; top:30px; left:900px;">
 +
      <img src="https://static.igem.org/mediawiki/2014/e/ed/NYMU2014_b2.png" width="50px" style="position:absolute; top:50px; left:200px;">
 +
      <img src="https://static.igem.org/mediawiki/2014/1/13/NYMU2014_school.png" width="100px" style="float:right; margin-right:50px; ">
 +
      <img id="obj1" src="https://static.igem.org/mediawiki/2014/3/39/NYMU2014_b4.png" width="85px" style="position:absolute; top:80px; left:850px; ">
 +
      <img src="https://static.igem.org/mediawiki/2014/9/9b/NYMU2014_b5.png" width="60px" style="position:absolute; top:10px; left:300px; ">
 +
      <img id="obj2" src="https://static.igem.org/mediawiki/2014/9/9b/NYMU2014_b5.png" width="60px" style="position:absolute; top:10px; left:300px; ">
 +
      <img id="obj3" src="https://static.igem.org/mediawiki/2014/5/58/NYMU2014_b1.png" width="60px" style="position:absolute; top:10px; left:550px; ">
 +
    </div>
</div>
</div>
</html>
</html>

Latest revision as of 12:06, 5 May 2014