Merge "minerva.less: use rem instead of em for browser-relative font sizes"

This commit is contained in:
jenkins-bot 2021-08-17 17:08:31 +00:00 committed by Gerrit Code Review
commit 1fc4ffca50

View file

@ -19,8 +19,9 @@
@font-size-browser: 16; // Assumed browser default of `16px`.
@font-size-root: 100%;
@font-size-root--feature-phone: 0.8 * @font-size-root;
@font-size-minerva-small: unit( 14 / @font-size-browser, em ); // Equals `14px` at `16px` browser default.
@font-size-minerva-smallest: unit( 13 / @font-size-browser, em ); // Equals `13px` at `16px` browser default.
// T282315: Use rem instead of em to avoid font-size compounding, resulting in smaller than intended text
@font-size-minerva-small: unit( 14 / @font-size-browser, rem ); // Equals `14px` at `16px` browser default.
@font-size-minerva-smallest: unit( 13 / @font-size-browser, rem ); // Equals `13px` at `16px` browser default.
// colors
@grayMediumLight: @colorGray10;