mirror of
https://github.com/primer/css.git
synced 2024-12-25 15:14:59 +03:00
Merge branch 'main' into tobiasahlin/marketing-new-typescale
This commit is contained in:
commit
9a8b16f467
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
|
@ -13,6 +13,23 @@ const versionDeprecations = {
|
|||||||
],
|
],
|
||||||
message: `This selector is deprecated, please refer to the Marketing Typography documentation.`
|
message: `This selector is deprecated, please refer to the Marketing Typography documentation.`
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
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'],
|
selectors: ['.bg-shade-gradient'],
|
||||||
message: `This selector is deprecated, please use "color-bg-secondary" instead of "bg-shade-gradient".`
|
message: `This selector is deprecated, please use "color-bg-secondary" instead of "bg-shade-gradient".`
|
||||||
|
@ -24,7 +24,7 @@ Most components don't need to be updated and should work without making changes.
|
|||||||
| `.Counter--gray` | `.Counter--primary` |
|
| `.Counter--gray` | `.Counter--primary` |
|
||||||
| `.Counter--gray-light` | `.Counter--secondary` |
|
| `.Counter--gray-light` | `.Counter--secondary` |
|
||||||
|
|
||||||
### Dropdwon
|
### Dropdown
|
||||||
|
|
||||||
| [`v15`](https://primer.style/css/components/dropdown#dark) | `v16` |
|
| [`v15`](https://primer.style/css/components/dropdown#dark) | `v16` |
|
||||||
| ---------------------------------------------------------- | ----- |
|
| ---------------------------------------------------------- | ----- |
|
||||||
|
@ -6,17 +6,21 @@
|
|||||||
@each $breakpoint, $variant in $marketing-position-variants {
|
@each $breakpoint, $variant in $marketing-position-variants {
|
||||||
@include breakpoint($breakpoint) {
|
@include breakpoint($breakpoint) {
|
||||||
@each $scale, $size in $marketing-all-spacers {
|
@each $scale, $size in $marketing-all-spacers {
|
||||||
|
@if ($size != 0 or $variant != "") {
|
||||||
.top#{$variant}-#{$scale} { top: $size !important; }
|
.top#{$variant}-#{$scale} { top: $size !important; }
|
||||||
.right#{$variant}-#{$scale} { right: $size !important; }
|
.right#{$variant}-#{$scale} { right: $size !important; }
|
||||||
.bottom#{$variant}-#{$scale} { bottom: $size !important; }
|
.bottom#{$variant}-#{$scale} { bottom: $size !important; }
|
||||||
.left#{$variant}-#{$scale} { left: $size !important; }
|
.left#{$variant}-#{$scale} { left: $size !important; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@if ($size != 0) {
|
||||||
.top#{$variant}-n#{$scale} { top: -$size !important; }
|
.top#{$variant}-n#{$scale} { top: -$size !important; }
|
||||||
.right#{$variant}-n#{$scale} { right: -$size !important; }
|
.right#{$variant}-n#{$scale} { right: -$size !important; }
|
||||||
.bottom#{$variant}-n#{$scale} { bottom: -$size !important; }
|
.bottom#{$variant}-n#{$scale} { bottom: -$size !important; }
|
||||||
.left#{$variant}-n#{$scale} { left: -$size !important; }
|
.left#{$variant}-n#{$scale} { left: -$size !important; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Negative offset columns
|
// Negative offset columns
|
||||||
|
Loading…
Reference in New Issue
Block a user