Override the start, end, or ratio with another mixin use
Note: To override the ratio it must be set in the original mixin use.
// Set the defaults
h1, h2, h3, h4, h5, h6, p {
@include sizing(
$font-size: (14px, 36px),
$margin-bottom: (10px, 20px),
$ratio: (.5),
);
}
// Not Effiecient
h1 {
@include sizing(
$font-size: (18px, 36px),
$margin-bottom: (20px, 40px),
$ratio: (-1),
);
}
h1 {
--cs-font-size-start: 18;
--cs-font-size-end: 36;
--cs-font-size-ratio: -1;
--cs-margin-bottom-start: 20;
--cs-margin-bottom-end: 40;
--cs-margin-bottom-ratio: -1;
}
h2 {
--cs-font-size-start: 14;
--cs-font-size-end: 26;
--cs-font-size-ratio: 1;
--cs-margin-bottom-start: 15;
--cs-margin-bottom-end: 30;
--cs-margin-bottom-ratio: -1;
}