Team:RHIT/StyleSheets/Navigation
From 2014.igem.org
Line 1: | Line 1: | ||
#NavBar { | #NavBar { | ||
- | background: # | + | background: #6F1992; |
width: 100%; | width: 100%; | ||
min-width: 500px; | min-width: 500px; | ||
Line 15: | Line 15: | ||
#NavBar ul { | #NavBar ul { | ||
- | background: # | + | background: #6F1992; |
list-style: none; | list-style: none; | ||
position: relative; | position: relative; | ||
Line 57: | Line 57: | ||
#NavBar ul ul { | #NavBar ul ul { | ||
display: none; | display: none; | ||
- | background: # | + | background: #6F1992; |
padding: 0 10px; | padding: 0 10px; | ||
position: absolute; | position: absolute; | ||
Line 84: | Line 84: | ||
#NavBar ul ul ul { | #NavBar ul ul ul { | ||
display: none; | display: none; | ||
- | background: # | + | background: #6F1992; |
padding: 0 10px; | padding: 0 10px; | ||
position: relative; | position: relative; |
Revision as of 17:47, 7 August 2014
- NavBar {
background: #6F1992; width: 100%; min-width: 500px; height: 120px; z-index: 100; position: fixed; text-align: center; top: 5px; }
- NavBar #TopLvlNavLink {
display: none; }
- NavBar ul {
background: #6F1992; 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;
text-align: center;
}
- NavBar li:hover > a {
text-decoration: overline underline; }
- NavBar a {
display: block; width: 100%; height: 100%; padding: 10px 10px; color: #FFFFFF; text-decoration: none; font: 20px Raleway, Arial, san-serif; }
- NavBar > #TopLvlNav > li > a {
padding: 30px 0;
}
- NavBar ul ul {
display: none; background: #6F1992; padding: 0 10px; position: absolute; top: 85%; z-index: 100; margin-left: -10px; }
- NavBar ul li:hover > ul {
display: block; }
- NavBar ul ul li {
float: none; position: relative; }
- NavBar ul ul li:hover > a {
text-decoration: underline;
]
- NavBar ul ul a {
font-size: 16px; }
- NavBar ul ul ul {
display: none;
background: #6F1992; padding: 0 10px; position: relative; z-index: 100; margin: 0; }
- NavBar ul ul ul li {
float:right; position: relative
}
- 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; }