-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Add position utilities class #23095
Closed
Closed
Add position utilities class #23095
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a78a76e
Add position utilities class
CVarisco aa1c787
Fix code style houndci-bot
CVarisco d35020c
Update dependencies.
bardiharborow bde1652
Switch to using NPM lock files.
bardiharborow 028863d
Fall back to ESLint v3 indentation behaviour.
bardiharborow a83a018
Errata from #23094.
bardiharborow 21d8909
fix location of favicons so it loads when viewing the examples. This …
scottpetrovic 696b2be
(#22414) Rename for consistency `$custom-checkbox-border-radius`, `$c…
pat270 082c9d9
dist
mdo c06d24d
Add position utilities class
CVarisco f98c6fa
Fix code style houndci-bot
CVarisco 103ed75
Change scheme naming and add position sticky
CVarisco f4db7ba
Change scheme naming and add position sticky
CVarisco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,8 @@ | |
z-index: $zindex-sticky; | ||
} | ||
} | ||
|
||
.pos-s { position: static; } | ||
.pos-r { position: relative; } | ||
.pos-a { position: absolute; } | ||
.pos-f { position: fixed; } | ||
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. Files should end with a trailing newline |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You're missing
position: sticky
, which, with this naming scheme, would be problematic. We'll need that utility and a different name.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.
You are right!
Could be a good naming scheme ?
pos-sti
pos-sta
pos-rel
pos-abs
pos-fix
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.
At that point, we might as well use the full value names.
.p-sticky
,.p-static
, etc.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.
Cool!
Thank you, I will a commit with this edit 🙂
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.
why not keep pos- or po- as prefix as p is use for padding ?
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.
Because there's no risk of overlap with padding—these values are unique to positioning.