We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some choices: em, rem, vh, vw, vmin, vmax, px, %
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: