mirror of
https://github.com/primer/css.git
synced 2024-12-25 15:14:59 +03:00
Merge branch 'main' into dependabot/npm_and_yarn/stylelint-13.13.1
This commit is contained in:
commit
de1eab859c
5
.changeset/smooth-eagles-tie.md
Normal file
5
.changeset/smooth-eagles-tie.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@primer/css": major
|
||||
---
|
||||
|
||||
Remove redundant marketing layout selectors
|
@ -5,6 +5,23 @@
|
||||
*/
|
||||
const versionDeprecations = {
|
||||
'17.0.0': [
|
||||
{
|
||||
selectors: [
|
||||
'.top-n0',
|
||||
'.right-n0',
|
||||
'.bottom-n0',
|
||||
'.left-n0',
|
||||
'.top-md-n0',
|
||||
'.right-md-n0',
|
||||
'.bottom-md-n0',
|
||||
'.left-md-n0',
|
||||
'.top-lg-n0',
|
||||
'.right-lg-n0',
|
||||
'.bottom-lg-n0',
|
||||
'.left-lg-n0'
|
||||
],
|
||||
message: `This selector is deprecated, please use a non-negative selector to set the value to 0 (e.g. top-md-0)".`
|
||||
},
|
||||
{
|
||||
selectors: ['.bg-shade-gradient'],
|
||||
message: `This selector is deprecated, please use "color-bg-secondary" instead of "bg-shade-gradient".`
|
||||
|
@ -6,15 +6,19 @@
|
||||
@each $breakpoint, $variant in $marketing-position-variants {
|
||||
@include breakpoint($breakpoint) {
|
||||
@each $scale, $size in $marketing-all-spacers {
|
||||
.top#{$variant}-#{$scale} { top: $size !important; }
|
||||
.right#{$variant}-#{$scale} { right: $size !important; }
|
||||
.bottom#{$variant}-#{$scale} { bottom: $size !important; }
|
||||
.left#{$variant}-#{$scale} { left: $size !important; }
|
||||
@if ($size != 0 or $variant != "") {
|
||||
.top#{$variant}-#{$scale} { top: $size !important; }
|
||||
.right#{$variant}-#{$scale} { right: $size !important; }
|
||||
.bottom#{$variant}-#{$scale} { bottom: $size !important; }
|
||||
.left#{$variant}-#{$scale} { left: $size !important; }
|
||||
}
|
||||
|
||||
.top#{$variant}-n#{$scale} { top: -$size !important; }
|
||||
.right#{$variant}-n#{$scale} { right: -$size !important; }
|
||||
.bottom#{$variant}-n#{$scale} { bottom: -$size !important; }
|
||||
.left#{$variant}-n#{$scale} { left: -$size !important; }
|
||||
@if ($size != 0) {
|
||||
.top#{$variant}-n#{$scale} { top: -$size !important; }
|
||||
.right#{$variant}-n#{$scale} { right: -$size !important; }
|
||||
.bottom#{$variant}-n#{$scale} { bottom: -$size !important; }
|
||||
.left#{$variant}-n#{$scale} { left: -$size !important; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user