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

Resizing: choose unit of measure #2

Open
c4lliope opened this issue Dec 15, 2020 · 0 comments
Open

Resizing: choose unit of measure #2

c4lliope opened this issue Dec 15, 2020 · 0 comments
Labels
hop on in! Good for newcomers roadmap planned or in progress.

Comments

@c4lliope
Copy link

c4lliope commented Dec 15, 2020

Some choices: em, rem, vh, vw, vmin, vmax, px, %

Some sample code allowing a choice between px <-> rem is here:
https://github.com/assembleapp/donors/blob/main/app/javascript/packs/board.js#L52-L53;
the sample code assumes the font size is 16px;
perhaps we can make a similar reasonable assumption,
or query the browser's stylesheet API for a more precise value.

@c4lliope c4lliope changed the title Resizing: choose unit of measure (em, rem, vh, vw, vmin, vmax, px, %) Resizing: choose unit of measure Dec 15, 2020
@c4lliope c4lliope added roadmap planned or in progress. hop on in! Good for newcomers labels Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hop on in! Good for newcomers roadmap planned or in progress.
Projects
None yet
Development

No branches or pull requests

1 participant