open-consul/website/source/assets/stylesheets/_header.scss

323 lines
6.8 KiB
SCSS
Raw Normal View History

2014-02-08 00:41:03 +00:00
//
// Header
// --------------------------------------------------
body.page-sub{
#header{
2014-10-06 23:11:52 +00:00
@include consul-gradient-bg();
}
}
2014-02-08 00:41:03 +00:00
#footer,
#header {
2014-10-06 23:11:52 +00:00
@include anti-alias();
2014-04-05 09:03:01 +00:00
position: relative;
2014-10-06 23:11:52 +00:00
color: $white;
2014-04-05 09:03:01 +00:00
text-rendering: optimizeLegibility;
margin-bottom: 0;
2014-02-08 00:41:03 +00:00
2014-04-05 09:03:01 +00:00
.navbar-collapse{
box-shadow: none;
}
2014-02-08 00:41:03 +00:00
2014-04-05 09:03:01 +00:00
&.navbar-static-top{
z-index: 1000;
2014-02-08 00:41:03 +00:00
}
2014-04-05 09:03:01 +00:00
a{
2014-10-06 23:11:52 +00:00
color: $white;
2014-02-08 00:41:03 +00:00
}
2014-04-05 09:03:01 +00:00
.navbar-toggle{
margin-top: 14px;
margin-bottom: 14px;
2014-10-06 23:11:52 +00:00
border: 2px solid $white;
2014-04-05 09:03:01 +00:00
.icon-bar{
2014-10-06 23:11:52 +00:00
border: 1px solid $white;
2014-04-05 09:03:01 +00:00
}
}
2014-04-05 09:03:01 +00:00
2015-02-12 01:49:17 +00:00
.brand {
padding: 13px 15px;
line-height: 0;
2014-04-05 09:03:01 +00:00
2015-02-12 01:49:17 +00:00
.logo{
display: block;
width: 179px;
height: 59px;
background: image-url('consul-header-logo.png') 0 0 no-repeat;
@include img-retina("consul-header-logo.png", "consul-header-logo@2x.png", 179px, 59px);
2014-04-05 09:03:01 +00:00
}
2014-02-08 00:41:03 +00:00
}
2014-04-05 09:03:01 +00:00
.navbar-nav{
-webkit-font-smoothing: antialiased;
li{
position: relative;
2014-02-08 00:41:03 +00:00
2014-04-05 09:03:01 +00:00
> a {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 3px;
padding-left: 22px;
}
&.first{
>a{
padding-left: 15px;
}
}
}
2014-02-08 00:41:03 +00:00
}
2014-04-09 02:44:14 +00:00
.nav.li-under a::after {
}
2014-04-05 09:03:01 +00:00
.nav > li > a:hover, .nav > li > a:focus {
background-color: transparent;
2014-10-06 23:11:52 +00:00
/*color: $p;
@include transition( color 0.3s ease );*/
2014-02-08 00:41:03 +00:00
}
2014-04-05 09:03:01 +00:00
.main-links.navbar-nav{
2014-04-09 02:44:14 +00:00
li + li::before {
2014-04-05 09:03:01 +00:00
content: "";
position: absolute;
left: 0;
top: 35px;
width: 4px;
height: 23px;
2014-10-06 23:11:52 +00:00
background: image-url('nav-dotpipes.png') 0 0 no-repeat;
@include img-retina("nav-dotpipes.png", "nav-dotpipes@2x.png", 4px, 23px);
2014-04-05 09:03:01 +00:00
padding-right: 15px;
}
2014-02-08 00:41:03 +00:00
2014-04-09 02:44:14 +00:00
/*li + li.li-under a::after{
left: 15px;
}*/
2014-04-05 09:03:01 +00:00
li > a {
line-height: 62px;
}
2014-02-08 00:41:03 +00:00
}
2014-04-05 09:03:01 +00:00
.buttons.navbar-nav{
margin-top: 26px;
margin-left: 30px;
li{
&.first{
margin-right: 12px;
}
&.download{
a{
2014-10-06 23:11:52 +00:00
background: image-url('icon-download.png') 8px 6px no-repeat;
@include img-retina("icon-download.png", "icon-download@2x.png", 20px, 20px);
2014-04-05 09:03:01 +00:00
}
}
&.github{
a{
2014-10-06 23:11:52 +00:00
background: image-url('icon-github.png') 8px 6px no-repeat;
@include img-retina("icon-github.png", "icon-github@2x.png", 20px, 20px);
2014-04-05 09:03:01 +00:00
}
}
}
li > a {
padding-top: 6px;
padding-bottom: 6px;
padding-left: 40px;
}
2014-02-08 00:41:03 +00:00
}
}
#footer{
height: 650px;
2014-04-05 09:03:01 +00:00
text-align: center;
2014-10-06 23:11:52 +00:00
color: $purple;
2014-04-05 09:03:01 +00:00
.main-links.navbar-nav{
float: none;
display: inline-block;
padding-top: 155px;
2014-04-09 02:44:14 +00:00
.li-under a::after {
2014-10-06 23:11:52 +00:00
background-color: $purple;
}
2014-04-05 09:03:01 +00:00
}
.footer-hashi{
padding-top: 110px;
}
a{
2014-10-06 23:11:52 +00:00
color: $purple;
2014-04-05 09:03:01 +00:00
}
.buttons.navbar-nav{
float: none;
display: inline-block;
margin-bottom: 30px;
margin-top: 0px;
li{
&.first{
margin-right: 12px;
}
&.download{
a{
2014-10-06 23:11:52 +00:00
background: image-url('icon-download-purple.png') 8px 6px no-repeat;
@include img-retina("icon-download-purple.png", "icon-download-purple@2x.png", 20px, 20px);
2014-04-05 09:03:01 +00:00
}
}
&.github{
a{
2014-10-06 23:11:52 +00:00
background: image-url('icon-github-purple.png') 8px 6px no-repeat;
@include img-retina("icon-github-purple.png", "icon-github-purple@2x.png", 20px, 20px);
2014-04-05 09:03:01 +00:00
}
}
}
li > a {
padding-top: 6px;
padding-bottom: 6px;
padding-left: 40px;
}
}
2014-04-05 09:03:01 +00:00
}
@media (max-width: 992px) {
#header {
2015-02-12 01:49:17 +00:00
.brand {
.logo{
width: 120px;
height: 39px;
margin-top: 12px;
background-size: 120px 39px;
2014-04-05 09:03:01 +00:00
}
}
.buttons.navbar-nav{
li{
a{
2014-04-05 09:03:01 +00:00
background: none !important;
padding-left: 15px;
}
}
}
}
}
@media (max-width: 768px) {
2014-04-09 02:51:34 +00:00
#footer,
#header{
.buttons.navbar-nav,
2014-04-05 09:03:01 +00:00
.main-links.navbar-nav{
2014-04-09 02:51:34 +00:00
display: block;
2014-04-05 09:03:01 +00:00
padding-bottom: 15px;
li{
2014-04-09 02:51:34 +00:00
display: block;
float: none;
2014-04-05 09:03:01 +00:00
margin-top: 15px;
}
2014-04-09 02:44:14 +00:00
.li-under a::after,
li + li::before {
2014-04-05 09:03:01 +00:00
display: none;
}
2014-04-09 02:51:34 +00:00
}
}
2014-04-05 09:03:01 +00:00
2014-04-09 02:51:34 +00:00
#header,
#footer{
.main-links.navbar-nav{
2014-04-05 09:03:01 +00:00
li > a {
padding: 0;
padding-left: 0;
line-height: 22px;
}
}
2014-04-09 02:51:34 +00:00
}
#footer{
2014-04-09 04:00:59 +00:00
.footer-hashi {
span{
margin-right: 0;
}
.hashi-logo{
display: block;
margin-top: 15px;
margin-bottom: 20px;
}
2014-04-09 02:54:54 +00:00
}
.buttons.navbar-nav{
margin-left: 0;
li.first {
2014-04-09 04:00:59 +00:00
margin-right: 0 !important;
2014-04-09 02:54:54 +00:00
}
2014-04-09 02:51:34 +00:00
}
}
#header{
2014-10-06 23:11:52 +00:00
@include consul-gradient-bg();
2014-04-09 02:51:34 +00:00
.navbar-right{
float: none !important;
}
2014-04-05 09:03:01 +00:00
2015-02-12 01:49:17 +00:00
.brand {
.logo{
margin-top: 0;
2014-04-05 09:03:01 +00:00
}
}
2014-04-05 09:03:01 +00:00
.navbar-nav > li{
float: none;
}
.buttons.navbar-nav{
margin-top: 15px;
margin-left: 0px;
2014-04-05 09:03:01 +00:00
li{
a{
padding-left: 40px;
}
&.first{
margin-right: 0;
margin-bottom: 10px;
}
&.download{
a{
2014-10-06 23:11:52 +00:00
background: image-url('icon-download.png') 8px 6px no-repeat !important;;
@include img-retina("icon-download.png", "icon-download@2x.png", 20px, 20px);
2014-04-05 09:03:01 +00:00
}
}
&.github{
a{
2014-10-06 23:11:52 +00:00
background: image-url('icon-github.png') 8px 6px no-repeat !important;;
@include img-retina("icon-github.png", "icon-github@2x.png", 20px, 20px);
2014-04-05 09:03:01 +00:00
}
}
}
}
2014-04-05 09:03:01 +00:00
}
}
@media (max-width: 480px) {
2014-02-08 00:41:03 +00:00
}