[styles] Make Trident workaround value a variable

Carved out from I8e6e283db5d4034861f8d50d9b3f211df1a78c6c.
It makes sense to have a variable defined for that value.

Change-Id: Iaaca1fd7c15a0c121e60b5ae6debf4bf6920168e
This commit is contained in:
Volker E 2020-08-27 01:27:50 -07:00
parent 6fe1f39950
commit fdde3192fa
2 changed files with 2 additions and 1 deletions

View file

@ -79,7 +79,7 @@ pre,
font-size: @font-size-base;
// Support IE 9-11, Trident cuts values 2 digits after decimal point.
// `calc` enables to set correct calculation in place again. See T102364.
font-size: calc( 1em ~'*' unit( @font-size-base ) );
font-size: @font-size-base--trident-hack;
line-height: @line-height-base;
h1 {

View file

@ -47,6 +47,7 @@
@outline-color-base--focus: @color-primary;
@font-size-base: unit( 14 / @font-size-browser, em ); // Equals `0.875em`.
@font-size-base--trident-hack: calc( 1em ~'*' unit( @font-size-base ) );
@font-size-reset: @font-size-root;
@font-size-heading-1: 1.8em;
@font-size-heading-2: 1.5em;