Template:Team:Berkeley/css2
From 2013.igem.org
(Difference between revisions)
(Created page with "#topmenu { display: block; position: fixed; top: 0; width: 89.06244%; padding: 0 5.46878%; height: 80px; background: url('...") |
|||
Line 82: | Line 82: | ||
#bodyContent{padding: 81px 0 0px;} | #bodyContent{padding: 81px 0 0px;} | ||
+ | /* Navigation - Submenu | ||
+ | -------------------------------------------------*/ | ||
+ | |||
+ | ul.subs { | ||
+ | display: block; | ||
+ | position: fixed; | ||
+ | top: -165px; | ||
+ | left: 0; | ||
+ | width: 100%; | ||
+ | height: 160px; | ||
+ | box-shadow: 0 0 5px #ccc; | ||
+ | background: url('https://static.igem.org/mediawiki/2013/2/28/Sub-bg.png') repeat-x top left; | ||
+ | text-align: center; | ||
+ | z-index: 5; | ||
+ | -webkit-transition: all .3s ease-in-out; | ||
+ | -moz-transition: all .3s ease-in-out; | ||
+ | transition: all .3s ease-in-out;} | ||
+ | |||
+ | ul.subs.active { | ||
+ | top: 79px; | ||
+ | left: 0;} | ||
+ | |||
+ | ul.subs li:first-child {padding-left: 5px; background:url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_divider.png') no-repeat right center, url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_divider.png') no-repeat left center; } | ||
+ | ul.subs li { | ||
+ | display:inline-block; | ||
+ | width: 10%; | ||
+ | max-width: 180px; | ||
+ | font-family: 'Source Sans Pro', sans-serif; | ||
+ | font-size:13px; | ||
+ | vertical-align: top; | ||
+ | padding: 0 5px 0 0; | ||
+ | background: url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_divider.png') no-repeat right center;} | ||
+ | |||
+ | ul.subs li:hover { | ||
+ | background: url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_hover_bg.png') no-repeat top right; | ||
+ | background-size: cover; | ||
+ | margin: 0 0 0 -6px; | ||
+ | padding: 0 5px 0 6px; | ||
+ | } | ||
+ | ul.subs li:first-child:hover {padding: 0 5px 0 4px; margin-left: 1px; } | ||
+ | ul.subs li a { | ||
+ | display: block; | ||
+ | padding: 40px 0 0; | ||
+ | height: 120px; | ||
+ | line-height: 16px; | ||
+ | } | ||
+ | |||
+ | ul.subs li a img {padding-bottom: 10px;} | ||
+ | |||
+ | ul.subs li .selflink img {padding-bottom: 10px;} | ||
+ | ul.subs .selflink {display:block; font-weight: normal !important; color: #0d9c64; cursor: default; padding: 40px 0 0; height: 120px; line-height: 16px;} |
Revision as of 02:16, 18 October 2013
- topmenu {
display: block; position: fixed; top: 0; width: 89.06244%; padding: 0 5.46878%; height: 80px; background: url('https://static.igem.org/mediawiki/2013/1/1d/Top-gradient.png') #f1f1f1 repeat-x left top; border-top: 1px solid #0d9c64; box-shadow: 0 0 5px #888; z-index: 10;}
- topmenu .selflink {font-weight: normal !important; color: #0d9c64; cursor: default; padding: 0 12px 0 8px;}
- topmenu .menucenter li:hover .selflink {padding: 0 11px 0 9px}
- topmenu .menucenter{position: relative; display: block; line-height: 80px;}
- topmenu .menuleft {position: absolute; line-height: 76px; z-index: 3;}
- topmenu .menuleft a img {position: relative; height: 60px; top: 10px;}
- topmenu .menucenter {
display:block; margin: 0 auto; width:100%; text-align: center; font-size: 0;} #topmenu .menucenter li { display:inline-block; margin: 0; background: url('https://static.igem.org/mediawiki/2013/c/ca/Top-menu-divider.png') no-repeat right top; font-size: 16px;} #topmenu .menucenter li:first-child { background: url('https://static.igem.org/mediawiki/2013/c/ca/Top-menu-divider.png') no-repeat left top, url('https://static.igem.org/mediawiki/2013/c/ca/Top-menu-divider.png') no-repeat right top;} #topmenu .menucenter li:hover { background: url('https://static.igem.org/mediawiki/2013/0/03/Top-menu-hover.png') repeat-x top left; border-left:1px solid #ccc; border-right:1px solid #ccc; margin: 0 0 0 -2px;} #topmenu .menucenter li a {display:block; height: 79px; padding: 0 12px 0 8px;} #topmenu .menucenter li:hover a {padding: 0 11px 0 9px}
- topmenu .menuright {position: absolute; display: block; width: 109px; height: 80px; right: 5.46878%; top: 0; z-index: 3;}
- topmenu .menuright a{display: inline-block; position: relative;}
#topmenu .menuright a.twitter { display:block; float: left; width: 36px; height: 30px; margin-top: 25px; padding: 0; background: url('https://static.igem.org/mediawiki/2013/d/de/Twitterbtn.png') left top no-repeat; } #topmenu .menuright a.facebook { display:block; float: left; width: 36px; height: 34px; margin-top: 23px; padding: 0; background: url('https://static.igem.org/mediawiki/2013/7/7c/Facebookbtn.png') left top no-repeat; } #topmenu .menuright a.mail { display:block; float: left; width: 37px; height: 29px; margin-top: 26px; padding: 0; background: url('https://static.igem.org/mediawiki/2013/9/94/Mailbtn.png') left top no-repeat; } #topmenu .menuright a:hover { background-position: right top; }
- topmenu ul, topmenu li {
-webkit-margin-before: 0; -webkit-margin-after: 0; -webkit-padding-start: 0;}
- bodyContent{padding: 81px 0 0px;}
/* Navigation - Submenu
*/
ul.subs {
display: block; position: fixed; top: -165px; left: 0; width: 100%; height: 160px; box-shadow: 0 0 5px #ccc; background: url('https://static.igem.org/mediawiki/2013/2/28/Sub-bg.png') repeat-x top left; text-align: center; z-index: 5; -webkit-transition: all .3s ease-in-out; -moz-transition: all .3s ease-in-out; transition: all .3s ease-in-out;}
ul.subs.active {
top: 79px; left: 0;}
ul.subs li:first-child {padding-left: 5px; background:url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_divider.png') no-repeat right center, url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_divider.png') no-repeat left center; } ul.subs li {
display:inline-block; width: 10%; max-width: 180px; font-family: 'Source Sans Pro', sans-serif; font-size:13px; vertical-align: top; padding: 0 5px 0 0; background: url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_divider.png') no-repeat right center;}
ul.subs li:hover {
background: url('http://beoplay.com/resources/sbv-custom/img/megamenu/mm_hover_bg.png') no-repeat top right; background-size: cover; margin: 0 0 0 -6px; padding: 0 5px 0 6px;
} ul.subs li:first-child:hover {padding: 0 5px 0 4px; margin-left: 1px; } ul.subs li a {
display: block; padding: 40px 0 0; height: 120px; line-height: 16px;
}
ul.subs li a img {padding-bottom: 10px;}
ul.subs li .selflink img {padding-bottom: 10px;} ul.subs .selflink {display:block; font-weight: normal !important; color: #0d9c64; cursor: default; padding: 40px 0 0; height: 120px; line-height: 16px;}