replace font-family declarations with mixins

This commit is contained in:
Ray Elliott 2020-05-07 20:42:51 +00:00
parent d166d38ae8
commit 07d03510fd
3 changed files with 32 additions and 31 deletions

View File

@ -1,7 +1,8 @@
@mixin font-1($weight) {
// see functions.php->google_fonts()
// and functions.php->_s_scripts()
font-family: "Montserrat", sans-serif;
font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
@if $weight == regular {
font-weight: 400;
} @else if $weight == bold {

View File

@ -19,7 +19,7 @@ address {
pre {
background: $color__background-pre;
font-family: $font__pre;
@include font-pre;
font-size: 0.9375rem;
line-height: $font__line-height-pre;
margin-bottom: 1.6em;
@ -32,7 +32,7 @@ code,
kbd,
tt,
var {
font-family: $font__code;
@include font-code;
font-size: 0.9375rem;
}