1
1
mirror of https://github.com/primer/css.git synced 2024-12-25 07:03:35 +03:00

Limit padding scale on all sides to default scale

This commit is contained in:
Tobias Ahlin Bjerrome 2021-04-30 14:47:25 +02:00
parent 3c4320fd5b
commit e710a57c97

View File

@ -6,8 +6,11 @@
@include breakpoint($breakpoint) {
// Loop through the spacer values
@each $scale, $size in $spacer-map-extended {
/* Set a $size padding to all sides at $breakpoint */
.p#{$variant}-#{$scale} { padding: $size !important; }
@if ($scale < length($spacer-map)) {
/* Set a $size padding to all sides at $breakpoint */
.p#{$variant}-#{$scale} { padding: $size !important; }
}
/* Set a $size padding to the top at $breakpoint */
.pt#{$variant}-#{$scale} { padding-top: $size !important; }
/* Set a $size padding to the right at $breakpoint */