From d188add0f3d681bebe81b15330ba837c1bfb00bf Mon Sep 17 00:00:00 2001 From: admilne Date: Wed, 20 Nov 2024 15:54:27 +0000 Subject: [PATCH] Add padding and margin utility classes without important --- src/scss/utilities/_margin.scss | 4 ++++ src/scss/utilities/_padding.scss | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/scss/utilities/_margin.scss b/src/scss/utilities/_margin.scss index 209beb6989..c424369707 100644 --- a/src/scss/utilities/_margin.scss +++ b/src/scss/utilities/_margin.scss @@ -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}; + } } } diff --git a/src/scss/utilities/_padding.scss b/src/scss/utilities/_padding.scss index f04c8c532f..b2bcf0bbb8 100644 --- a/src/scss/utilities/_padding.scss +++ b/src/scss/utilities/_padding.scss @@ -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}; + } } }