Team:UC Chile/style

From 2012.igem.org

(Difference between revisions)
 
(129 intermediate revisions not shown)
Line 4: Line 4:
RESET
RESET
\*------------------------------------*/
\*------------------------------------*/
-
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{
+
 
-
margin:0;
+
//From DTU-DENMARK 2011 -> Thanks guys!
-
padding:0;
+
 
 +
#contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
 +
    display:none;}
 +
#top-section {
 +
    border: none;
 +
    height: 0px;}
 +
#content {
 +
    border: none;}
 +
/* Removes "teams" from the menubar */
 +
#menubar > ul > li:last-child {
 +
    display: none;}
 +
/* Resizes the menubar to fik the links (default is 400px) */
 +
#menubar {
 +
    width: auto;}
 +
// Eliminating iGEM Stuff
 +
 
 +
#contentSub {
 +
display:none;
}
}
-
table{
+
 
-
border-collapse:collapse;
+
#bodyContent{
-
border-spacing:0;
+
background: white;
 +
color: black;
}
}
-
fieldset,img{
+
 
-
border:0;
+
#siteSub {
 +
display:none;
}
}
-
address,caption,cite,code,dfn,th,var{
+
 
-
font-style:normal;
+
#search-controls {
-
font-weight:normal;
+
display:none;
}
}
-
caption,th{
+
 
-
text-align:left;
+
.firstHeading {
 +
display:none;
}
}
-
h1,h2,h3,h4,h5,h6{
+
 
-
font-size:100%;
+
#search-controls {
-
font-weight:normal;
+
margin-top:30px;
}
}
-
q:before,q:after{
+
 
-
content:'';
+
#footer-box {
-
}
+
display:none;
-
abbr,acronym{
+
-
border:0;
+
}
}
 +
/* GENERAL CONFIGURATION */
 +
body {
 +
        background: #145224; /* defines the default background color of the document*/
 +
       
 +
/* background-image:url('https://static.igem.org/mediawiki/2012/1/1d/B_image.png'); */
 +
 +
        color: white; /* defines the default font-color of the document*/
 +
 +
    }
 +
    a {
 +
        color: blue; /* defines the default color of links */
 +
    }
 +
    a:hover {
 +
        color: red; /* defines the default color of links hovered by the cursor */
 +
    }
-
/* BE SURE TO INCLUDE THE CSS RESET FOUND IN THE DEMO PAGE'S CSS */
 
/*------------------------------------*\
/*------------------------------------*\
NAV
NAV
\*------------------------------------*/
\*------------------------------------*/
 +
#navbar{
 +
width: 100%;
 +
height: 33px;
 +
background-color: #333;
 +
border-top: 1px solid white;
 +
}
 +
#nav{
#nav{
list-style:none;
list-style:none;
-
font-weight:bold;
 
-
margin-bottom:10px;
 
-
/* Clear floats */
 
float:left;
float:left;
width:100%;
width:100%;
-
/* Bring the nav above everything else--uncomment if needed.
+
        font-weight: bold;
position:relative;
position:relative;
z-index:5;
z-index:5;
-
*/
 
}
}
#nav li{
#nav li{
float:left;
float:left;
margin-right:0px;
margin-right:0px;
-
position:relative;
+
        top: 0px;
-
         width: 100px;
+
  position:relative;
 +
         width: 110px;
 +
 
}
}
#nav a{
#nav a{
display:block;
display:block;
color:#fff;
color:#fff;
-
background:#333;
 
         padding: 5px;
         padding: 5px;
text-decoration:none;
text-decoration:none;
Line 69: Line 105:
text-decoration:underline;
text-decoration:underline;
}
}
-
 
+
#nav li: hover{
 +
        border-bottom: 1px solid white;
 +
z-index:2;
 +
}
/*--- DROPDOWN ---*/
/*--- DROPDOWN ---*/
#nav ul{
#nav ul{
-
background:#fff; /* Adding a background makes the dropdown work properly in IE7+. Make this as close to your page's background as possible (i.e. white page == white background). */
+
background:#fff;  
-
background:rgba(255,255,255,0); /* But! Let's make the background fully transparent where we can, we don't actually want to see it if we can help it... */
+
list-style:none;
list-style:none;
position:absolute;
position:absolute;
left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
 +
        border-bottom: 1px solid black;
 +
       
}
}
 +
#nav ul li{
#nav ul li{
-
padding-top:1px; /* Introducing a padding between the li and the a give the illusion spaced items */
 
float:none;
float:none;
}
}
#nav ul a{
#nav ul a{
-
white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
 
}
}
-
#nav li:hover ul{ /* Display the dropdown on hover */
+
#nav li:hover ul{  
-
left:0; /* Bring back on-screen when needed */
+
left:0px;  
 +
        top: 0px;
 +
        margin-top: 29px;
}
}
-
#nav li:hover a{ /* These create persistent hover states, meaning the top-most link stays 'hovered' even when your cursor has moved down the list. */
+
#nav li:hover a{
-
background:#6b0c36;
+
background: #111;
-
text-decoration:underline;
+
text-decoration:none;
}
}
#nav li:hover ul a{ /* The persistent hover state does however create a global style for links even before they're hovered. Here we undo these effects. */
#nav li:hover ul a{ /* The persistent hover state does however create a global style for links even before they're hovered. Here we undo these effects. */
text-decoration:none;
text-decoration:none;
}
}
 +
#nav li:hover ul li a:hover{ /* Here we define the most explicit hover states--what happens when you hover each individual link. */
#nav li:hover ul li a:hover{ /* Here we define the most explicit hover states--what happens when you hover each individual link. */
-
background:#333;
+
background:white;
 +
        color: black;
}
}
-
// Eliminating iGEM Stuff
+
.selflink{
-
 
+
margin-top: 5px;
-
#contentSub {
+
-
display:none;
+
}
}
-
#siteSub {
+
.center{
-
display:none;
+
text-align: center;
-
}
+
-
 
+
-
#search-controls {
+
-
display:none;
+
-
}
+
-
 
+
-
.firstHeading {
+
-
display:none;
+
-
}
+
-
 
+
-
#search-controls {
+
-
margin-top:30px;
+
-
}
+
-
 
+
-
#footer-box {
+
-
display:none;
+
}
}
</style>
</style>
</html>
</html>

Latest revision as of 15:53, 31 March 2012