Template:USTC-Software/header/css
From 2013.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
#top { | #top { | ||
position: fixed; | position: fixed; | ||
- | background: # | + | background-color:#34495e; |
width:100%; | width:100%; | ||
- | height: | + | height:100px; |
z-index: 5000; | z-index: 5000; | ||
top:0px; | top:0px; | ||
left:0px; | left:0px; | ||
- | + | opacity:1; | |
- | + | ||
- | + | ||
} | } | ||
Line 15: | Line 14: | ||
#header { | #header { | ||
position: relative; | position: relative; | ||
- | background: # | + | /*background:url(../images/bg.png) repeat-x; |
- | border-radius: 0 0 | + | background-color:#34495e; |
+ | border-radius: 0 0 10px 10px; | ||
-moz-border-radius: 0 0 5px 5px; | -moz-border-radius: 0 0 5px 5px; | ||
-webkit-border-radius: 0 0 15px 15px; | -webkit-border-radius: 0 0 15px 15px; | ||
- | height: | + | height:95px; |
font-family: "Helvetica Neue","Arial",sans-serif; | font-family: "Helvetica Neue","Arial",sans-serif; | ||
- | + | ||
border-top-width:0px; | border-top-width:0px; | ||
- | max-width: | + | max-width:980px; |
- | width: | + | width:970px; |
margin-left:-15px; | margin-left:-15px; | ||
} | } | ||
Line 47: | Line 47: | ||
#nav-strip { | #nav-strip { | ||
- | margin: | + | margin-top:50px; |
+ | margin-left:-25px; | ||
width: auto; | width: auto; | ||
- | height: | + | height: 25px; |
position: absolute; | position: absolute; | ||
z-index:9999; | z-index:9999; | ||
- | left: | + | left:190px; |
} | } | ||
- | #nav-strip a:hover{ | + | #nav-strip a:hover { text-decoration:none;} |
- | + | ||
- | } | + | |
Line 65: | Line 64: | ||
float: left; | float: left; | ||
position:relative; | position:relative; | ||
- | padding-top: | + | padding-top:10px; |
- | width: | + | width:120px;/*主菜单宽 110px*/ |
- | height: | + | height: 35px; |
text-align:center; | text-align:center; | ||
} | } | ||
- | #nav-strip ul li.nav-item:hover,#nav-strip ul li.nav-item.hover { | + | #nav-strip ul li.nav-item:hover, |
- | + | #nav-strip ul li.nav-item.hover { | |
+ | background: #fff; | ||
} | } | ||
- | #nav-strip ul li.nav-item:hover a, #nav-strip ul li.nav-item.hover a { | + | #nav-strip ul li.nav-item:hover a, |
- | + | #nav-strip ul li.nav-item.hover a { | |
+ | color: #000; | ||
} | } | ||
+ | |||
#nav-strip ul li a { | #nav-strip ul li a { | ||
- | color: # | + | color:#fff;/*#09c;*/ |
display:block; | display:block; | ||
- | font-size: | + | font-size: 20px; |
+ | font-weight:200; | ||
} | } | ||
Line 89: | Line 92: | ||
display: none; | display: none; | ||
position:absolute; | position:absolute; | ||
- | background: # | + | background: #34495e; |
top:45px; | top:45px; | ||
} | } | ||
- | + | #nav-strip ul li .subnav ul li:hover{ | |
- | + | background-color:#4d77a1; | |
+ | } | ||
+ | |||
#nav-strip .subnav-inner { | #nav-strip .subnav-inner { | ||
float: left; | float: left; | ||
- | width: | + | width: 120px; |
} | } | ||
+ | #nav-strip .subnav .subnav-inner ul li.hp{ | ||
+ | height:60px; | ||
+ | background-color:#34495e; | ||
+ | } | ||
+ | #nav-strip .subnav .subnav-inner ul .hp:hover{ | ||
+ | background:#7599bc; | ||
+ | } | ||
#nav-strip ul li .subnav ul { | #nav-strip ul li .subnav ul { | ||
float: left; | float: left; | ||
- | width: | + | width: 120px; |
list-style:none; | list-style:none; | ||
+ | height:auto; | ||
} | } | ||
Line 109: | Line 122: | ||
#nav-strip ul li .subnav ul li { | #nav-strip ul li .subnav ul li { | ||
display:block; | display:block; | ||
- | border- | + | border-top:2px outset #34495e;/*1b2d3f;*/ |
- | + | float:left; | |
- | width: | + | width: 120px;/*白线宽120px度*/ |
} | } | ||
Line 117: | Line 130: | ||
#nav-strip ul li .subnav ul li a { | #nav-strip ul li .subnav ul li a { | ||
font-weight: normal; | font-weight: normal; | ||
- | margin-top: | + | margin-top:12px; |
- | height: | + | height:32px; |
margin-bottom:2px; | margin-bottom:2px; | ||
+ | margin-top:8px; | ||
} | } | ||
Line 131: | Line 145: | ||
- | #nav-strip ul li .subnav ul li a,#nav-strip ul li.nav-item:hover .subnav ul li a { | + | #nav-strip ul li .subnav ul li a, |
- | + | #nav-strip ul li.nav-item:hover .subnav ul li a { white-space: normal;} | |
- | } | + | |
- | #nav-strip ul li .subnav ul li.active a,#nav-strip ul li .subnav ul li a:hover { | + | #nav-strip ul li .subnav ul li.active a, |
- | + | #nav-strip ul li .subnav ul li a:hover { color:#000;} | |
- | } | + | |
#team_logo { | #team_logo { | ||
- | width: | + | width: 275px; |
- | height: | + | height: 45px; |
float: left; | float: left; | ||
- | margin-top: | + | margin-top:5px; |
- | margin-left: | + | margin-left:-95px; |
- | font-size: | + | font-size:35px; |
font-family:'Open Sans',"Helvetica Neue",arial,serif; | font-family:'Open Sans',"Helvetica Neue",arial,serif; | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
#team_logo a{ | #team_logo a{ | ||
- | color:# | + | color:#ed7751; |
text-decoration:none; | text-decoration:none; | ||
- | text-shadow: 4px 3px 0.5px # | + | text-shadow: 4px 3px 0.5px #03C 0.6; |
position:relative; | position:relative; | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
+ | #team_logo a img{ | ||
+ | width:220px; | ||
+ | height:134px; | ||
+ | } | ||
#team_logo a:active{ | #team_logo a:active{ | ||
- | text-shadow: | + | text-shadow:2px 2px 2px #f1f0f0; |
left:1px; | left:1px; | ||
top:1px; | top:1px; | ||
} | } | ||
- | #team_logo:hover a{ | + | #team_logo:hover a{ color:#439b66;} |
- | + | ||
- | } | + | |
#igem { | #igem { | ||
float:right; | float:right; | ||
margin-top:-1px; | margin-top:-1px; | ||
- | margin-right:- | + | margin-right:-55px; |
- | + | height:83px; | |
- | height: | + | width:110px; |
- | width: | + | } |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
#igem a img{ | #igem a img{ | ||
transition:width 1s, height 1s; | transition:width 1s, height 1s; | ||
-moz-transition:width 1s, height 1s, -moz-transform 1s; | -moz-transition:width 1s, height 1s, -moz-transform 1s; | ||
-webkit-transition:width 1s, height 1s, -webkit-transform 1s; | -webkit-transition:width 1s, height 1s, -webkit-transform 1s; | ||
- | -o-transition:width 1s, height 1s, -o-transform 1s; | + | -o-transition:width 1s, height 1s, -o-transform 1s; |
-ms-transition:width 1s, height 1s, -ms-transform 1s; | -ms-transition:width 1s, height 1s, -ms-transform 1s; | ||
} | } | ||
#igem a img:hover{ | #igem a img:hover{ | ||
transform:rotate(360deg); | transform:rotate(360deg); | ||
- | -moz-transform:rotate(360deg); | + | -moz-transform:rotate(360deg); |
- | -webkit-transform:rotate(360deg); | + | -webkit-transform:rotate(360deg); |
-o-transform:rotate(360deg); | -o-transform:rotate(360deg); | ||
-ms-transition:width 1s, height 1s, -ms-transform 1s; | -ms-transition:width 1s, height 1s, -ms-transform 1s; | ||
} | } |
Revision as of 16:46, 21 September 2013
- top {
position: fixed; background-color:#34495e; width:100%; height:100px; z-index: 5000; top:0px; left:0px;
opacity:1;
}
- header {
position: relative; /*background:url(../images/bg.png) repeat-x;
background-color:#34495e;
border-radius: 0 0 10px 10px; -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 15px 15px; height:95px; font-family: "Helvetica Neue","Arial",sans-serif; border-top-width:0px; max-width:980px; width:970px; margin-left:-15px;
}
- nav-strip a {
color: #fff; text-decoration: none; cursor: pointer; cursor: hand;
}
- nav-strip ul {
margin:0; padding:0; list-style:none;
}
- nav-strip {
margin-top:50px; margin-left:-25px; width: auto; height: 25px; position: absolute; z-index:9999; left:190px;
}
- nav-strip a:hover { text-decoration:none;}
- nav-strip ul li.nav-item {
display: inline; float: left; position:relative; padding-top:10px; width:120px;/*主菜单宽 110px*/ height: 35px; text-align:center;
}
- nav-strip ul li.nav-item:hover,
- nav-strip ul li.nav-item.hover {
background: #fff;
}
- nav-strip ul li.nav-item:hover a,
- nav-strip ul li.nav-item.hover a {
color: #000;
}
- nav-strip ul li a {
color:#fff;/*#09c;*/ display:block; font-size: 20px;
font-weight:200; }
- nav-strip ul li .subnav {
display: none; position:absolute; background: #34495e; top:45px;
}
- nav-strip ul li .subnav ul li:hover{
background-color:#4d77a1; }
- nav-strip .subnav-inner {
float: left; width: 120px;
}
- nav-strip .subnav .subnav-inner ul li.hp{
height:60px; background-color:#34495e; }
- nav-strip .subnav .subnav-inner ul .hp:hover{
background:#7599bc; }
- nav-strip ul li .subnav ul {
float: left; width: 120px; list-style:none;
height:auto; }
- nav-strip ul li .subnav ul li {
display:block; border-top:2px outset #34495e;/*1b2d3f;*/
float:left;
width: 120px;/*白线宽120px度*/
}
- nav-strip ul li .subnav ul li a {
font-weight: normal; margin-top:12px; height:32px; margin-bottom:2px;
margin-top:8px; }
- nav-strip ul li .subnav ul li a,
- nav-strip ul li.nav-item:hover .subnav ul li a{
position: relative; color: #fff; text-align:center;
}
- nav-strip ul li .subnav ul li a,
- nav-strip ul li.nav-item:hover .subnav ul li a { white-space: normal;}
- nav-strip ul li .subnav ul li.active a,
- nav-strip ul li .subnav ul li a:hover { color:#000;}
- team_logo {
width: 275px; height: 45px; float: left; margin-top:5px; margin-left:-95px; font-size:35px; font-family:'Open Sans',"Helvetica Neue",arial,serif;
}
- team_logo a{
color:#ed7751; text-decoration:none; text-shadow: 4px 3px 0.5px #03C 0.6; position:relative;
}
- team_logo a img{
width:220px; height:134px; }
- team_logo a:active{
text-shadow:2px 2px 2px #f1f0f0; left:1px; top:1px;
}
- team_logo:hover a{ color:#439b66;}
- igem {
float:right; margin-top:-1px; margin-right:-55px; height:83px; width:110px; }
- igem a img{
transition:width 1s, height 1s; -moz-transition:width 1s, height 1s, -moz-transform 1s; -webkit-transition:width 1s, height 1s, -webkit-transform 1s; -o-transition:width 1s, height 1s, -o-transform 1s; -ms-transition:width 1s, height 1s, -ms-transform 1s;
}
- igem a img:hover{
transform:rotate(360deg); -moz-transform:rotate(360deg); -webkit-transform:rotate(360deg); -o-transform:rotate(360deg); -ms-transition:width 1s, height 1s, -ms-transform 1s;
}