-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Revert "Add namespaced styles to primers spacing (#2962)" #2973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,78 +8,45 @@ | |||||
| @each $scale, $size in $spacer-map-rem-extended { | ||||||
| @if ($scale < length($spacer-map-rem)) { | ||||||
| /* Set a $size margin to all sides at $breakpoint */ | ||||||
| .m#{$variant}-#{$scale}, | ||||||
| .pr-m#{$variant}-#{$scale} { | ||||||
| margin: $size !important; | ||||||
| } | ||||||
| .m#{$variant}-#{$scale} { margin: $size !important; } | ||||||
| } | ||||||
|
|
||||||
| /* Set a $size margin on the top at $breakpoint */ | ||||||
| .mt#{$variant}-#{$scale}, | ||||||
| .pr-mt#{$variant}-#{$scale} { | ||||||
| margin-top: $size !important; | ||||||
| } | ||||||
|
|
||||||
| .mt#{$variant}-#{$scale} { margin-top: $size !important; } | ||||||
| /* Set a $size margin on the bottom at $breakpoint */ | ||||||
| .mb#{$variant}-#{$scale}, | ||||||
| .pr-mb#{$variant}-#{$scale} { | ||||||
| margin-bottom: $size !important; | ||||||
| } | ||||||
| .mb#{$variant}-#{$scale} { margin-bottom: $size !important; } | ||||||
|
|
||||||
| @if ($scale < length($spacer-map-rem)) { | ||||||
| /* Set a $size margin on the right at $breakpoint */ | ||||||
| .mr#{$variant}-#{$scale}, | ||||||
| .pr-mr#{$variant}-#{$scale} { | ||||||
| margin-right: $size !important; | ||||||
| } | ||||||
|
|
||||||
| .mr#{$variant}-#{$scale} { margin-right: $size !important; } | ||||||
| /* Set a $size margin on the left at $breakpoint */ | ||||||
| .ml#{$variant}-#{$scale}, | ||||||
| .pr-ml#{$variant}-#{$scale} { | ||||||
| margin-left: $size !important; | ||||||
| } | ||||||
| .ml#{$variant}-#{$scale} { margin-left: $size !important; } | ||||||
| } | ||||||
|
|
||||||
| @if ($size != 0) { | ||||||
| /* Set a negative $size margin on top at $breakpoint */ | ||||||
| .mt#{$variant}-n#{$scale}, | ||||||
| .pr-mt#{$variant}-n#{$scale} { | ||||||
| margin-top: calc(-1 * $size) !important; | ||||||
| } | ||||||
|
|
||||||
| .mt#{$variant}-n#{$scale} { margin-top: calc(-1 * $size) !important; } | ||||||
| /* Set a negative $size margin on the bottom at $breakpoint */ | ||||||
| .mb#{$variant}-n#{$scale}, | ||||||
| .pr-mb#{$variant}-n#{$scale} { | ||||||
| margin-bottom: calc(-1 * $size) !important; | ||||||
| } | ||||||
| .mb#{$variant}-n#{$scale} { margin-bottom: calc(-1 * $size) !important; } | ||||||
|
|
||||||
| @if ($scale < length($spacer-map-rem)) { | ||||||
| /* Set a negative $size margin on the right at $breakpoint */ | ||||||
| .mr#{$variant}-n#{$scale}, | ||||||
| .pr-mr#{$variant}-n#{$scale} { | ||||||
| margin-right: calc(-1 * $size) !important; | ||||||
| } | ||||||
|
|
||||||
| .mr#{$variant}-n#{$scale} { margin-right : calc(-1 * $size) !important; } | ||||||
|
||||||
| .mr#{$variant}-n#{$scale} { margin-right : calc(-1 * $size) !important; } | |
| .mr#{$variant}-n#{$scale} { margin-right: calc(-1 * $size) !important; } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,48 +8,28 @@ | |||||
| @each $scale, $size in $spacer-map-rem-extended { | ||||||
| @if ($scale < length($spacer-map-rem)) { | ||||||
| /* Set a $size padding to all sides at $breakpoint */ | ||||||
| .p#{$variant}-#{$scale}, | ||||||
| .pr-p#{$variant}-#{$scale} { | ||||||
| padding: $size !important; | ||||||
| } | ||||||
| .p#{$variant}-#{$scale} { padding: $size !important; } | ||||||
|
||||||
| .p#{$variant}-#{$scale} { padding: $size !important; } | |
| .p#{$variant}-#{$scale} { padding: $size !important; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two spaces between the selector and the opening brace. This should be a single space for consistency with the rest of the codebase (see other lines in this file and src/utilities/borders.scss which use single spaces).