Skip to content
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
wants to merge 13 commits into from
Closed

Add position utilities class #23095

wants to merge 13 commits into from

Conversation

CVarisco
Copy link

@CVarisco CVarisco commented Jul 15, 2017

Utility class to set position property. Old PR #19292 with discussion. Fixes #18476.

.pos-s { position: static; }
.pos-r { position: relative; }
.pos-a { position: absolute; }
.pos-f { position: fixed; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Files should end with a trailing newline

scottpetrovic and others added 2 commits July 16, 2017 16:19
…is the only one I found in the project, so I am assuming it is the right one to point to (#22895)
…ustom-checkbox-icon-checked`, `$custom-checkbox-indeterminate-bg`, `$custom-checkbox-icon-indeterminate`, `$custom-checkbox-indeterminate-box-shadow`, `$custom-radio-border-radius`, `$custom-radio-icon-checked` to `$custom-checkbox-indicator-border-radius`, `$custom-checkbox-indicator-icon-checked`, `$custom-checkbox-indicator-indeterminate-bg`, `$custom-checkbox-indicator-icon-indeterminate`, `$custom-checkbox-indicator-indeterminate-box-shadow`, `$custom-radio-indicator-border-radius`, `$custom-radio-indicator-icon-checked`, respectively
@@ -23,3 +23,8 @@
z-index: $zindex-sticky;
}
}

.pos-s { position: static; }
Copy link
Member

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.

Copy link
Author

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

Copy link
Member

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.

Copy link
Author

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 🙂

Copy link
Contributor

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 ?

Copy link
Member

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.

@mdo
Copy link
Member

mdo commented Jul 17, 2017

I think your rebase went awry a bit :).

@CVarisco
Copy link
Author

ops, I'm sorry for that 🙁
would you like that I squash commits ?

@mdo
Copy link
Member

mdo commented Jul 18, 2017

I can squash as I merge when it comes to that :)

@mdo
Copy link
Member

mdo commented Aug 8, 2017

Closing as this history got messed up.

@mdo mdo closed this Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants