Merge pull request #11927 from hashicorp/typographic-updates

Website typographic updates
This commit is contained in:
Mitchell Hashimoto 2017-02-13 17:26:56 -08:00 committed by GitHub
commit 3e2f324b20
13 changed files with 70 additions and 127 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 B

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 975 B

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -99,6 +99,8 @@ body.layout-intro{
.docs-sidenav{ .docs-sidenav{
padding-top: 15px; padding-top: 15px;
padding-bottom: 15px; padding-bottom: 15px;
font-family: "Klavika-web";
font-size: 16px;
:last-child{ :last-child{
border-bottom: none; border-bottom: none;
@ -129,6 +131,7 @@ body.layout-intro{
>.nav{ >.nav{
li{ li{
a{ a{
font-family: $font-family-open-sans;
color: white; color: white;
} }
} }
@ -137,7 +140,7 @@ body.layout-intro{
&.active { &.active {
>a{ >a{
color: lighten($purple, 4%); color: lighten($purple, 4%);
font-weight: 500; font-weight: 600;
} }
&:before{ &:before{
@ -155,11 +158,6 @@ body.layout-intro{
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
/*> a:hover,
> a:focus {
font-weight: $font-weight-lato-xb;
}*/
.nav { .nav {
display: block; display: block;
@ -198,9 +196,7 @@ body.layout-intro{
.bs-docs-section{ .bs-docs-section{
padding-top: 10px; padding: 10px 10px 80px 10px;
padding-left: 3%;
padding-bottom: 80px;
.lead{ .lead{
margin-bottom: 48px margin-bottom: 48px
@ -211,9 +207,7 @@ body.layout-intro{
} }
p, li, .alert { p, li, .alert {
font-size: 20px; font-size: 18px;
font-family: $font-family-open-sans;
font-weight: $font-weight-open;
line-height: 1.5em; line-height: 1.5em;
margin: 0 0 18px; margin: 0 0 18px;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@ -242,10 +236,9 @@ body.layout-intro{
text-transform: uppercase; text-transform: uppercase;
word-wrap: break-word; word-wrap: break-word;
padding-bottom: 24px; padding-bottom: 24px;
margin-top: 40px; margin-top: 24px;
margin-bottom: 24px; margin-bottom: 30px;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
@include lato-light();
} }
h2, h3, h4{ h2, h3, h4{

View File

@ -1,27 +0,0 @@
//
// Typography
// --------------------------------------------------
//light
.rls-l{
font-family: $font-family-lato;
font-weight: $font-weight-lato-xl;
}
//semibold
.rls-sb{
font-family: $font-family-lato;
font-weight: $font-weight-lato-sb;
}
//extrabold
.rls-xb{
font-family: $font-family-lato;
font-weight: $font-weight-lato-xb;
}
.os{
font-family: $font-family-open-sans;
font-weight: $font-weight-open;
}

View File

@ -11,26 +11,44 @@ body {
// -webkit-font-smoothing: subpixel-antialiased; // -webkit-font-smoothing: subpixel-antialiased;
color: $black; color: $black;
font-size: 15px; font-size: 15px;
font-family: $font-family-lato; font-family: $font-family-open-sans;
font-weight: 500; font-weight: 500;
} }
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-family: "klavika-web";
font-weight: 600;
} }
h1{ h1{
font-size: 42px; font-size: 42px;
line-height: 42px; line-height: 40px;
font-family: $font-family-lato;
font-weight: $font-weight-lato-sb;
margin-bottom: 24px; margin-bottom: 24px;
text-transform: uppercase;
}
h2{
font-size: 34px;
text-transform: uppercase;
} }
h3{ h3{
font-size: 28px; font-size: 20px;
line-height: 28px; line-height: 20px;
font-family: $font-family-lato; text-transform: uppercase;
font-weight: $font-weight-lato-sb; }
p {
margin-bottom: 30px;
font-size: 16px;
font-family: $font-family-open-sans;
font-weight: regular;
line-height: 1.5;
}
p.lead{
font-size: 21px;
font-weight: 400 !important;
} }
//an alternative color for buttons in the doc body //an alternative color for buttons in the doc body

View File

@ -13,12 +13,12 @@ body.page-sub{
#header { #header {
.navbar-brand { .navbar-brand {
.logo{ .logo{
font-size: 20px; font-size: 32px;
text-transform: uppercase; font-family: "Klavika-web";
@include lato-light(); font-weight: 500;
background: image-url('logo-header.png') 0 0 no-repeat; 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); @include img-retina("../images/logo-header.png", "../images/logo-header@2x.png", $project-logo-width, $project-logo-height);
background-position: 0 45%; background-position: 0 40%;
&:hover{ &:hover{
opacity: .6; opacity: .6;
@ -26,6 +26,7 @@ body.page-sub{
} }
.by-hashicorp{ .by-hashicorp{
margin-top: 2px;
&:hover{ &:hover{
svg{ svg{
.svg-bg-line{ .svg-bg-line{

View File

@ -7,40 +7,6 @@ body.page-home {
font-size: 40px; font-size: 40px;
} }
h2{
margin-bottom: 40px;
font-size: 42px;
line-height: 42px;
letter-spacing: 2px;
text-transform: uppercase;
font-weight: regular;
}
h3{
margin-bottom: 10px;
font-size: 18px;
line-height: 1.2;
letter-spacing: 1px;
text-transform: uppercase;
font-weight: bold;
}
p{
font-size: 15px;
line-height: 1.5;
font-weight: regular;
letter-spacing: .2px;
margin-bottom: 2.2em;
font-family: $font-family-open-sans;
font-weight: $font-weight-open;
}
p.lead{
font-size: 21px;
font-family: $font-family-open-sans;
font-weight: $font-weight-open;
}
#primary-cta{ #primary-cta{
position: relative; position: relative;
margin-top: -30px; margin-top: -30px;
@ -378,8 +344,6 @@ body.page-home {
font-size: 14px; font-size: 14px;
letter-spacing: 1px; letter-spacing: 1px;
color: white; color: white;
font-family: $font-family-lato;
font-weight: $font-weight-lato-xb;
} }
ul.shell-dots{ ul.shell-dots{

View File

@ -123,9 +123,6 @@
color:#fff; color:#fff;
visibility:hidden; visibility:hidden;
font-family: 'Lato', "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 500;
-webkit-transform:translate3d(0,0,0); -webkit-transform:translate3d(0,0,0);
-moz-transform:translate3d(0,0,0); -moz-transform:translate3d(0,0,0);
-ms-transform:translate3d(0,0,0); -ms-transform:translate3d(0,0,0);

View File

@ -7,11 +7,6 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
@mixin lato-light() {
font-family: $font-family-lato;
font-weight: 300;
}
@mixin skewY($skew) { @mixin skewY($skew) {
-webkit-transform: skewY($skew); -webkit-transform: skewY($skew);
-moz-transform: skewY($skew); -moz-transform: skewY($skew);
@ -19,3 +14,11 @@
-o-transform: skewY($skew); -o-transform: skewY($skew);
transform: skewY($skew); transform: skewY($skew);
} }
.sub-black {
color: #545454;
}
.lower-opacity {
opacity: .7;
}

View File

@ -44,14 +44,7 @@ $link-hover-color: darken($link-color, 15%);
// Typography // Typography
// ------------------------- // -------------------------
$font-family-lato: 'Lato', "Helvetica Neue", Helvetica, Arial, sans-serif;
$font-family-open-sans: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif; $font-family-open-sans: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
$font-weight-lato-xl: 300;
$font-weight-lato-reg: 300;
$font-weight-lato-sb: 500;
$font-weight-lato-xb: 700;
$font-weight-open: $font-weight-lato-reg;
$text-shadow: 1px 1px 1px #000; $text-shadow: 1px 1px 1px #000;
$shadow: $text-shadow; $shadow: $text-shadow;

View File

@ -1,7 +1,7 @@
@import 'bootstrap-sprockets'; @import 'bootstrap-sprockets';
@import 'bootstrap'; @import 'bootstrap';
@import url("//fonts.googleapis.com/css?family=Lato:300,400,700|Open+Sans:300,400,600"); @import url("Open+Sans:300,400,600");
// Core variables and mixins // Core variables and mixins
@import '_variables'; @import '_variables';
@ -9,9 +9,6 @@
// Utility // Utility
@import '_utilities'; @import '_utilities';
// Core CSS
@import '_fonts';
//Global Site //Global Site
@import '_global'; @import '_global';

View File

@ -17,7 +17,7 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-8">
<p class="lead">Terraform enables you to safely and predictably create, change, and <p class="lead lower-opacity">Terraform enables you to safely and predictably create, change, and
improve production infrastructure. It is an open source tool that improve production infrastructure. It is an open source tool that
codifies APIs into declarative configuration files that can be shared amongst team members, codifies APIs into declarative configuration files that can be shared amongst team members,
treated as code, edited, reviewed, and versioned. </p> treated as code, edited, reviewed, and versioned. </p>
@ -67,17 +67,17 @@
<div id="write-section" class="row"> <div id="write-section" class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<h2>Infrastructure as code</h2> <h2>Infrastructure as code</h2>
<p class="lead">Define infrastructure as code to increase operator productivity and transparency.</p> <p class="lead sub-black">Define infrastructure as code to increase operator productivity and transparency.</p>
</div> </div>
<img class="feature-image" id="feature-image-write-sm-screen" src="/assets/images/feature-write-bg.svg" /> <img class="feature-image" id="feature-image-write-sm-screen" src="/assets/images/feature-write-bg.svg" />
<div class="col-sm-4"> <div class="col-sm-4">
<h3>Collaborate &amp; share</h3> <h3>Collaborate &amp; share</h3>
<p>Terraform configuration can be stored in version control, <p class="sub-black">Terraform configuration can be stored in version control,
shared, and collaborated on by teams of operators.</p> shared, and collaborated on by teams of operators.</p>
<h3>Evolve your infrastructure</h3> <h3>Evolve your infrastructure</h3>
<p>Track the complete history of infrastructure versions.</p> <p class="sub-black">Track the complete history of infrastructure versions.</p>
<h3>Automation friendly</h3> <h3>Automation friendly</h3>
<p>If it can be codified, it can be automated.</p> <p class="sub-black">If it can be codified, it can be automated.</p>
</div> </div>
</div> </div>
</div> <!-- /container --> </div> <!-- /container -->
@ -91,7 +91,7 @@
<div id="plan-section" class="row"> <div id="plan-section" class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<h2>One safe workflow across providers</h2> <h2>One safe workflow across providers</h2>
<p class="lead">Terraform provides an elegant user experience for <p class="lead lower-opacity">Terraform provides an elegant user experience for
operators to safely and predictably make changes to infrastructure.</p> operators to safely and predictably make changes to infrastructure.</p>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
@ -100,20 +100,20 @@
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<h3>Map resource dependencies</h3> <h3>Map resource dependencies</h3>
<p>Understand how a minor change could have potential cascading effects <p class="lower-opacity">Understand how a minor change could have potential cascading effects
across an infrastructure before executing that change. Terraform across an infrastructure before executing that change. Terraform
builds a dependency graph from the configurations, and walks this builds a dependency graph from the configurations, and walks this
graph to generate plans, refresh state, and more.</p> graph to generate plans, refresh state, and more.</p>
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<h3>Separation of plan &amp; apply</h3> <h3>Separation of plan &amp; apply</h3>
<p>Separating plans and applies reduces mistakes and uncertainty at <p class="lower-opacity">Separating plans and applies reduces mistakes and uncertainty at
scale. Plans show operators what would happen, applies execute scale. Plans show operators what would happen, applies execute
changes.</p> changes.</p>
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<h3>One workflow</h3> <h3>One workflow</h3>
<p>Use Terraform to create resources across all major infrastructure <p class="lower-opacity">Use Terraform to create resources across all major infrastructure
providers (AWS, GCP, Azure, OpenStack, VMware, and more).</p> providers (AWS, GCP, Azure, OpenStack, VMware, and more).</p>
</div> </div>
</div> </div>
@ -126,7 +126,7 @@
<div id="create-section" class="row"> <div id="create-section" class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<h2>Reproducible infrastructure</h2> <h2>Reproducible infrastructure</h2>
<p class="lead">Terraform lets operators easily use the same <p class="lead sub-black">Terraform lets operators easily use the same
configurations in multiple places to reduce mistakes and save time.</p> configurations in multiple places to reduce mistakes and save time.</p>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
@ -136,17 +136,17 @@
<div class="row"> <div class="row">
<div class="col-sm-4"> <div class="col-sm-4">
<h3>Environment parity</h3> <h3>Environment parity</h3>
<p>Use the same Terraform configuration to provision identical staging, <p class="sub-black">Use the same Terraform configuration to provision identical staging,
QA, and production environments.</p> QA, and production environments.</p>
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<h3>Shareable modules</h3> <h3>Shareable modules</h3>
<p>Common Terraform configurations can be packaged as modules and used <p class="sub-black">Common Terraform configurations can be packaged as modules and used
across teams and organizations.</p> across teams and organizations.</p>
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<h3>Combine multiple providers consistently</h3> <h3>Combine multiple providers consistently</h3>
<p>Terraform allows you to effortlessly combine high-level system <p class="sub-black">Terraform allows you to effortlessly combine high-level system
providers. Launch a server from one cloud provider, add a DNS entry providers. Launch a server from one cloud provider, add a DNS entry
with its IP with a different provider. Built-in dependency resolution with its IP with a different provider. Built-in dependency resolution
means things happen in the right order.</p> means things happen in the right order.</p>
@ -165,7 +165,7 @@
<div class="col-md-6 explantion"> <div class="col-md-6 explantion">
<h3>Composing Resources</h3> <h3>Composing Resources</h3>
<p>Use attributes from other resources to create an infrastructure <p class="sub-black">Use attributes from other resources to create an infrastructure
composed of resources across multiple providers. composed of resources across multiple providers.
</p> </p>
</div> </div>
@ -199,7 +199,7 @@
<div class="col-md-6 explantion"> <div class="col-md-6 explantion">
<h3>Fast, Simplified Interaction</h3> <h3>Fast, Simplified Interaction</h3>
<p>Simple and intuitive configuration makes even the most complicated <p class="sub-black">Simple and intuitive configuration makes even the most complicated
services approachable: no more web consoles, loading bars, or services approachable: no more web consoles, loading bars, or
confusing CLI clients. confusing CLI clients.
</p> </p>
@ -237,7 +237,7 @@
</div> </div>
</div> <!-- /.terminal-item --> </div> <!-- /.terminal-item -->
<div class="cta col-sm-12 col-lg-8 col-lg-offset-2" id="demo-cta"> <div class="cta col-sm-12 col-lg-8 col-lg-offset-2" id="demo-cta">
<p class="lead">The intro contains a walkthrough guide, introductory literature, and <p class="lead lower-opacity">The intro contains a walkthrough guide, introductory literature, and
a range of examples to experiment with Terraform.</p> a range of examples to experiment with Terraform.</p>
<p> <p>
<a class="terra-btn" href="/intro/index.html">Get started</a> <a class="terra-btn" href="/intro/index.html">Get started</a>
@ -267,7 +267,7 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<h2><span>Terraform Enterprise</span></h2> <h2><span>Terraform Enterprise</span></h2>
<p class="lead">Collaborative Infrastructure Automation for <p class="lead lower-opacity">Collaborative Infrastructure Automation for
organizations. Collaborate on Terraform configurations, organizations. Collaborate on Terraform configurations,
validate changes, and automate provisioning across providers.</p> validate changes, and automate provisioning across providers.</p>
<p> <p>

View File

@ -23,6 +23,10 @@
})(window,document,'script','dataLayer','GTM-NR2SD7C');</script> })(window,document,'script','dataLayer','GTM-NR2SD7C');</script>
<!-- End Google Tag Manager --> <!-- End Google Tag Manager -->
<!-- Typekit script for Klavika font -->
<script src="https://use.typekit.net/wxf7mfi.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<%= yield_content :head %> <%= yield_content :head %>
</head> </head>