Skip to content

Commit 14fac05

Browse files
committed
Move marketing padding to primer core
1 parent 3a8e97d commit 14fac05

File tree

3 files changed

+7
-30
lines changed

3 files changed

+7
-30
lines changed

src/marketing/utilities/index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
@import "./filters.scss";
66
@import "./layout.scss";
77
@import "./margin.scss";
8-
@import "./padding.scss";

src/marketing/utilities/padding.scss

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/utilities/padding.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@each $breakpoint, $variant in $responsive-variants {
66
@include breakpoint($breakpoint) {
77
// Loop through the spacer values
8-
@each $scale, $size in $spacer-map {
8+
@each $scale, $size in $spacer-map-extended {
99
/* Set a $size padding to all sides at $breakpoint */
1010
.p#{$variant}-#{$scale} { padding: $size !important; }
1111
/* Set a $size padding to the top at $breakpoint */
@@ -17,10 +17,12 @@
1717
/* Set a $size padding to the left at $breakpoint */
1818
.pl#{$variant}-#{$scale} { padding-left: $size !important; }
1919

20-
/* Set a $size padding to the left & right at $breakpoint */
21-
.px#{$variant}-#{$scale} {
22-
padding-right: $size !important;
23-
padding-left: $size !important;
20+
@if ($scale < length($spacer-map)) {
21+
/* Set a $size padding to the left & right at $breakpoint */
22+
.px#{$variant}-#{$scale} {
23+
padding-right: $size !important;
24+
padding-left: $size !important;
25+
}
2426
}
2527

2628
/* Set a $size padding to the top & bottom at $breakpoint */

0 commit comments

Comments
 (0)