Team:ZJU-China/CSS/Header.css
From 2014.igem.org
(Created page with "div.zju_header { } div.zju_menu { position: absolute; top: 0px; margin: 0px; width: 100%; height: auto; text-align: right; display: inline; ...") |
|||
Line 1: | Line 1: | ||
div.zju_header { | div.zju_header { | ||
- | + | margin-top: -20px; | |
+ | text-align: right; | ||
+ | background-color: #383838; | ||
} | } | ||
div.zju_menu { | div.zju_menu { | ||
- | position: | + | position: relative; |
top: 0px; | top: 0px; | ||
margin: 0px; | margin: 0px; | ||
- | width: | + | width: inherit; |
height: auto; | height: auto; | ||
- | text-align: | + | text-align: center; |
- | display: | + | display: block; |
- | background-color: | + | background-color: transparent; |
} | } | ||
- | + | a#igem_logo { | |
+ | display:inline-block; | ||
position: relative; | position: relative; | ||
- | text-align: | + | width: 48px; |
- | + | text-align: center; | |
- | width: | + | margin: 14px 0px 0px 0px;/* |
+ | border-color: white; | ||
+ | border-style: groove; | ||
+ | border-width: 0px 1px 0px 1px;*/ | ||
+ | } | ||
+ | |||
+ | img#igem_logo { | ||
+ | height: 48px; | ||
} | } | ||
Line 24: | Line 34: | ||
position: relative; | position: relative; | ||
text-align: left; | text-align: left; | ||
- | padding-right: | + | text-decoration: none; |
+ | padding-right: 8px; | ||
width: 10%; | width: 10%; | ||
color: white; | color: white; | ||
Line 31: | Line 42: | ||
font-style: italic; | font-style: italic; | ||
display: inline; | display: inline; | ||
+ | border: 0px; | ||
} | } | ||
ul.zju_menu_list{ | ul.zju_menu_list{ | ||
- | display:inline; | + | display: inline-block; |
+ | text-align: center; | ||
+ | margin: 14px 0px 0px 0px; | ||
+ | width: auto; | ||
+ | min-width: 630px; | ||
} | } | ||
Line 42: | Line 58: | ||
font-family: "Segoe Print"; | font-family: "Segoe Print"; | ||
font-style: normal; | font-style: normal; | ||
- | font-size: | + | font-size: inherit; |
text-align: center; | text-align: center; | ||
} | } | ||
Line 48: | Line 64: | ||
ul.zju_menu_list > li { | ul.zju_menu_list > li { | ||
position: relative; | position: relative; | ||
- | margin- | + | margin-right: -8px; |
- | + | ||
width: auto; | width: auto; | ||
- | padding: | + | /*margin-top: 14px;*/ |
+ | padding: 10pt 1%; | ||
border-style: solid; | border-style: solid; | ||
- | border-width: 1px; | + | border-width: 0px 1px; |
border-color: #9d9d9d; | border-color: #9d9d9d; | ||
- | border-radius: | + | border-radius: 1px; |
color: #ababab; | color: #ababab; | ||
font-family: "Segoe Print"; | font-family: "Segoe Print"; | ||
font-style: normal; | font-style: normal; | ||
- | font-size: | + | font-size: 14pt; |
text-align: center; | text-align: center; | ||
background-color: #1f1f1f; | background-color: #1f1f1f; | ||
Line 67: | Line 83: | ||
ul.zju_menu_list > li:hover{ | ul.zju_menu_list > li:hover{ | ||
border-radius: 3px; | border-radius: 3px; | ||
- | box-shadow: | + | box-shadow: 0px 5px 2px #888888; |
color: #ffffff; | color: #ffffff; | ||
- | |||
background-color: #646464; | background-color: #646464; | ||
} | } | ||
Line 95: | Line 110: | ||
list-style: none; | list-style: none; | ||
width: 200%; | width: 200%; | ||
- | top: | + | top: 30pt; |
right: -50%; | right: -50%; | ||
- | box-shadow: | + | box-shadow: 5px 5px 5px #888888; |
position: absolute; | position: absolute; | ||
- | background-color: | + | background-color: transparent; |
} | } | ||
Line 109: | Line 124: | ||
ul.zju_sub_menu > li{ | ul.zju_sub_menu > li{ | ||
border-bottom-style: solid; | border-bottom-style: solid; | ||
- | border-bottom-width: | + | border-bottom-width: 3pt; |
border-bottom-color: #A0A0A0; | border-bottom-color: #A0A0A0; | ||
+ | margin-bottom: 0px; | ||
float: left; | float: left; | ||
font-family: inherit; | font-family: inherit; | ||
Line 117: | Line 133: | ||
text-decoration: none; | text-decoration: none; | ||
padding: 4px 10px; | padding: 4px 10px; | ||
- | background-color: | + | background-color: #646464; |
+ | opacity: 0.5; | ||
} | } | ||
ul.zju_sub_menu > li:hover { | ul.zju_sub_menu > li:hover { | ||
- | + | border-bottom-color: #FFFFFF; | |
- | color: # | + | opacity: 0.9; |
- | background-color: # | + | color: #5080D0; |
+ | background-color: #E0E0F4; | ||
} | } | ||
/*li#zju_menu_long { | /*li#zju_menu_long { | ||
- | width: | + | font-size: 12px; |
+ | }*/ | ||
+ | |||
+ | |||
+ | /*--- decoration of bar ---*/ | ||
+ | ul.zju_menu_list > li > a span { | ||
+ | position: absolute; | ||
+ | bottom: 0px; | ||
+ | right: 0px; | ||
+ | display: block; | ||
+ | background-color: #D0D0D0; | ||
+ | opacity: 0.5; | ||
+ | height: 40%; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | ul.zju_menu_list > li:hover > a span { | ||
+ | position: absolute; | ||
+ | top: 0px; | ||
+ | right: 0px; | ||
+ | display: block; | ||
+ | background-color: white; | ||
+ | opacity: 0.3; | ||
+ | height: 60%; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | /*div.zju_menu > a > span { | ||
+ | position: absolute; | ||
+ | bottom: 0px; | ||
+ | display: block; | ||
+ | background-color: white; | ||
+ | opacity: 0.5; | ||
+ | border-top: #A0A0A0 solid 3pt; | ||
+ | height: 35%; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | div.zju_menu > a:hover > span { | ||
+ | position: absolute; | ||
+ | top: 0px; | ||
+ | display: block; | ||
+ | background-color: white; | ||
+ | opacity: 0.2; | ||
+ | border-top: none; | ||
+ | border-bottom: #A0A0A0 solid 3pt; | ||
+ | height: 65%; | ||
+ | width: 100%; | ||
}*/ | }*/ |
Revision as of 14:25, 31 August 2014
div.zju_header {
margin-top: -20px; text-align: right; background-color: #383838;
}
div.zju_menu {
position: relative; top: 0px; margin: 0px; width: inherit; height: auto; text-align: center; display: block; background-color: transparent;
}
a#igem_logo {
display:inline-block; position: relative; width: 48px; text-align: center; margin: 14px 0px 0px 0px;/* border-color: white; border-style: groove; border-width: 0px 1px 0px 1px;*/
}
img#igem_logo {
height: 48px;
}
h1#team_name {
position: relative; text-align: left; text-decoration: none; padding-right: 8px; width: 10%; color: white; font-size: 12pt; font-family: "Segoe UI"; font-style: italic; display: inline; border: 0px;
}
ul.zju_menu_list{
display: inline-block; text-align: center; margin: 14px 0px 0px 0px; width: auto; min-width: 630px;
}
ul.zju_menu_list > li > a:active, ul.zju_menu_list > li > a:visited, ul.zju_menu_list > li > a:link {
text-decoration: none; color: #ababab; font-family: "Segoe Print"; font-style: normal; font-size: inherit; text-align: center;
}
ul.zju_menu_list > li {
position: relative; margin-right: -8px; width: auto; /*margin-top: 14px;*/ padding: 10pt 1%; border-style: solid; border-width: 0px 1px; border-color: #9d9d9d; border-radius: 1px; color: #ababab; font-family: "Segoe Print"; font-style: normal; font-size: 14pt; text-align: center; background-color: #1f1f1f; display: inline-block;
}
ul.zju_menu_list > li:hover{
border-radius: 3px; box-shadow: 0px 5px 2px #888888; color: #ffffff; background-color: #646464;
}
ul.zju_menu_list > li a:hover {
color: #ffffff;
}
ul.zju_menu_list > li:hover ul {
display: block; z-index: 1;
}
ul.zju_menu_list > li li {
float: none;
}
/*ul.zju_menu_list > li:hover > ul > li {
display: inline;
}*/
ul.zju_sub_menu {
float: none; display: none; list-style: none; width: 200%; top: 30pt; right: -50%; box-shadow: 5px 5px 5px #888888; position: absolute; background-color: transparent;
}
ul.zju_sub_menu > li a:link, ul.zju_sub_menu > li a:active, ul.zju_sub_menu > li a:visited {
text-decoration: none; color: inherit;
}
ul.zju_sub_menu > li{
border-bottom-style: solid; border-bottom-width: 3pt; border-bottom-color: #A0A0A0; margin-bottom: 0px; float: left; font-family: inherit; font-size: 14pt; text-align: center; text-decoration: none; padding: 4px 10px; background-color: #646464; opacity: 0.5;
}
ul.zju_sub_menu > li:hover {
border-bottom-color: #FFFFFF; opacity: 0.9; color: #5080D0; background-color: #E0E0F4;
}
/*li#zju_menu_long {
font-size: 12px;
}*/
/*--- decoration of bar ---*/
ul.zju_menu_list > li > a span {
position: absolute; bottom: 0px; right: 0px; display: block; background-color: #D0D0D0; opacity: 0.5; height: 40%; width: 100%;
}
ul.zju_menu_list > li:hover > a span {
position: absolute; top: 0px; right: 0px; display: block; background-color: white; opacity: 0.3; height: 60%; width: 100%;
}
/*div.zju_menu > a > span {
position: absolute; bottom: 0px; display: block; background-color: white; opacity: 0.5; border-top: #A0A0A0 solid 3pt; height: 35%; width: 100%;
}
div.zju_menu > a:hover > span {
position: absolute; top: 0px; display: block; background-color: white; opacity: 0.2; border-top: none; border-bottom: #A0A0A0 solid 3pt; height: 65%; width: 100%;
}*/