Team:USTC-Software/css/header style

From 2012.igem.org

(Difference between revisions)
 
(37 intermediate revisions not shown)
Line 1: Line 1:
-
#header_wrapper { width: 980px; position: relative; margin: 0px auto; float: none; }
+
#header_wrapper {
 +
    width: 980px;
 +
    position: relative;
 +
    margin: 0px auto;
 +
    margin-bottom:100px;
 +
    float: none;
 +
    list-style:none;
 +
}
-
 
+
#header_wrapper a{
-
#navs { margin-bottom:30px;}
+
-
#navs div { margin-right: 5px; float:left;}
+
-
#navs div a{
+
     display:block;
     display:block;
-
    height:100%;
 
-
    width:100%;
 
     text-decoration:none;
     text-decoration:none;
     color:white;
     color:white;
}
}
-
#team_logo { width: 442px; height: 74px;
 
-
            background: url("https://static.igem.org/mediawiki/2012/f/f2/USTC-Software-images-team-logo-2.png") no-repeat;
 
-
            float: none; margin-top: 30px;
 
-
            -webkit-transition: background .5s ease-out;
 
-
            -moz-transition: background .5s ease-out;
 
-
            -o-transition: background .5s ease-out;
 
-
            -ms-transition: background .5s ease-out;           
 
-
            transition: background .5s ease-out;
 
-
            }
 
-
#team_logo:hover{ background:url('https://static.igem.org/mediawiki/2012/4/4e/USTC-Software-images-team-logo-changed.png');}
 
-
#team_logo a{ display:block; height:100%; width:100%;}
 
 +
#team_logo {
 +
    height: 74px;
 +
    float: left;
 +
    margin-top: 30px;
 +
    font-size:64px;
 +
    font-family: 'Marcellus SC', serif;
 +
    -webkit-transition: all .5s ease-out;
 +
    -moz-transition: all .5s ease-out;
 +
    -o-transition: all .5s ease-out;
 +
    -ms-transition: all .5s ease-out;
 +
    transition: all .5s ease-out;
 +
}
 +
#team_logo a{
 +
    text-shadow: 8px 6px 1px black;
 +
    position:relative;
 +
    -webkit-transition: color .5s ease-out;
 +
    -moz-transition: color .5s ease-out;
 +
    -o-transition: color .5s ease-out;
 +
    -ms-transition: color .5s ease-out;
 +
    transition: color .5s ease-out;
 +
}
-
#home_button { width: 147px; height: 35px; background: url("https://static.igem.org/mediawiki/2012/d/d1/USTC-Software-images-home_normal.png"); }
+
#team_logo a:active{
-
#home_button:active { background: url("https://static.igem.org/mediawiki/2012/6/68/USTC-Software-images-home_active.png"); }
+
    text-shadow: 6px 4px 1px black;
 +
    left:1px;
 +
    top:1px;
 +
}
-
#project_button { width: 104px; height: 35px; background: url("https://static.igem.org/mediawiki/2012/d/dd/USTC-Software-images-project_normal.png"); }
+
#team_logo:hover a{
-
#project_button:active { background: url("https://static.igem.org/mediawiki/2012/2/24/USTC-Software-images-project_active.png"); }
+
    color:#3cb5f9;
 +
}
-
#software_button { width: 125px; height: 35px; background: url("https://static.igem.org/mediawiki/2012/f/f2/USTC-Software-images-software_normal.png"); }
 
-
#software_button:active { background: url("https://static.igem.org/mediawiki/2012/6/68/USTC-Software-images-software_active.png"); }
 
-
#team_button { width: 137px; height: 35px; background: url("https://static.igem.org/mediawiki/2012/6/6e/USTC-Software-images-team_normal.png"); position: relative; top: -2px !important; /* because the photo has some problem */ }
+
.nav_button + .nav_button{
-
#team_button:active { background: url("https://static.igem.org/mediawiki/2012/1/19/USTC-Software-images-team_active.png"); }
+
    margin-left:12px;
 +
    }
 +
    .nav_button a{
 +
        font-size:22px;
 +
        font-family: 'Marcellus SC', serif;
 +
    }
-
#notes_button { width: 135px; height: 35px; background: url("https://static.igem.org/mediawiki/2012/9/9a/USTC-Software-images-notes_normal.png"); }
 
-
#notes_button:active { background: url("https://static.igem.org/mediawiki/2012/f/f7/USTC-Software-images-notes_active.png"); }
 
-
#hp_button { width: 210px; height: 35px; background: url("https://static.igem.org/mediawiki/2012/e/e1/USTC-Software-images-hp_normal.png"); }
+
#header_wrapper a#igem_home{
-
#hp_button:active { background: url("https://static.igem.org/mediawiki/2012/8/86/USTC-Software-images-hp_active.png"); }
+
    position:absolute;
 +
    top:0px;
 +
    right:0px;
 +
}
 +
 
 +
 
 +
#navs {
 +
    clear:both;
 +
    margin-bottom:30px;
 +
}
 +
#navs div { margin-right: 5px; float:left;}
 +
#navs div a{
 +
    display:block;
 +
    height:100%;
 +
    width:100%;
 +
    text-decoration:none;
 +
    color:white;
 +
    text-shadow: 6px 6px 1px black;
 +
    -webkit-transition: color .5s ease-out;
 +
    -moz-transition: color .5s ease-out;
 +
    -o-transition: color .5s ease-out;
 +
    -ms-transition: color .5s ease-out;
 +
    transition: color .5s ease-out;
 +
   
 +
    }
 +
    #navs div a:active{
 +
        left:1px;
 +
        top:1px;
 +
        text-shadow: 4px 4px 1px black;
 +
    }
 +
    #navs div a:hover{
 +
        color:#3cb5f9;
 +
    }
 +
 
 +
#navs div ul{
 +
    display:none;
 +
    position:absolute;
 +
    z-index:99999999;
 +
}
 +
 
 +
#navs div ul li{
 +
    list-style:none;
 +
}
 +
 
 +
.nav_button ul li{
 +
    background-color:black;
 +
}
 +
 
 +
#navs div:hover ul{
 +
    display:block;
 +
}

Latest revision as of 11:32, 13 November 2012

  1. header_wrapper {
   width: 980px;
   position: relative;
   margin: 0px auto;
   margin-bottom:100px;
   float: none;
   list-style:none;

}

  1. header_wrapper a{
   display:block;
   text-decoration:none;
   color:white;

}


  1. team_logo {
   height: 74px; 
   float: left;
   margin-top: 30px;
   font-size:64px;
   font-family: 'Marcellus SC', serif;
   -webkit-transition: all .5s ease-out;
   -moz-transition: all .5s ease-out;
   -o-transition: all .5s ease-out;
   -ms-transition: all .5s ease-out;
   transition: all .5s ease-out;

}

  1. team_logo a{
   text-shadow: 8px 6px 1px black;
   position:relative;
   -webkit-transition: color .5s ease-out;
   -moz-transition: color .5s ease-out;
   -o-transition: color .5s ease-out;
   -ms-transition: color .5s ease-out;
   transition: color .5s ease-out;

}

  1. team_logo a:active{
   text-shadow: 6px 4px 1px black;
   left:1px;
   top:1px;

}

  1. team_logo:hover a{
   color:#3cb5f9;

}


.nav_button + .nav_button{

   margin-left:12px;
   }
   .nav_button a{
       font-size:22px;
       font-family: 'Marcellus SC', serif;
   }


  1. header_wrapper a#igem_home{
   position:absolute;
   top:0px;
   right:0px;

}


  1. navs {
   clear:both;
   margin-bottom:30px;

}

  1. navs div { margin-right: 5px; float:left;}
  2. navs div a{
   display:block;
   height:100%;
   width:100%;
   text-decoration:none;
   color:white;
   text-shadow: 6px 6px 1px black;
   -webkit-transition: color .5s ease-out;
   -moz-transition: color .5s ease-out;
   -o-transition: color .5s ease-out;
   -ms-transition: color .5s ease-out;
   transition: color .5s ease-out;
   
   }
   #navs div a:active{
       left:1px;
       top:1px;
       text-shadow: 4px 4px 1px black;
   }
   #navs div a:hover{
       color:#3cb5f9;
   }
  1. navs div ul{
   display:none;
   position:absolute;
   z-index:99999999;

}

  1. navs div ul li{
   list-style:none;

}

.nav_button ul li{

   background-color:black;

}

  1. navs div:hover ul{
   display:block;

}