You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/website/source/stylesheets/_header.less

279 lines
6.2 KiB

//
// Header
// --------------------------------------------------
body.page-sub{
#header{
.consul-gradient-bg();
}
}
#footer,
#header {
.anti-alias();
position: relative;
color: @white;
text-rendering: optimizeLegibility;
margin-bottom: 0;
.navbar-collapse{
box-shadow: none;
}
&.navbar-static-top{
z-index: 1000;
}
a{
color: @white;
}
.navbar-toggle{
margin-top: 14px;
margin-bottom: 14px;
border: 2px solid @white;
.icon-bar{
border: 1px solid @white;
}
}
.navbar-brand {
&.logo{
padding: 13px 15px;
line-height: 0;
span{
display: inline-block;
width: 179px;
height: 59px;
background: url(../images/consul-header-logo.png) 0 0 no-repeat;
.img-retina("../images/consul-header-logo.png", "../images/consul-header-logo@2x.png", 179px, 59px);
}
}
}
.navbar-nav{
-webkit-font-smoothing: antialiased;
li{
position: relative;
> a {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 3px;
padding-left: 22px;
}
&.first{
>a{
padding-left: 15px;
}
}
}
}
.nav > li > a:hover, .nav > li > a:focus {
background-color: transparent;
}
.main-links.navbar-nav{
li + li a::before {
content: "";
position: absolute;
left: 0;
top: 35px;
width: 4px;
height: 23px;
background: url(../images/nav-dotpipes.png) 0 0 no-repeat;
.img-retina("../images/nav-dotpipes.png", "../images/nav-dotpipes@2x.png", 4px, 23px);
padding-right: 15px;
}
li > a {
line-height: 62px;
}
}
.buttons.navbar-nav{
margin-top: 26px;
margin-left: 30px;
li{
&.first{
margin-right: 12px;
}
&.download{
a{
background: url(../images/icon-download.png) 8px 6px no-repeat;
.img-retina("../images/icon-download.png", "../images/icon-download@2x.png", 20px, 20px);
}
}
&.github{
a{
background: url(../images/icon-github.png) 8px 6px no-repeat;
.img-retina("../images/icon-github.png", "../images/icon-github@2x.png", 20px, 20px);
}
}
}
li > a {
padding-top: 6px;
padding-bottom: 6px;
padding-left: 40px;
}
}
}
#footer{
height: 700px;
text-align: center;
color: @purple;
.main-links.navbar-nav{
float: none;
display: inline-block;
padding-top: 155px;
}
.footer-hashi{
padding-top: 110px;
}
a{
color: @purple;
}
.buttons.navbar-nav{
float: none;
display: inline-block;
margin-bottom: 30px;
margin-top: 0px;
li{
&.first{
margin-right: 12px;
}
&.download{
a{
background: url(../images/icon-download-purple.png) 8px 6px no-repeat;
.img-retina("../images/icon-download-purple.png", "../images/icon-download-purple@2x.png", 20px, 20px);
}
}
&.github{
a{
background: url(../images/icon-github-purple.png) 8px 6px no-repeat;
.img-retina("../images/icon-github-purple.png", "../images/icon-github-purple@2x.png", 20px, 20px);
}
}
}
li > a {
padding-top: 6px;
padding-bottom: 6px;
padding-left: 40px;
}
}
}
@media (max-width: 992px) {
#header {
.navbar-brand {
&.logo{
span{
width: 120px;
height: 39px;
margin-top: 12px;
background-size: 120px 39px;
}
}
}
.buttons.navbar-nav{
li{
a{
background: none !important;
padding-left: 15px;
}
}
}
}
}
@media (max-width: 768px) {
#header{
.consul-gradient-bg();
.navbar-right{
float: none !important;
}
.main-links.navbar-nav{
padding-bottom: 15px;
li{
margin-top: 15px;
}
li + li a::before {
display: none;
}
li > a {
padding: 0;
padding-left: 0;
line-height: 22px;
}
}
.navbar-brand {
&.logo{
span{
margin-top: 0;
}
}
}
.navbar-nav > li{
float: none;
}
.buttons.navbar-nav{
margin-top: 15px;
margin-left: 0px;
li{
a{
padding-left: 40px;
}
&.first{
margin-right: 0;
margin-bottom: 10px;
}
&.download{
a{
background: url(../images/icon-download.png) 8px 6px no-repeat !important;;
.img-retina("../images/icon-download.png", "../images/icon-download@2x.png", 20px, 20px);
}
}
&.github{
a{
background: url(../images/icon-github.png) 8px 6px no-repeat !important;;
.img-retina("../images/icon-github.png", "../images/icon-github@2x.png", 20px, 20px);
}
}
}
}
}
}
@media (max-width: 480px) {
}