Team:RHIT/StyleSheets/Navigation
From 2014.igem.org
- NavBar {
background: #69221A; width: 100%; min-width: 766px; height: 140px; z-index: 10; position: fixed; text-align: center; top: 25px; }
- NavBar #TopLvlNavLink {
display: none; }
- NavBar ul {
background: #69221A; list-style: none; position: relative; display: inline-table; padding: 0; margin: 0; }
- NavBar ul:after {
content: ""; clear: both; display: block; }
- NavBar li {
float: left; width: 124px;
valign: center;
text-align: center; }
- NavBar li:hover > a {
text-decoration: underline; }
- NavBar a {
display: block; width: 100%; height: 100%; padding: 15px 0; color: #FFFFFF; text-decoration: none; font: 22px Raleway, Arial, san-serif; }
- NavBar > #TopLvlNav > li > a {
padding: 30px 0;
}
- NavBar ul ul {
display: none; background: #69221A; padding: 0 10px; position: absolute; top: 95%; z-index: 10; margin-left: -10px; }
- NavBar ul li:hover > ul {
display: block; }
- NavBar ul ul li {
float: none; position: relative; }
- NavBar ul ul a {
font-size: 18px; }
- NavBar ul ul ul {
position: absolute; left: 100%; top: 0; margin: 0; }
- NavBarCollapse {
position: fixed; width: 120px; height: 60px; top: 25px; background: orange; z-index: 10; }
- NavBarCollapse #TopLvlNavLink {
display: block; width: 100%; height: 100%; }
- NavBarCollapse:after {
content: ""; clear: both; display: block; }
- NavBarCollapse ul {
display: none; list-style: none; padding: 0; }
- NavBarCollapse ul:after {
content: ""; clear: both; display: block; }
- NavBarCollapse li {
float: left; display: block; clear: both; width: 120px; padding: 0; background: green; }
- NavBarCollapse li:hover {
background: pink; }
- NavBarCollapse a {
color: #FFFFFF; display: block; text-decoration: none; padding: 10px 15px; }