Instantly share code, notes, and snippets.
Created
June 19, 2013 22:22
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save avanwart/5818664 to your computer and use it in GitHub Desktop.
Navbar CSS for PF
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
/* HEADER AREA */ | |
.navbar-inner .brand { | |
float: left; | |
display: block; | |
padding: 0 3px 0 20px; | |
margin: 0 0 0 -20px; | |
font-size: 20px; | |
font-weight: 200; | |
line-height: 52px; | |
color: white; | |
width: 175px; | |
height: 52px; | |
background: url('img/brand.png') 15px 10px no-repeat; | |
text-indent: 183px; | |
-webkit-transition: background 0.3s ease; | |
-moz-transition: background 0.3s ease; | |
-ms-transition: background 0.3s ease; | |
-o-transition: background 0.3s ease; | |
transition: background 0.3s ease; | |
border-right: 1px solid rgba(0, 0, 0, .4); | |
} | |
.navbar-inner .brand:hover { | |
text-decoration: none; | |
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.4); | |
background-color: rgba(0, 0, 0, .15); | |
} | |
#tagline { | |
border-left: 1px solid rgba(255, 255, 255, .2); | |
float:left; | |
} | |
#tagline a { | |
font-size: 20px; | |
color: white; | |
display: block; | |
padding: 15px; | |
-webkit-transition: background 0.3s ease; | |
-moz-transition: background 0.3s ease; | |
-ms-transition: background 0.3s ease; | |
-o-transition: background 0.3s ease; | |
transition: background 0.3s ease; | |
} | |
#tagline a:hover { | |
text-decoration: none; | |
background-color: rgba(0, 0, 0, .15); | |
} | |
.navbar .nav { | |
position: relative; | |
left: 0; | |
display: block; | |
float: right; | |
margin: 0 10px 0 0; | |
} | |
.navbar .navbar-inner { | |
min-height: 52px; | |
padding-left: 20px; | |
padding-right: 20px; | |
background-color: #005b8f; | |
background-image: -moz-linear-gradient(top, #005b8f, #033c73); | |
background-image: -ms-linear-gradient(top, #005b8f, #033c73); | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#005b8f), to(#033c73)); | |
background-image: -webkit-linear-gradient(top, #005b8f, #033c73); | |
background-image: -o-linear-gradient(top, #005b8f, #033c73); | |
background-image: linear-gradient(top, #005b8f, #033c73); | |
background-repeat: repeat-x; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#005b8f', endColorstr='#033c73', GradientType=0); | |
border-top: 1px solid #022950; | |
border-bottom: 1px solid #022950; | |
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); | |
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); | |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); | |
} | |
.navbar .nav > li > a { | |
float: none; | |
padding: 0px 20px; | |
line-height: 52px; | |
color: white; | |
text-decoration: none; | |
font-size: 19px; | |
font-weight: normal; | |
text-shadow: 0px 1px 0px rgba(0, 0, 0, .2); | |
-webkit-transition: background 0.3s ease; | |
-moz-transition: background 0.3s ease; | |
-ms-transition: background 0.3s ease; | |
-o-transition: background 0.3s ease; | |
transition: background 0.3s ease; | |
} | |
.navbar .nav > li > a:hover { | |
background-color: rgba(0, 0, 0, .15); | |
color: white; | |
text-decoration: none; | |
} | |
.navbar .nav > li.login a { | |
background: white; | |
font-size: 15px; | |
font-weight: bold; | |
text-shadow: 0px 1px 0px white; | |
line-height: 1em; | |
padding: 6px 15px; | |
color: #0065A8; | |
text-shadow: none; | |
margin: 10px 0 0 10px; | |
background-image: linear-gradient(bottom, #cccccc 4%, #efefef 100%); | |
background-image: -o-linear-gradient(bottom, #cccccc 4%, #efefef 100%); | |
background-image: -moz-linear-gradient(bottom, #cccccc 4%, #efefef 100%); | |
background-image: -webkit-linear-gradient(bottom, #cccccc 4%, #efefef 100%); | |
background-image: -ms-linear-gradient(bottom, #cccccc 4%, #efefef 100%); | |
background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.04, #cccccc), color-stop(1, #efefef) ); | |
border: 2px solid #00236D; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
-webkit-box-shadow: inset 0px 1px 0px white, 0px 1px 0px rgba(255, 255, 255, .25), 1px 0px 0px rgba(255, 255, 255, .2); | |
-moz-box-shadow: inset 0px 1px 0px white, 0px 1px 0px rgba(255, 255, 255, .25), 1px 0px 0px rgba(255, 255, 255, .2); | |
box-shadow: inset 0px 1px 0px white, 0px 1px 0px rgba(255, 255, 255, .25), 1px 0px 0px rgba(255, 255, 255, .2); | |
} | |
.navbar .nav > li.login a:hover { | |
background:white; | |
color: #ffa100; | |
} | |
.icon-lock { | |
background: url('img/icon-lock.png') 0 4px no-repeat; | |
margin: -1px 5px 2px 0; | |
width: 10px; | |
height: 17px; | |
} | |
.caret { | |
display: inline-block; | |
width: 0; | |
height: 0; | |
vertical-align: top; | |
border-left: 4px solid transparent; | |
border-right: 4px solid transparent; | |
border-top: 4px solid #000000; | |
opacity: 0.3; | |
filter: alpha(opacity=30); | |
content: ""; | |
} | |
.dropdown .caret { | |
margin-top: 8px; | |
margin-left: 2px; | |
} | |
.dropdown:hover .caret, | |
.open .caret { | |
opacity: 1; | |
filter: alpha(opacity=100); | |
} | |
.nav .open .caret, | |
.nav .open.active .caret, | |
.nav .open a:hover .caret { | |
border-top-color: #ffffff; | |
border-bottom-color: #ffffff; | |
opacity: 1; | |
filter: alpha(opacity=100); | |
} | |
.navbar .nav li.dropdown > .dropdown-toggle .caret { | |
border-top-color: white; | |
border-bottom-color: white; | |
} | |
.navbar .nav .dropdown-toggle .caret { | |
margin-top: 24px; | |
margin-left: 8px; | |
} | |
.navbar .nav .dropdown-toggle .caret, .navbar .nav .open.dropdown .caret { | |
border-top-color: #fff; | |
} | |
.navbar .nav .open > .dropdown-toggle, .navbar .nav .active > .dropdown-toggle, .navbar .nav .open.active > .dropdown-toggle { | |
background-color: transparent; | |
} | |
.navbar .nav .active > .dropdown-toggle:hover { | |
color: #fff; | |
} | |
.navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle { | |
background-color: rgba(0, 0, 0, .15); | |
color: white; | |
} | |
.navbar .nav li.dropdown.open > .dropdown-toggle .caret, .navbar .nav li.dropdown.active > .dropdown-toggle .caret, .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { | |
border-top-color: white; | |
border-bottom-color: white; | |
} | |
/* ACTUAL DROPDOWNS */ | |
.navbar .nav > li > .dropdown-menu::before { | |
content: ''; | |
display: inline-block; | |
border-left: 11px solid transparent; | |
border-right: 11px solid transparent; | |
border-bottom: 11px solid #CCC; | |
border-bottom-color: rgba(0, 0, 0, 0.2); | |
position: absolute; | |
top: -11px; | |
left: 59px; | |
} | |
.navbar .nav > li > .dropdown-menu::after { | |
content: ''; | |
display: inline-block; | |
border-left: 10px solid transparent; | |
border-right: 10px solid transparent; | |
border-bottom: 10px solid white; | |
position: absolute; | |
top: -10px; | |
left: 60px; | |
} | |
.dropdown-menu a { | |
font-size: 16px; | |
display: block; | |
padding: 5px 20px; | |
clear: both; | |
font-weight: normal; | |
line-height: 20px; | |
color: #333; | |
white-space: nowrap; | |
} | |
.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a { | |
text-decoration: none; | |
color: #0068a4; | |
background-color: #ddf3ff; | |
background-color: #ddf3ff; | |
background-image: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment