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

New CSS properties #340

Merged
merged 2 commits into from Feb 14, 2013

Conversation

Projects
None yet
2 participants
@djMax

djMax commented Feb 14, 2013

The first step in the larger effort, this set of changes adds the following properties to NimbusCSS:

top - the distance in pixels or percentage of the top of the target view from the top of the superview
bottom - the distance in pixels or percentage of the bottom of the target view from the bottom of the superview
left - the distance in pixels or percentage from the left (like top)
top - the distance in pixels or percentage from the right (like bottom)
width - pixels, percentage (relative to superview width), or auto for sizeToFit - negative pixels means superview width minus specified value
height - pixels, percentage, or auto for sizeToFit - negative pixels means superview height minus specified value
-ios-halign - center/left/right - aligns the view in the superview
-ios-valign - middle/top/bottom - aligns the view in the superview

This is my first pull to Nimbus, so don't be shy about what I screwed up and I won't take offense.

jverkoey added a commit that referenced this pull request Feb 14, 2013

@jverkoey jverkoey merged commit 4d36b5b into jverkoey:master Feb 14, 2013

@jverkoey

This comment has been minimized.

Show comment
Hide comment
@jverkoey

jverkoey Feb 14, 2013

Owner

This is awesome. Nicely done :)

Owner

jverkoey commented Feb 14, 2013

This is awesome. Nicely done :)

@djMax

This comment has been minimized.

Show comment
Hide comment
@djMax

djMax Feb 14, 2013

Thanks! More coming soon. Going to have to split the cache bitmask into two int64's by the time it's done I'm afraid. :)

djMax commented Feb 14, 2013

Thanks! More coming soon. Going to have to split the cache bitmask into two int64's by the time it's done I'm afraid. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment