You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$container-padding-x is now 16px instead of 12px as in v2. You can replace it with $spacer * 3 to get to the previous look.
How do I go about that?
The problem is dat when I try this, the compiler says $spacer doesn't exist. And it rightfully doesn't, because it's not imported. So where do I import it from?
I've also tried with settings.$spacer and tried adding @use 'vuetify/settings'; but I've found no combination of trial&error that makes it work with $spacer.
I'd appreciate some help with this specific problem, but also an answer to the question in more general terms, if possible. And when an answer is available, I feel it's pretty important to update the documentation about Sass variables as well, because I can't make heads or tails of it.
On a sidenote: $container-padding-x is a misleading as it actually sets all paddings, not just horizontal ones.
And another sidenote: $container-padding-x does not show up in the Variable API - why is that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From the guide:
How do I go about that?
The problem is dat when I try this, the compiler says
$spacer
doesn't exist. And it rightfully doesn't, because it's not imported. So where do I import it from?Currently I've got this:
I've also tried with
settings.$spacer
and tried adding@use 'vuetify/settings';
but I've found no combination of trial&error that makes it work with$spacer
.I'd appreciate some help with this specific problem, but also an answer to the question in more general terms, if possible. And when an answer is available, I feel it's pretty important to update the documentation about Sass variables as well, because I can't make heads or tails of it.
On a sidenote:
$container-padding-x
is a misleading as it actually sets all paddings, not just horizontal ones.And another sidenote:
$container-padding-x
does not show up in the Variable API - why is that?Beta Was this translation helpful? Give feedback.
All reactions