Skip to content

Commit

Permalink
Add padding and margin utility classes without important (#3437)
Browse files Browse the repository at this point in the history
Co-authored-by: Precious Onyenaucheya <[email protected]>
  • Loading branch information
admilne and precious-onyenaucheya-ons authored Nov 22, 2024
1 parent 4108db8 commit 5dd5702
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scss/utilities/_margin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ $margins: (
@include bp-suffix(ons-u-#{$abbr}-#{$key}, $create-between-breakpoints: true) {
#{$dec}: #{$value} !important;
}

@include bp-suffix(ons-u-#{$abbr}-#{$key}-not-important, $create-between-breakpoints: true) {
#{$dec}: #{$value};
}
}
}
4 changes: 4 additions & 0 deletions src/scss/utilities/_padding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ $padding: (
@include bp-suffix(ons-u-#{$abbr}-#{$key}, $create-between-breakpoints: true) {
#{$dec}: #{$value} !important;
}

@include bp-suffix(ons-u-#{$abbr}-#{$key}-not-important, $create-between-breakpoints: true) {
#{$dec}: #{$value};
}
}
}

0 comments on commit 5dd5702

Please sign in to comment.