Answer the question
In order to leave comments, you need to log in
How to use a fancy Sass mixin like this?
A piece of code related to setting Heading font sizes.
I don't have enough Sass skill to understand how to change values here? Where do you set font sizes?
// Set headings sizes, line-heights and margins
@each $heading, $properties in $headings {
#{$heading} {
@include font-size(nth($properties, 1));
@include line-height(nth($properties, 2));
@include margin-top(nth($properties, 3));
@include margin-bottom(nth($properties, 4));
}
}
@media screen and (min-width: #{ $max-width + 5 + 'em'}) {
$leading: $leading-desktop;
$leading-rem: $leading-rem-desktop;
@import '../mixins/font-size';
@import '../mixins/line-height';
@import '../mixins/margin';
@each $heading, $properties in $headings {
#{$heading} {
@include font-size(nth($properties, 1));
@include line-height(nth($properties, 2));
@include margin-top(nth($properties, 3));
@include margin-bottom(nth($properties, 4));
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question