I use $section-padding: 32px;
to set paddings on multiple elements such as
body {
padding: $section-padding;
}
.section-title {
width: calc(100% - #{$section-padding *2});
}
.site-footer {
padding: 60px 0 $section-padding;
}
Now I need to adjust that value when using media queries so instead of updating all of the styles, I would just like to adjust the value of $section-padding for example
@media only screen and (max-width : 1200px) {
$section-padding: 16px;
}
I've added to my sass
$section-padding: 32px;
$section-padding-lg: 16px;
$section-padding-md: 8px;
$section-padding-md: 4px;
But then I'll still have to update all of the styles everywhere it's used.