Skip to content

Commit

Permalink
feat(typography): uses a variable for header padding
Browse files Browse the repository at this point in the history
Variable also shows how padding was calculated

[#98157918]
  • Loading branch information
Caroline Taymor and Ryan Dy committed Jul 14, 2015
1 parent 492247a commit 8fd4d96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/pivotal-ui/components/pui-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ $font-weight-em-max: 900;

$headings-font-family: null;
$headings-font-weight: 400 !default;
$former-headings-line-height: 1.5;
$headings-line-height: 1.286 !default;
$headings-padding: 1em * ($former-headings-line-height - $headings-line-height) / 2;
$headings-color: null;

//TODO: create a mixin that will determine multiplers based on px-size
Expand Down
4 changes: 2 additions & 2 deletions src/pivotal-ui/components/typography/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ If it's not a heading but you need similar visual treatment you can add just the

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
padding-top: 0.107em;
padding-bottom: 0.107em;
padding-top: $headings-padding;
padding-bottom: $headings-padding;
}

h1, .h1, h2, .h2, h3, .h3 {
Expand Down

0 comments on commit 8fd4d96

Please sign in to comment.