-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Move responsive position utilities from marketing to core #459
Changes from all commits
9d3eb82
7921992
37d55a5
3b5a9fc
a55cc00
8d39528
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,11 @@ $responsive-variants: ("": ""); | |
@each $key in map-keys($breakpoints) { | ||
$responsive-variants: map-merge($responsive-variants, ($key: "-#{$key}")); | ||
} | ||
|
||
// responive utility position values | ||
$responsive-positions: ( | ||
static, | ||
relative, | ||
absolute, | ||
fixed | ||
) !default; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heads up @mdo: I added this variable so that responsive position utilities can be customized. For instance, if you only use relative or absolute positioning, you can do something like: $responsive-positions: (relative, absolute);
@import "primer-core/index.scss"; And instead of 20 position utilities, you'd get 10. |
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.
This is actually pretty cool: removing
primer-marketing-utilities/docs/layout.md
caused the/utilities/layout
page to disappear, which triggered a failing test. I had to mark that URL as having moved in order to get it passing again.