I can use the variable $grid-gutter-width
to control the distance between each col
. I can change the default value of the variable. But this value then affects all breakpoints (@media
).
I now have the following problem:
I would like to change the gutter from 1.5rem
to 3.0rem
starting at breakpoint “XL” (@media (min-width: 1200px)
). All breakpoints below XL should use the default value.
I tried the following:
@media (min-width: 1200px) {
$grid-gutter-width: 3.0rem;
}
Unfortunately, this does not work.
Can someone tell me how to change such variables only on certain breakpoints? What is the solution approach here?
Thank you very much for your feedback.
Kind regards from Switzerland
Reto