Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
refactor margins to be constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 23, 2015
1 parent 1a0c6db commit 7a003fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions assets/scss/modules/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ h1 {
margin: $margin-h1 0;

font-size: $font-h1;
line-height: 3rem;
line-height: $line-height * 1.75;
}
h2 {
margin: $margin-h2 0;
Expand Down Expand Up @@ -97,7 +97,7 @@ h6 {
p {
margin-bottom: 1.3rem;

line-height: 1.7rem;
line-height: $line-height;
}
strong {
font-weight: bold;
Expand Down Expand Up @@ -129,7 +129,7 @@ ul {
li {
margin: 0 0 .2rem 0;

line-height: 1.6rem;
line-height: $line-height * 1.2;
}
ol,
ul {
Expand Down
14 changes: 8 additions & 6 deletions assets/scss/modules/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ $font-weight-thin : 100;
$font-weight-normal : 300;
$font-weight-bold : 700;

$line-height : 1.75rem;

$margin-title : $unit * 2.2;
$margin-h1 : $margin-title * .8;
$margin-h2 : $margin-h1 * .8;
$margin-h3 : $margin-h2 * .8;
$margin-h4 : $margin-h3 * .8;
$margin-h5 : $margin-h4 * .8;
$margin-h6 : $margin-h5 * .8;
$margin-h1 : $margin-title * .9;
$margin-h2 : $margin-title * .9;
$margin-h3 : $margin-title * .9;
$margin-h4 : $margin-title * .9;
$margin-h5 : $margin-title * .9;
$margin-h6 : $margin-title * .9;

$font-title : $unit * 2.2;
$font-h1 : $font-title * .8;
Expand Down

0 comments on commit 7a003fb

Please sign in to comment.