Skip to content

Instantly share code, notes, and snippets.

@rococodogs
Created May 23, 2014 15:09
Show Gist options
  • Save rococodogs/ea9cb8524a3321911af2 to your computer and use it in GitHub Desktop.
Save rococodogs/ea9cb8524a3321911af2 to your computer and use it in GitHub Desktop.
navbar stylin' for terminal four
#content { min-height: 25em; }
/* hide top-level link to home */
.currentbranch0 { display: none; }
nav {
background-color: #cc092f;
margin-top: 1px;
overflow: hidden;
padding: 0;
z-index: 998;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
/* top-sections */
nav > ul > li {
display: inline-block;
font-size: 1.25em;
padding: .5em;
}
nav > ul > li > a {
color: white;
display: inline-block;
width: 100%;
}
nav > ul > li > a:hover {
color: white;
text-decoration: none;
}
nav > ul > li:hover {
background-color: #1a4463;
}
nav > ul > li:hover > ul {
display: block;
}
/* secondary ul */
nav > ul > li > ul {
background-color: #fff;
box-shadow: 0 1px 2px 1px #aaa;
display: none;
font-size: .75em;
margin-top: 8px;
margin-left: -5px;
min-width: 10em;
padding: .5em;
position: absolute;
z-index: 999;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment