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
Have started accommodating half pixel values for high DPI screens, and found that pxtorem currently only outputs to 1 decimal place...
pxtorem
Changed @pxtorem-js-function to the following to allow 2 decimal place calculations... Not tested exhaustively though...
@pxtorem-js-function
@pxtorem-js-function: ~`pxtorem = function(px){ if (typeof rmxsBaseFontSize == 'undefined') rmxsBaseFontSize = @{base-font-size-px}; return (parseFloat(px.replace(/(^\d+)(\.\d{1,2})?$(.+$)/i,'$1')) / rmxsBaseFontSize + 'rem') }`;
The text was updated successfully, but these errors were encountered:
Thanks for your contribution @freakyleaf. Would you please provide a pull request with your changes?
Sorry, something went wrong.
No branches or pull requests
Have started accommodating half pixel values for high DPI screens, and found that
pxtorem
currently only outputs to 1 decimal place...Changed
@pxtorem-js-function
to the following to allow 2 decimal place calculations... Not tested exhaustively though...The text was updated successfully, but these errors were encountered: