Created
December 29, 2013 03:20
-
-
Save clouddueling/8167061 to your computer and use it in GitHub Desktop.
A really nice nav bar altered a bit from bootstrap's example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // NOTE 〉Justifed Nav | |
| // -------------------------------------------------- | |
| .nav-justified { | |
| background-color: #eee; | |
| display: table; | |
| margin: 0; | |
| width: 100%; | |
| float: left; | |
| border-bottom: 1px solid #d5d5d5; | |
| border-top: 1px solid #CCCCCC; | |
| table-layout: fixed; | |
| li { | |
| display: table-cell; | |
| } | |
| li > a { | |
| margin-bottom: 0; | |
| padding-top: 15px; | |
| padding-bottom: 15px; | |
| color: #777; | |
| font-weight: bold; | |
| text-align: center; | |
| background-color: #e5e5e5; /* Old browsers */ | |
| background-repeat: repeat-x; /* Repeat the gradient */ | |
| background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%); /* FF3.6+ */ | |
| background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ | |
| background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Chrome 10+,Safari 5.1+ */ | |
| background-image: -o-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Opera 11.10+ */ | |
| filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ | |
| background-image: linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* W3C */ | |
| } | |
| .active > a, | |
| li > a:active, | |
| li > a:hover, | |
| li > a:focus { | |
| background-color: #ddd; | |
| background-image: none; | |
| box-shadow: inset 0 3px 7px rgba(0,0,0,.15); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment