Team:UNITN-Trento/CSS/Subs/Header
From 2013.igem.org
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
#tn-header { | #tn-header { | ||
- | + | min-height: 210px; | |
- | + | background-color: #038c7e; | |
- | + | border-bottom: 10px solid #bf1b39; | |
- | + | text-align: center; | |
} | } | ||
.tn-logo { | .tn-logo { | ||
- | + | display: inline-block; | |
} | } | ||
.tn-logo.tn-side { | .tn-logo.tn-side { | ||
- | + | position: relative; | |
- | + | top: -1em; | |
- | + | width: 125px; | |
- | + | ||
- | + | margin: 0 2em; | |
} | } | ||
#tn-bfruity-logo { | #tn-bfruity-logo { | ||
- | + | margin-top: 2.2em; | |
} | } | ||
#tn-igem-unitn-logo { | #tn-igem-unitn-logo { | ||
- | + | margin-top: 2.1em; | |
} | } | ||
#tn-igem-main { | #tn-igem-main { | ||
- | + | margin-top: 2.3em; | |
} | } | ||
+ | |||
+ | /*MENU*/ | ||
#tn-menu { | #tn-menu { | ||
- | + | position: relative; | |
- | + | top: -2.7em; | |
- | + | line-height: 30px; | |
- | + | margin: 0 auto; | |
- | + | list-style: none; | |
} | } | ||
- | #tn-menu | + | #tn-menu li { |
- | + | width: 150px; | |
+ | padding: 0; | ||
+ | margin: 0; | ||
- | + | font-family: "Trebuchet MS", Helvetica, sans-serif; | |
- | + | font-variant: small-caps; | |
- | + | font-weight: bold; | |
+ | font-size: 1em; | ||
- | + | background-color: #038c7e; | |
+ | color: #f0f2df; | ||
+ | border: 1px solid transparent; | ||
} | } | ||
- | #tn-menu > li | + | #tn-menu > li { |
- | + | display: inline-table; | |
- | + | padding-top: 0.2em; | |
+ | padding-bottom: 13px; | ||
- | + | height: 30px; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | opacity: 0.9; | |
} | } | ||
- | #tn-menu li { | + | #tn-menu > li:hover { |
- | + | opacity: 1.0; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | /*SUB_MENU*/ | |
- | + | ||
- | + | ||
- | #tn-menu | + | #tn-menu > li > ul { |
- | + | position: absolute; | |
- | + | top: 100%; | |
- | + | z-index: 5; | |
- | + | ||
- | + | display: none; | |
- | + | padding: 0; margin: 0; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | background: none; | |
- | + | ||
- | + | ||
} | } | ||
- | #tn-menu li:hover | + | #tn-menu > li:hover > ul { |
- | + | display:block; | |
} | } |
Revision as of 12:50, 9 August 2013
- tn-header {
min-height: 210px;
background-color: #038c7e; border-bottom: 10px solid #bf1b39;
text-align: center;
}
.tn-logo {
display: inline-block;
}
.tn-logo.tn-side {
position: relative; top: -1em;
width: 125px; margin: 0 2em;
}
- tn-bfruity-logo {
margin-top: 2.2em;
}
- tn-igem-unitn-logo {
margin-top: 2.1em;
}
- tn-igem-main {
margin-top: 2.3em;
}
/*MENU*/
- tn-menu {
position: relative; top: -2.7em;
line-height: 30px;
margin: 0 auto;
list-style: none;
}
- tn-menu li {
width: 150px; padding: 0; margin: 0;
font-family: "Trebuchet MS", Helvetica, sans-serif; font-variant: small-caps; font-weight: bold; font-size: 1em;
background-color: #038c7e; color: #f0f2df; border: 1px solid transparent;
}
- tn-menu > li {
display: inline-table; padding-top: 0.2em; padding-bottom: 13px;
height: 30px;
opacity: 0.9;
}
- tn-menu > li:hover {
opacity: 1.0;
}
/*SUB_MENU*/
- tn-menu > li > ul {
position: absolute; top: 100%; z-index: 5;
display: none; padding: 0; margin: 0;
background: none;
}
- tn-menu > li:hover > ul {
display:block;
}