2020-05-07 20:13:07 +00:00
|
|
|
@mixin font-1($weight) {
|
|
|
|
// see functions.php->google_fonts()
|
|
|
|
// and functions.php->_s_scripts()
|
|
|
|
font-family: "Montserrat", sans-serif;
|
|
|
|
@if $weight == regular {
|
|
|
|
font-weight: 400;
|
|
|
|
} @else if $weight == bold {
|
|
|
|
font-weight: 600;
|
|
|
|
} @else if $weight == extra-bold {
|
|
|
|
font-weight: 700;
|
|
|
|
} @else {
|
|
|
|
@error "font-weight #{$weight} not in valid font-weights for font-1: 'Montserrat'.";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin font-body($weight: regular) {
|
|
|
|
@include font-1($weight);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin font-title($weight: regular) {
|
|
|
|
@include font-1($weight);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin font-link($weight: regular) {
|
|
|
|
@include font-1($weight);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin font-code($weight: regular) {
|
|
|
|
font-family: $font-code;
|
|
|
|
font-weight: $weight;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin font-pre($weight: regular) {
|
|
|
|
font-family: $font-pre;
|
|
|
|
font-weight: $weight;
|
|
|
|
}
|
|
|
|
|
2014-07-28 13:35:53 +00:00
|
|
|
// Center block
|
|
|
|
@mixin center-block {
|
2020-05-07 20:13:07 +00:00
|
|
|
display: block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
2017-08-01 13:21:13 +00:00
|
|
|
// Column width with margin
|
|
|
|
@mixin column-width($numberColumns: 3) {
|
2020-05-07 20:13:07 +00:00
|
|
|
width: map-get($columns, $numberColumns) -
|
|
|
|
(($columns__margin * ($numberColumns - 1)) / $numberColumns);
|
2017-08-30 11:03:53 +00:00
|
|
|
}
|