diff --git a/website/source/assets/images/logo-header.svg b/website/source/assets/images/logo-header.svg new file mode 100644 index 000000000..ade67cc2e --- /dev/null +++ b/website/source/assets/images/logo-header.svg @@ -0,0 +1,30 @@ + + + HashiCorp Packer + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website/source/assets/stylesheets/_buttons.scss b/website/source/assets/stylesheets/_buttons.scss index 0edc0c7c4..41cc1fac4 100644 --- a/website/source/assets/stylesheets/_buttons.scss +++ b/website/source/assets/stylesheets/_buttons.scss @@ -1,5 +1,5 @@ @mixin button { - font-family: $mono; + font-family: $font-family-open-sans; height: $button-height; line-height: $button-height; background-color: transparent; diff --git a/website/source/assets/stylesheets/_components.scss b/website/source/assets/stylesheets/_components.scss index 7e5d35917..c9f0431ad 100644 --- a/website/source/assets/stylesheets/_components.scss +++ b/website/source/assets/stylesheets/_components.scss @@ -5,7 +5,6 @@ header .header { h1 { margin-bottom: -8px; margin-top: 60px; - text-transform: uppercase; } span { @@ -19,15 +18,19 @@ header .header { background-position: 35px -40px; background-size: 100%; - h2 { - margin-top: 70px; + @media (min-width: 1200px) { + h1 { + margin-top: 100px; + } } @media (max-width: $screen-md-max) { height: $hero-height; - h2 { - font-size: 2.1em; + h1 { + font-size: 36px; + padding-top: 1em; + padding-bottom: 1em; } } @@ -35,9 +38,10 @@ header .header { height: auto; background: none; - h2 { + h1 { margin: 0; - padding: 1em; + padding-top: 1em; + margin-bottom: 1em; } } } @@ -57,7 +61,6 @@ header .header { @media (max-width: $screen-sm) { background: none; - font-size: 75%; min-height: 50px; padding: 0; } @@ -72,16 +75,19 @@ header .header { } h2 { - font-family: $serif; font-size: 44px; color: #7bc6b1; margin: 0px; padding: 0px; - padding-top: 7px; + padding-top: 15px; padding-bottom: 3px; line-height: 1.0; white-space: nowrap; + @media (max-width: $screen-sm) { + font-size: 30px; + } + &:hover { color: $dark-background; } @@ -181,7 +187,7 @@ header .header { color: #b1d631; font-size: 14px; font-weight: normal; - font-family: $mono; + font-family: $font-family-mono; text-shadow: 0 0 0; } @@ -203,7 +209,6 @@ header .header { margin-right: 20px; li { - font-family: $serif; font-size: 17px; line-height: (30/17) !important; margin-bottom: $baseline; @@ -225,10 +230,8 @@ header .header { } div.alert { - font-family: $serif; font-size: 17px; line-height: 1.5; - letter-spacing: 1px; margin-left: -135px; margin-right: -135px; padding-top: 40px; @@ -256,20 +259,21 @@ header .header { } h1 { - font-size: 40px; line-height: (25/20); - text-transform: uppercase; + font-weight: 600; } h2 { margin-top: $baseline * 2; text-transform: capitalize; + font-weight: 600; } h3 { - margin-top: $baseline; + margin-top: $baseline * 2; text-transform: capitalize; - font-size: 26px; + font-size: 24px; + font-weight: 600; } } } diff --git a/website/source/assets/stylesheets/_header.scss b/website/source/assets/stylesheets/_header.scss index e6bb091e3..b5ec8db11 100644 --- a/website/source/assets/stylesheets/_header.scss +++ b/website/source/assets/stylesheets/_header.scss @@ -9,13 +9,12 @@ background-color: $black; .navbar-brand { .logo{ - color: $green; - padding-left: 36px; - font-size: 22px; - line-height: 77px; - background: image-url('logo-header.png') 0 0 no-repeat; - @include img-retina("../images/logo-header.png", "../images/logo-header@2x.png", $project-logo-width, $project-logo-height); - background-position: 0 center; + width: 110px; + height: 42px; + line-height: 70px; + margin-top: 15px; + background: image-url('logo-header.svg') 0 0 no-repeat; + font-size: 0; &:hover{ opacity: .6; @@ -60,32 +59,22 @@ } @media (max-width: 768px) { - #header { - .navbar-brand { - - } - } -} - -@media (max-width: 414px) { #header { .navbar-brand { .logo{ - padding-left: 37px; - font-size: 18px; - @include img-retina("../images/logo-header.png", "../images/logo-header@2x.png", $project-logo-width * .75, $project-logo-height * .75); - //background-position: 0 45%; + margin-left: 18px; } } } } - -@media (max-width: 320px) { +@media (max-width: 414px) { #header { .navbar-brand { .logo{ - font-size: 0 !important; //hide terraform text + width: 84px; + height: 32px; + background-size: contain;; } } } diff --git a/website/source/assets/stylesheets/_helpers.scss b/website/source/assets/stylesheets/_helpers.scss index 1f95b8f0e..c952e645c 100644 --- a/website/source/assets/stylesheets/_helpers.scss +++ b/website/source/assets/stylesheets/_helpers.scss @@ -19,7 +19,7 @@ $border-dark: #333; // base measures $baseline: 20px; $base-font-size: 16px; -$base-line-height: 20px; +$base-line-height: 1.5; $button-height: 60px; .center { @@ -40,13 +40,13 @@ $sidebar-width: 250px; //typography -$serif: 'myriad-pro', helvetica, Georgia, serif; -$sans: 'HeimatStencil-SemiBold', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif; -$mono: 'Inconsolata', 'courier new', courier, monospace; +$font-family-open-sans: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; +$font-family-klavika: 'klavika-web', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; +$font-family-mono: 'Inconsolata', 'Monaco', 'courier new', courier, monospace; -.serif { font-family: $serif; } -.sans { font-family: $sans; } -.mono { font-family: $mono; } +.open-sans { font-family: $font-family-open-sans;} +.klavika { font-family: $font-family-klavika; } +.mono { font-family: $font-family-mono; } .text-center { text-align: center !important; } .text-left { text-align: left !important; } @@ -56,15 +56,6 @@ $mono: 'Inconsolata', 'courier new', courier, monospace; .uppercase { text-transform: uppercase !important; } -@font-face { - font-family: 'HeimatStencil-SemiBold'; - src: font-url('2772B2_0_0.eot'); - src: font-url('2772B2_0_0.woff') format('woff'), - font-url('2772B2_0_0.ttf') format('truetype'); - font-weight: normal; - font-style: normal; -} - //color .dark-background { background-color: #000; diff --git a/website/source/assets/stylesheets/_reset.scss b/website/source/assets/stylesheets/_reset.scss index 5a417ec09..db6b68457 100644 --- a/website/source/assets/stylesheets/_reset.scss +++ b/website/source/assets/stylesheets/_reset.scss @@ -9,7 +9,7 @@ form, input, textarea, button { -khtml-border-radius: 0; border-radius: 0; background-color: transparent; - font-family: $mono; + font-family: $font-family-mono; font-size: $base-font-size; line-height: 1.0; color: inherit; diff --git a/website/source/assets/stylesheets/_sidebar.scss b/website/source/assets/stylesheets/_sidebar.scss index b1450fbd3..81237ef95 100644 --- a/website/source/assets/stylesheets/_sidebar.scss +++ b/website/source/assets/stylesheets/_sidebar.scss @@ -3,7 +3,7 @@ max-width: 320px; $border: 1px solid $gray-dark; font-size: 16px; - font-family: $mono; + font-family: $font-family-mono; color: $gray-light; background-color: $sidebar-background-color; diff --git a/website/source/assets/stylesheets/_styles.scss b/website/source/assets/stylesheets/_styles.scss index 077ec44d8..beac0f638 100644 --- a/website/source/assets/stylesheets/_styles.scss +++ b/website/source/assets/stylesheets/_styles.scss @@ -17,20 +17,22 @@ html { body { background-color: $background; - font-family: $sans; - letter-spacing: 1px; + font-family: $font-family-open-sans; font-size: $base-font-size; + font-weight: 400; line-height: $base-line-height; } -h1, h2, h3, h4, h5, h6 { - letter-spacing: 2px; - font-weight: normal; +.home { + h1, h2, h3, h4, h5, h6 { + font-family: $font-family-klavika; + letter-spacing: 1px; + font-weight: normal; + } } h1 { - font-family: $sans; - font-size: 70px; + font-size: 42px; line-height: (80/70); @include respond-to(mobile) { font-size: 50px; @@ -39,9 +41,9 @@ h1 { } h2 { - font-family: $sans; - font-size: 40px; + font-size: 36px; line-height: (50/40); + text-transform: uppercase; &.has-dividers { //overflow: auto !important; @@ -55,38 +57,31 @@ h2 { } h3 { - font-family: $sans; - font-size: 20px; + font-size: 24px; line-height: (30/20); } h4 { - font-family: $mono; + font-family: $font-family-mono; font-size: 20px; line-height: (30/20); } h5 { - font-family: $sans; font-size: 16px; line-height: (22/16); } h6 { - font-family: $mono; + font-family: $font-family-mono; font-size: 16px; line-height: (22/16); } p { - font-family: $serif; - font-size: 17px; - line-height: (30/17); - letter-spacing: 1px; &.large-text { font-size: 20px; - line-height: (35/20); } a { @@ -121,10 +116,8 @@ dt { } dd { - font-family: $serif; font-size: 17px; line-height: 1.5; - letter-spacing: 1px; margin-bottom: 30px; } @@ -159,7 +152,7 @@ pre { } table { - font-family: $mono; + font-family: $font-family-mono; margin: ($baseline * 2) 0; color: $gray-dark; diff --git a/website/source/index.html.erb b/website/source/index.html.erb index 1603f9e02..500f9d42f 100644 --- a/website/source/index.html.erb +++ b/website/source/index.html.erb @@ -7,10 +7,10 @@ description: Packer is a free and open source tool for creating golden images
-
-

+
+

Packer is a tool for creating machine and container images for multiple platforms from a single source configuration. -

+

diff --git a/website/source/layouts/layout.erb b/website/source/layouts/layout.erb index 4841fbed8..db61fc82e 100644 --- a/website/source/layouts/layout.erb +++ b/website/source/layouts/layout.erb @@ -13,12 +13,7 @@ " type="image/x-icon"> " type="image/x-icon"> - - + + + + + + " class="page-<%= current_page.data.page_title ? "#{current_page.data.page_title} layout-#{current_page.data.layout} page-sub" : "home layout-#{current_page.data.layout}" %>">