Skip to content

Add unitless size #90

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

Merged

Conversation

vyorkin
Copy link
Collaborator

@vyorkin vyorkin commented Jul 7, 2018

Ported from Clay.

Resolves #79

pct :: Number -> Size Rel
pct i = Size (value i <> fromString "%")

-- | Size in em's.
Copy link
Member

Choose a reason for hiding this comment

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

Typo? In that they're relative ems.

@vyorkin vyorkin force-pushed the feature/unitless-size branch from e0775b8 to ff550b3 Compare July 8, 2018 17:46
@vyorkin vyorkin force-pushed the feature/unitless-size branch from ff550b3 to 70ba45a Compare July 8, 2018 17:48
@vyorkin
Copy link
Collaborator Author

vyorkin commented Jul 8, 2018

Rebased, fixed copy/paste typo

@garyb garyb merged commit 57070c8 into purescript-contrib:master Jul 8, 2018
@vyorkin vyorkin deleted the feature/unitless-size branch July 8, 2018 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants