Team:Uppsala/navbar.css
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
#menu { | #menu { | ||
- | background: # | + | background: #000; |
height: 50px; | height: 50px; | ||
} | } | ||
Line 25: | Line 25: | ||
position: relative; | position: relative; | ||
width: calc(100%/9); | width: calc(100%/9); | ||
- | border-top: 5px solid # | + | border-top: 5px solid #000; |
- | border-bottom: 5px solid # | + | border-bottom: 5px solid #000; |
} | } | ||
Line 49: | Line 49: | ||
#menu ul li a { | #menu ul li a { | ||
- | background: # | + | background: #000; |
color: #fff; | color: #fff; | ||
Revision as of 13:01, 2 July 2014
- menu {
background: #000; height: 50px;
}
- menu ul {
margin:0;padding:0; position:absolute; width:100%;
}
- menu ul a {
text-decoration: none;
}
- menu ul li {
list-style: none; float: left; position: relative; width: calc(100%/9);
}
- menu > ul > li {
list-style: none; float: left; position: relative; width: calc(100%/9); border-top: 5px solid #000; border-bottom: 5px solid #000;
}
- menu > ul > li:hover {
list-style: none; float: left; position: relative; width: calc(100%/9); border-top: 5px solid #d31906; border-bottom: 5px solid #d31906; background-color: #fff;
}
- menu ul li a:hover {
color: #d31906; background-color: #fff; }
- menu ul li a {
background: #000; color: #fff; display: block; padding-top: 10px; padding-bottom: 10px; width:100%;
}
- menu ul ul {
padding:0; overflow: hidden;
}
- menu ul ul li:first-child {
margin-top: 5px; float: none; display: none; border-bottom: 1px solid #ccc; border-left: 1px solid #ccc; border-right: 1px solid #ccc;
}
- menu ul ul li {
float: none; display: none; border-bottom: 1px solid #ccc; border-left: 1px solid #ccc; border-right: 1px solid #ccc;
}
- menu ul ul li a {
background: #f0f0f0; color: #333; border:none; width: calc(100%/9);
}
- menu ul ul li a:hover {
background: #ccc;
}
- menu ul li a:hover,
- menu ul li:hover ul li {
display:block !important;
}
- menu ul li ul li{
width:900%; }