terraform/website/source/stylesheets/_header.less

340 lines
7.4 KiB
Plaintext
Raw Normal View History

2014-07-16 23:51:48 +02:00
//
// Header
// --------------------------------------------------
body.page-sub{
#header{
2014-07-23 08:03:13 +02:00
background-color: @purple;
2014-07-16 23:51:48 +02:00
}
}
#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{
2014-07-22 23:24:44 +02:00
margin-top: 15px;
padding: 5px 0 0 68px;
height: 56px;
line-height: 56px;
font-size: 24px;
.lato-light();
text-transform: uppercase;
background: url(../images/consul-header-logo.png) 0 0 no-repeat;
.img-retina("../images/header-logo.png", "../images/header-logo@2x.png", 50px, 56px);
2014-07-16 23:51:48 +02:00
}
}
.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-under a::after {
}
.nav > li > a:hover, .nav > li > a:focus {
background-color: transparent;
/*color: @p;
.transition( color 0.3s ease );*/
}
.main-links.navbar-nav{
2014-07-23 05:49:44 +02:00
margin-top: 26px;
2014-07-23 06:16:26 +02:00
2014-07-16 23:51:48 +02:00
li + li::before {
content: "";
position: absolute;
left: 0;
top: 35px;
width: 4px;
height: 23px;
padding-right: 15px;
}
/*li + li.li-under a::after{
left: 15px;
}*/
li > a {
2014-07-23 06:46:56 +02:00
border-bottom: 2px solid rgba(255, 255, 255, .2);
2014-07-23 06:16:26 +02:00
line-height: 26px;
2014-07-23 06:28:41 +02:00
margin: 0 12px;
padding: 0 0 0 4px;
2014-07-16 23:51:48 +02:00
}
}
.buttons.navbar-nav{
margin-top: 26px;
margin-left: 30px;
li{
&.first{
2014-07-23 05:49:44 +02:00
margin-right: 16px;
2014-07-16 23:51:48 +02:00
}
&.download{
a{
2014-07-23 05:49:44 +02:00
padding-left: 28px;
2014-07-23 06:16:26 +02:00
background: url(../images/header-download-icon.png) 10px 7px no-repeat;
.img-retina("../images/header-download-icon.png", "../images/header-download-icon@2x.png", 12px, 13px);
2014-07-16 23:51:48 +02:00
}
}
&.github{
a{
2014-07-23 06:16:26 +02:00
background: url(../images/header-github-icon.png) 10px 6px no-repeat;
.img-retina("../images/header-github-icon.png", "../images/header-github-icon@2x.png", 12px, 13px);
2014-07-16 23:51:48 +02:00
}
}
}
li > a {
2014-07-23 05:49:44 +02:00
color: black;
2014-07-23 06:16:26 +02:00
padding-top: 3px;
padding-bottom: 3px;
2014-07-23 05:49:44 +02:00
padding-left: 30px;
2014-07-23 06:16:26 +02:00
padding-right: 10px;
2014-07-23 06:49:49 +02:00
letter-spacing: 0.05em;
2014-07-16 23:51:48 +02:00
}
}
}
#footer{
2014-07-23 06:28:41 +02:00
padding: 140px 0 40px;
2014-07-23 07:13:48 +02:00
color: black;
2014-07-16 23:51:48 +02:00
2014-07-23 06:28:41 +02:00
.footer-links{
2014-07-16 23:51:48 +02:00
float: none;
display: inline-block;
2014-07-23 06:53:47 +02:00
.li-under a:hover::after,
.li-under a:focus::after {
opacity: 1;
-webkit-transform: skewY(15deg) translateY(8px);
-moz-transform: skewY(15deg) translateY(8px);
transform: skewY(15deg) translateY(8px);
}
2014-07-16 23:51:48 +02:00
.li-under a::after {
background-color: @purple;
}
}
.footer-hashi{
2014-07-23 06:28:41 +02:00
float: right;
2014-07-16 23:51:48 +02:00
}
a{
2014-07-23 07:13:48 +02:00
color: black;
2014-07-16 23:51:48 +02:00
}
.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) {
#footer,
#header{
.buttons.navbar-nav,
.main-links.navbar-nav{
display: block;
padding-bottom: 15px;
li{
display: block;
float: none;
margin-top: 15px;
}
.li-under a::after,
li + li::before {
display: none;
}
}
}
#header,
#footer{
.main-links.navbar-nav{
li > a {
padding: 0;
padding-left: 0;
line-height: 22px;
}
}
}
#footer{
.footer-hashi {
span{
margin-right: 0;
}
.hashi-logo{
display: block;
margin-top: 15px;
margin-bottom: 20px;
}
}
.buttons.navbar-nav{
margin-left: 0;
li.first {
margin-right: 0 !important;
}
}
}
#header{
.consul-gradient-bg();
.navbar-right{
float: none !important;
}
.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) {
}