Team:CityU HK/CSS

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<nowiki>* html body {
+
<html>
-
behavior:url("csshover3.htc");
+
<head>
-
}
+
<style type="text/css">
-
#menu {
+
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .visualClear {display: none;} /*-- hides default wiki settings --*/
-
width:948px;
+
-
height:45px;
+
-
}
+
-
#menu ul {
+
-
list-style-type:none;
+
-
margin:0;
+
-
padding:0;
+
-
overflow:auto;
+
-
}
+
-
* html #menu ul {
+
-
height:45px;
+
-
}
+
-
#menu ul li {
+
-
float:left;
+
-
}
+
-
* html #menu ul li {
+
-
display:inline;
+
-
}
+
-
#menu ul li a {
+
-
display:block;
+
-
float:left;
+
-
width: 158px;
+
-
text-align: center;
+
-
}
+
-
#menu ul li ul {
+
.firstHeading {
-
position:absolute;
+
width: 975px;  
-
width:158px;
+
margin: 0px auto;
-
overflow:visible;
+
padding-top: 100px;
-
clear:left;
+
margin-bottom: 20px;
-
margin-top: 99px;
+
font-family: Georgia, Times, "Times New Roman", serif;  
-
margin-right: 0;
+
-
margin-bottom: 0;
+
-
margin-left: 0;
+
}
}
-
*:first-child+html #menu ul li ul {
+
h1, h2, h3, h4, h5 { font-family: Georgia, Times, "Times New Roman", serif;}
-
margin-top:0;
+
-
}
+
-
* html #menu ul li ul {
+
#top-section { /*-- styling for default menu bar (edit, page, history, etc.) --*/
-
margin-top:0;
+
background-color: #383838;
-
}
+
border: 0 none;
-
#menu ul li ul li {
+
height: 14px;
-
float:none;
+
z-index: 100;
-
text-align: center;
+
top: 0;
 +
position: fixed;
 +
width: 975px;
 +
left: 50%;  
 +
margin-left: -487px;
}
}
-
#menu ul li ul li a {
+
 
-
float:none;
+
#top-section-bar { /*-- styling full width bar which hides behind default menu bar (edit, page, history, etc.) --*/
 +
background-color: #383838;
 +
height: 14px;
 +
display: block;
 +
z-index: 10;
 +
position: fixed;
width: 100%;
width: 100%;
 +
top: 0;
}
}
-
#menu ul li ul li ul {
+
 
-
margin-top: 0px;
+
#menubar a:link, #menubar a:active, #menubar a:visited, #menubar a:hover, #menubar:hover { /*-- styling for default menu bar links (edit, page, history, etc.) --*/
-
margin-right: 0;
+
color: #727272;  
-
margin-bottom: 0;
+
text-decoration: none;  
-
margin-left: 100px;
+
background-color: transparent;
-
width: 100%;
+
}
}
-
*:first-child+html #menu ul li ul li ul {
+
body {  
-
margin-top:-30px;
+
background-color: #00306C;
}
}
-
#menu ul li ul li ul li {
 
 +
#globalWrapper, #content { /*-- changes default wiki settings --*/
 +
width: 100%;
 +
height: 100%;
 +
border: 0px;
 +
background-color: transparent;
 +
margin: 0px;
 +
padding: 0px;
}
}
-
#menu ul li ul li ul li a {
+
 
 +
html, body, .wrapper { /*-- changes default wiki settings --*/
 +
width: 100%;
 +
height: 100%;
 +
background-color: transparent;
}
}
-
#menu ul li ul {
+
 
-
visibility:hidden;
+
#contentcontainer { /*-- creates container for all content on page --*/
 +
font-family: Arial, Helvetica, sans-serif;
 +
font-weight: normal;
 +
font-size: 14px;
 +
color: #414141;
 +
width: 960px;
 +
margin-left: auto;
 +
margin-right: auto;
 +
background-color: #transparent;
 +
margin-top: 0px;  
}
}
-
#menu ul li:hover ul {
+
 
-
visibility:visible;
+
.sidemenu, .sidemenu li {  
 +
list-style-type: none;
 +
list-style-image: none;
 +
font-family: verdana;
 +
text-decoration: none;
 +
color:#000;
 +
font-size: 14px;
}
}
-
#menu ul li:hover ul li ul {
+
 
-
visibility:hidden;
+
.sidemenu li {display: block;}
 +
 
 +
.sidemenu a {
 +
text-decoration:none;
 +
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.greyout { color: #909090; }
 +
 
 +
.sidemenu a:hover {
 +
color:#666;
 +
background-color: #d9f5aa;
}
}
-
#menu ul li ul li:hover ul {
+
 
-
visibility:visible;
+
.sub-sidemenu {font-size: 10px; margin-bottom: 20px; color: #666; display: none;}
 +
.sub-sidemenu a {color: #666;}
 +
 
 +
div.underconst
 +
{
 +
padding:10px;
 +
border-radius:5px;
 +
background-color:pink;
 +
text-align:center;
}
}
-
#menu ul li ul li:hover ul li ul {
+
 
-
visibility:hidden;
+
a.anchor{display: block; position: relative; top: -80px; visibility: hidden;}
 +
 
 +
.contentpara {margin-bottom: 30px;}
 +
 
 +
span.email{font-family: monospace; font-weight: normal;}
 +
 
 +
fieldset {border: 1px solid #337f53;}
 +
 
 +
.greyout {color: #A0A0A0;}
 +
.highlightme {background-color: #FFFF00;}
 +
 
 +
#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: 10px 15px 5px 10px;
 +
border-bottom: 1px solid #ccc;
 +
margin-bottom: 0px;  
}
}
-
#menu ul li ul li ul li:hover ul {
+
 
-
visibility:visible;
+
.newsItem {
 +
border-bottom: 1px solid #ccc;
 +
display: block;
 +
padding: 5px 15px 0px 10px;
 +
margin-bottom: 0px;  
}
}
 +
.newsItem h3 {
 +
width: auto;
 +
display: inline;
 +
font-size: 14px;
 +
font-family: Arial, Helvetica, sans-serif;
 +
padding: 0px;
 +
margin: 0px;
 +
}
-
#menu {
+
.newsItem img {
-
font-size:12px;
+
float: right;  
-
font-family:Arial, Helvetica, sans-serif;
+
clear: right;
 +
width: 80px;
 +
padding-left: 15px;
 +
display: inline-block;  
}
}
-
#menu ul {
+
 
-
background:#0101DF;
+
.newsItem .newsDate {
 +
font-style: italic;
 +
font-size: 14px;
 +
display: inline-block;
 +
color: #999;
 +
float: right;
 +
padding: 0px 0px 10px 15px;
}
}
-
#menu ul li a {
+
.newsItem p, .newsItem ul, .newsItem li {
-
color:#FFF;
+
padding: 0px;  
-
text-decoration:none;
+
margin-left: 20px;
-
line-height: 30px;
+
font-size: 12px;  
 +
line-height: 1.2;
}
}
-
/
+
 
-
#menu ul li ul {
+
.newsItem p {margin-top: 10px;}
-
background:#efefef;
+
 
 +
.annItem {
 +
border: 2px solid #49b677;
 +
display: block;
 +
padding: 0px 15px 10px 10px;
 +
margin-bottom: 18px;
 +
position: relative;
 +
height: 160px;
 +
vertical-align: middle;
}
}
-
#menu ul li ul li a {
+
.annItem .annCentered {
-
font-size:12px;
+
display: table-cell;  
-
color:#333333;
+
vertical-align: middle;  
-
text-decoration:none;
+
height: 160px;
}
}
-
#menu ul li:hover, #menu ul li a:hover {
+
.annCentered h3 {
-
background:#efefef;
+
padding: 0px;
-
}
+
display: block;
-
#menu ul li:hover a {
+
margin-left: auto;
-
color:#FFFFFF;
+
margin-right: auto;
 +
text-align: center;
}
}
-
#menu ul li ul li:hover, #menu ul li ul li a:hover {
+
.annItem ul, .annItem li {padding: 0px; margin: 0px;}
-
background:#2EFEF7;
+
.annItem li {list-style: none; margin: 5px}
-
}</nowiki>
+
 
 +
 
 +
 
 +
</style>
 +
</style>
 +
 
 +
 
 +
 
 +
</html>

Revision as of 14:10, 21 June 2014