Skip to content

Commit

Permalink
Improve font variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterhow committed Dec 29, 2017
1 parent a8ba74a commit c3a69c1
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body {
}

html {
font-family: $baskerville;
font-family: $serif-primary;
font-size: 14px;

@media (min-width: 600px) {
Expand All @@ -30,7 +30,7 @@ h4,
h5,
h6 {
color: $default-shade;
font-family: $sans-font;
font-family: $sans-serif;
line-height: normal;
}

Expand Down
4 changes: 2 additions & 2 deletions _sass/_catalogue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

&-time {
color: $default-tint;
font-family: $palatino;
font-family: $serif-secondary;
letter-spacing: .5px;
}

&-title {
color: $default-shade;
display: block;
font-family: $sans-font;
font-family: $sans-serif;
font-size: 2rem;
font-weight: 700;
margin: .5rem 0;
Expand Down
2 changes: 1 addition & 1 deletion _sass/_code.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pre,
code {
font-family: $monospaced-font;
font-family: $monospaced;
}

code {
Expand Down
4 changes: 2 additions & 2 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ footer,

a {
color: $default-color;
font-family: $sans-font;
font-family: $sans-serif;
}
}

Expand All @@ -80,7 +80,7 @@ footer,
}

footer {
font-family: $palatino;
font-family: $serif-secondary;
padding: 2rem 0;
text-align: center;

Expand Down
4 changes: 2 additions & 2 deletions _sass/_pagination.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.pagination {
border-top: .5px solid $grey-2;
font-family: $palatino;
font-family: $serif-secondary;
padding-top: 2rem;
position: relative;
text-align: center;
Expand All @@ -13,7 +13,7 @@
.top {
@include transition(all .3s ease-out);
color: $default-color;
font-family: $sans-font;
font-family: $sans-serif;
font-size: 1.1rem;
opacity: .6;

Expand Down
6 changes: 3 additions & 3 deletions _sass/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

&-info {
color: $default-tint;
font-family: $palatino;
font-family: $serif-secondary;
letter-spacing: 0.5px;
text-align: center;

Expand All @@ -14,7 +14,7 @@

&-title {
color: $default-shade;
font-family: $sans-font;
font-family: $sans-serif;
font-size: 4rem;
margin: 1rem 0;
text-align: center;
Expand Down Expand Up @@ -43,7 +43,7 @@
img + em {
color: $default-tint;
display: block;
font-family: $sans-font;
font-family: $sans-serif;
font-size: 0.9rem;
font-style: normal;
text-align: center;
Expand Down
11 changes: 5 additions & 6 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ $grey-3: #f9f9f9;
$white: #fff;
$blue: #4a9ae1;
$shadow-color: rgba(0, 0, 0, .2);

$baskerville: 'Libre Baskerville', 'Times New Roman', Times, serif;
$palatino: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif;
$sans-font: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;

$monospaced-font: Menlo, Monaco, monospace;
$code-color: #bf616a;

$serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif;
$serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif;
$sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;
$monospaced: Menlo, Monaco, monospace;

@mixin box-sizing($type: border-box) {
-webkit-box-sizing: $type;
-moz-box-sizing: $type;
Expand Down

0 comments on commit c3a69c1

Please sign in to comment.