This commit is contained in:
JT 2014-07-22 20:49:44 -07:00
parent 8f1c3518b4
commit 0406f6c8b5
8 changed files with 113 additions and 56 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -49,8 +49,8 @@
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation"> <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<ul class="buttons nav navbar-nav navbar-right rls-sb"> <ul class="buttons nav navbar-nav navbar-right rls-sb">
<li class="first download outline-btn"><a href="/downloads.html">Download</a></li> <li class="first download terra-btn"><a href="/downloads.html">Download</a></li>
<li class="github outline-btn"><a href="https://github.com/hashicorp/terraform">Github</a></li> <li class="github terra-btn"><a href="https://github.com/hashicorp/terraform">Github</a></li>
</ul> </ul>
<ul class="main-links nav navbar-nav navbar-right rls-sb"> <ul class="main-links nav navbar-nav navbar-right rls-sb">

View File

@ -26,16 +26,19 @@
} }
} }
.terra-btn{
background-color: white;
}
//dot animation on header main nav link hover //dot animation on header main nav link hover
.li-under a::after { .li-under a::after {
position: absolute; position: absolute;
top: 68%; top: 68%;
left: 50%; left: 50%;
margin-left: -4px; margin-left: -4px;
width: 8px; width: 6px;
height: 8px; height: 6px;
background-color: @white; background-color: white;
border-radius: 4px;
content: ''; content: '';
opacity: 0; opacity: 0;
text-decoration: none; text-decoration: none;
@ -49,8 +52,8 @@
.li-under a:hover::after, .li-under a:hover::after,
.li-under a:focus::after { .li-under a:focus::after {
opacity: .5; opacity: 1;
-webkit-transform: translateY(0px); -webkit-transform: skewY(15deg) translateY(10px);
-moz-transform: translateY(0px); -moz-transform: skewY(15deg) translateY(10px);
transform: translateY(0px); transform: skewY(15deg) translateY(10px);
} }

View File

@ -82,6 +82,7 @@ body.page-sub{
} }
.main-links.navbar-nav{ .main-links.navbar-nav{
margin-top: 26px;
li + li::before { li + li::before {
content: ""; content: "";
position: absolute; position: absolute;
@ -99,7 +100,8 @@ body.page-sub{
}*/ }*/
li > a { li > a {
line-height: 62px; line-height: 30px;
padding: 0 15px;
} }
} }
@ -110,28 +112,52 @@ body.page-sub{
li{ li{
&.first{ &.first{
margin-right: 12px; margin-right: 16px;
} }
&.download{ &.download{
a{ a{
background: url(../images/icon-download.png) 8px 6px no-repeat; padding-left: 28px;
.img-retina("../images/icon-download.png", "../images/icon-download@2x.png", 20px, 20px); background: url(../images/header-download-icon.png) 8px 6px no-repeat;
.img-retina("../images/header-download-icon.png", "../images/header-download-icon@2x.png", 12px, 16px);
} }
} }
&.github{ &.github{
a{ a{
background: url(../images/icon-github.png) 8px 6px no-repeat; background: url(../images/header-github-icon.png) 8px 5px no-repeat;
.img-retina("../images/icon-github.png", "../images/icon-github@2x.png", 20px, 20px); .img-retina("../images/header-github-icon.png", "../images/header-github-icon@2x.png", 16px, 17px);
} }
} }
} }
li > a { li > a {
padding-top: 6px; color: black;
padding-bottom: 6px; padding-top: 4px;
padding-left: 40px; padding-bottom: 4px;
padding-left: 30px;
padding-right: 6px;
letter-spacing: 0.09em;
&::before{
content: "";
position: absolute;
top: 0;
left: -8px;
width: 8px;
height: 100%;
background: linear-gradient(to right bottom, transparent 50%, white 50%) !important;
}
&::after{
content: "";
position: absolute;
top: 0;
right: -8px;
width: 8px;
height: 100%;
background: linear-gradient(to right bottom, white 50%,transparent 50%) !important;
}
} }
} }
} }

View File

@ -175,6 +175,7 @@ body.page-sub #header {
} }
#footer .main-links.navbar-nav, #footer .main-links.navbar-nav,
#header .main-links.navbar-nav { #header .main-links.navbar-nav {
margin-top: 26px;
/*li + li.li-under a::after{ /*li + li.li-under a::after{
left: 15px; left: 15px;
}*/ }*/
@ -201,7 +202,8 @@ body.page-sub #header {
} }
#footer .main-links.navbar-nav li > a, #footer .main-links.navbar-nav li > a,
#header .main-links.navbar-nav li > a { #header .main-links.navbar-nav li > a {
line-height: 62px; line-height: 30px;
padding: 0 15px;
} }
#footer .buttons.navbar-nav, #footer .buttons.navbar-nav,
#header .buttons.navbar-nav { #header .buttons.navbar-nav {
@ -210,39 +212,63 @@ body.page-sub #header {
} }
#footer .buttons.navbar-nav li.first, #footer .buttons.navbar-nav li.first,
#header .buttons.navbar-nav li.first { #header .buttons.navbar-nav li.first {
margin-right: 12px; margin-right: 16px;
} }
#footer .buttons.navbar-nav li.download a, #footer .buttons.navbar-nav li.download a,
#header .buttons.navbar-nav li.download a { #header .buttons.navbar-nav li.download a {
background: url(../images/icon-download.png) 8px 6px no-repeat; padding-left: 28px;
background-image: url("../images/icon-download.png"); background: url(../images/header-download-icon.png) 8px 6px no-repeat;
background-size: 20px 20px; background-image: url("../images/header-download-icon.png");
background-size: 12px 16px;
} }
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
#footer .buttons.navbar-nav li.download a, #footer .buttons.navbar-nav li.download a,
#header .buttons.navbar-nav li.download a { #header .buttons.navbar-nav li.download a {
background-image: url("../images/icon-download@2x.png"); background-image: url("../images/header-download-icon@2x.png");
background-size: 20px 20px; background-size: 12px 16px;
} }
} }
#footer .buttons.navbar-nav li.github a, #footer .buttons.navbar-nav li.github a,
#header .buttons.navbar-nav li.github a { #header .buttons.navbar-nav li.github a {
background: url(../images/icon-github.png) 8px 6px no-repeat; background: url(../images/header-github-icon.png) 8px 5px no-repeat;
background-image: url("../images/icon-github.png"); background-image: url("../images/header-github-icon.png");
background-size: 20px 20px; background-size: 16px 17px;
} }
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
#footer .buttons.navbar-nav li.github a, #footer .buttons.navbar-nav li.github a,
#header .buttons.navbar-nav li.github a { #header .buttons.navbar-nav li.github a {
background-image: url("../images/icon-github@2x.png"); background-image: url("../images/header-github-icon@2x.png");
background-size: 20px 20px; background-size: 16px 17px;
} }
} }
#footer .buttons.navbar-nav li > a, #footer .buttons.navbar-nav li > a,
#header .buttons.navbar-nav li > a { #header .buttons.navbar-nav li > a {
padding-top: 6px; color: black;
padding-bottom: 6px; padding-top: 4px;
padding-left: 40px; padding-bottom: 4px;
padding-left: 30px;
padding-right: 6px;
letter-spacing: 0.09em;
}
#footer .buttons.navbar-nav li > a::before,
#header .buttons.navbar-nav li > a::before {
content: "";
position: absolute;
top: 0;
left: -8px;
width: 8px;
height: 100%;
background: linear-gradient(to right bottom, transparent 50%, #ffffff 50%) !important;
}
#footer .buttons.navbar-nav li > a::after,
#header .buttons.navbar-nav li > a::after {
content: "";
position: absolute;
top: 0;
right: -8px;
width: 8px;
height: 100%;
background: linear-gradient(to right bottom, #ffffff 50%, transparent 50%) !important;
} }
#footer { #footer {
height: 650px; height: 650px;
@ -499,15 +525,17 @@ body.page-sub #header {
.outline-btn:hover.purple { .outline-btn:hover.purple {
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
} }
.terra-btn {
background-color: white;
}
.li-under a::after { .li-under a::after {
position: absolute; position: absolute;
top: 68%; top: 68%;
left: 50%; left: 50%;
margin-left: -4px; margin-left: -4px;
width: 8px; width: 6px;
height: 8px; height: 6px;
background-color: #ffffff; background-color: white;
border-radius: 4px;
content: ''; content: '';
opacity: 0; opacity: 0;
text-decoration: none; text-decoration: none;
@ -520,10 +548,10 @@ body.page-sub #header {
} }
.li-under a:hover::after, .li-under a:hover::after,
.li-under a:focus::after { .li-under a:focus::after {
opacity: .5; opacity: 1;
-webkit-transform: translateY(0px); -webkit-transform: skewY(15deg) translateY(10px);
-moz-transform: translateY(0px); -moz-transform: skewY(15deg) translateY(10px);
transform: translateY(0px); transform: skewY(15deg) translateY(10px);
} }
/*body.page-home{ /*body.page-home{
background-color: #f8f8f8; background-color: #f8f8f8;