mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
[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:
parent
6fe1f39950
commit
fdde3192fa
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue