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:
parent
3c4320fd5b
commit
e710a57c97
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user